@m-bock/gcode-viewer-core
    Preparing search index...

    Variable useStateMachineViewerConst

    useStateMachineViewer: () => {
        dispatch: {
            MsgSetEndLayer: (_: Int) => void;
            MsgSetGcodeFile: (_: RemoteData<string>) => void;
            MsgSetMaxLayer: (_: Int) => void;
            MsgSetMinLayer: (_: Int) => void;
            MsgSetStartLayer: (_: Int) => void;
            runLoadGcodeLines: (
                _: { interval: number; url: string },
            ) => { cancel: () => void };
        };
        state: PubState;
    }

    Type Declaration

      • (): {
            dispatch: {
                MsgSetEndLayer: (_: Int) => void;
                MsgSetGcodeFile: (_: RemoteData<string>) => void;
                MsgSetMaxLayer: (_: Int) => void;
                MsgSetMinLayer: (_: Int) => void;
                MsgSetStartLayer: (_: Int) => void;
                runLoadGcodeLines: (
                    _: { interval: number; url: string },
                ) => { cancel: () => void };
            };
            state: PubState;
        }
      • Returns {
            dispatch: {
                MsgSetEndLayer: (_: Int) => void;
                MsgSetGcodeFile: (_: RemoteData<string>) => void;
                MsgSetMaxLayer: (_: Int) => void;
                MsgSetMinLayer: (_: Int) => void;
                MsgSetStartLayer: (_: Int) => void;
                runLoadGcodeLines: (
                    _: { interval: number; url: string },
                ) => { cancel: () => void };
            };
            state: PubState;
        }