Type Alias GCodePreviewOptions
GCodePreviewOptions: { allowDragNDrop?: boolean; backgroundColor?: ColorRepresentation; buildVolume?: BuildVolume; canvas?: HTMLCanvasElement; debug?: boolean; devMode?: boolean | DevModeOptions; disableGradient?: boolean; endLayer?: number; extrusionColor?: ColorRepresentation | ColorRepresentation[]; extrusionWidth?: number; initialCameraPosition?: number[]; lastSegmentColor?: ColorRepresentation; lineHeight?: number; lineWidth?: number; minLayerThreshold?: number; nonTravelMoves?: string[]; renderExtrusion?: boolean; renderTravel?: boolean; renderTubes?: boolean; startLayer?: number; targetId?: string; toolColors?: Record<number, ColorRepresentation>; topLayerColor?: ColorRepresentation; travelColor?: ColorRepresentation; } Type declaration
Optional
allowDragNDrop?: boolean
Optional
backgroundColor?: ColorRepresentation
Optional
buildVolume?: BuildVolume
Optional
canvas?: HTMLCanvasElement
Optional
debug?: boolean
Optional
Experimental
devMode?: boolean | DevModeOptions
Optional
disableGradient?: boolean
Optional
endLayer?: number
Optional
extrusionColor?: ColorRepresentation | ColorRepresentation[]
Optional
extrusionWidth?: number
Optional
initialCameraPosition?: number[]
Optional
lastSegmentColor?: ColorRepresentation
Optional
lineHeight?: number
Optional
lineWidth?: number
Optional
minLayerThreshold?: number
Optional
nonTravelMoves?: string[]
Optional
renderExtrusion?: boolean
Optional
renderTravel?: boolean
Optional
renderTubes?: boolean
Optional
startLayer?: number
Optional
targetId?: string
Optional
toolColors?: Record<number, ColorRepresentation>
Optional
topLayerColor?: ColorRepresentation
Optional
travelColor?: ColorRepresentation
Deprecated
Please see the demo how to implement drag and drop.