@m-bock/gcode-viewer-core
    Preparing search index...
    useViewer: () => {
        dispatch: {
            emitSetEndLayer: (_: Int) => void;
            emitSetStartLayer: (_: Int) => void;
            runLoadGcodeLines: (_: { url: string }) => void;
        };
        state: { endLayer: Int; gcodeLines: RemoteData<string[]>; startLayer: Int };
    }

    Type Declaration

      • (): {
            dispatch: {
                emitSetEndLayer: (_: Int) => void;
                emitSetStartLayer: (_: Int) => void;
                runLoadGcodeLines: (_: { url: string }) => void;
            };
            state: { endLayer: Int; gcodeLines: RemoteData<string[]>; startLayer: Int };
        }
      • Returns {
            dispatch: {
                emitSetEndLayer: (_: Int) => void;
                emitSetStartLayer: (_: Int) => void;
                runLoadGcodeLines: (_: { url: string }) => void;
            };
            state: { endLayer: Int; gcodeLines: RemoteData<string[]>; startLayer: Int };
        }