@m-bock/gcode-viewer-core
    Preparing search index...
    useViewer: (
        _: StateInit,
    ) => {
        dispatch: {
            emitSetEndLayer: (_: Int) => void;
            emitSetStartLayer: (_: Int) => void;
            runLoadGcodeLines: (_: { url: string }) => void;
        };
        state: PubState;
    }

    Type Declaration

      • (
            _: StateInit,
        ): {
            dispatch: {
                emitSetEndLayer: (_: Int) => void;
                emitSetStartLayer: (_: Int) => void;
                runLoadGcodeLines: (_: { url: string }) => void;
            };
            state: PubState;
        }
      • Parameters

        Returns {
            dispatch: {
                emitSetEndLayer: (_: Int) => void;
                emitSetStartLayer: (_: Int) => void;
                runLoadGcodeLines: (_: { url: string }) => void;
            };
            state: PubState;
        }