@m-bock/gcode-viewer-core
    Preparing search index...
    useStateMachineViewer: () => {
        dispatch: {
            msg: (_: Msg) => void;
            MsgSetEndLayer: (_: Int) => void;
            MsgSetGcodeLines: (_: RemoteData<string[]>) => void;
            MsgSetMaxLayer: (_: Int) => void;
            MsgSetMinLayer: (_: Int) => void;
            MsgSetStartLayer: (_: Int) => void;
            runLoadGcodeLines: (_: { url: string }) => { cancel: () => void };
        };
        state: PubState;
    }

    Type Declaration

      • (): {
            dispatch: {
                msg: (_: Msg) => void;
                MsgSetEndLayer: (_: Int) => void;
                MsgSetGcodeLines: (_: RemoteData<string[]>) => void;
                MsgSetMaxLayer: (_: Int) => void;
                MsgSetMinLayer: (_: Int) => void;
                MsgSetStartLayer: (_: Int) => void;
                runLoadGcodeLines: (_: { url: string }) => { cancel: () => void };
            };
            state: PubState;
        }
      • Returns {
            dispatch: {
                msg: (_: Msg) => void;
                MsgSetEndLayer: (_: Int) => void;
                MsgSetGcodeLines: (_: RemoteData<string[]>) => void;
                MsgSetMaxLayer: (_: Int) => void;
                MsgSetMinLayer: (_: Int) => void;
                MsgSetStartLayer: (_: Int) => void;
                runLoadGcodeLines: (_: { url: string }) => { cancel: () => void };
            };
            state: PubState;
        }