Skip to content

Instantly share code, notes, and snippets.

@camwest
Last active May 31, 2018 04:08
Show Gist options
  • Save camwest/f84f3a7669dae750a0fad41fbb2956ae to your computer and use it in GitHub Desktop.
Save camwest/f84f3a7669dae750a0fad41fbb2956ae to your computer and use it in GitHub Desktop.
<Canvas
ref={this.assignCanvas}
isDeleteEnabled={this.props.isDeleteEnabled}
isFabricModalActive={this.props.isMTextEditing}
visible={!this.props.documentOpening}
selectedObjectTypesCount={this.props.selectedObjectTypesCount}
onCanvasLoad={this.props.canvasLoad}
onCanvasLoadSuccess={this.props.canvasLoadSuccess}
onCanvasSnapOverrides={this.props.canvasSnapOverrides}
onCanvasLoadFail={this.props.canvasLoadFail}
onResize={this.props.onResize}
onPromptChange={this.props.onPromptChange}
onCommandChange={this.props.onCommandChange}
onWarningIssued={this.props.onWarningIssued}
onMeasureGeom={this.props.onMeasureGeom}
onSysVarChange={this.props.onSysVarChange}
onUnitsChange={this.props.onUnitsChange}
onProgressBegin={this.handleProgressBegin}
onProgressTick={this.props.onTickChange}
onCommonPropertiesChange={this.props.onCommonPropertiesChange}
onContextMenuEsc={this.handleContextMenuEsc}
onCanvasLeftClick={this.handleCanvasLeftClick}
dispatchZoom={this.props.dispatchZoom}
dispatchPan={this.props.dispatchPan}
dispatchZoomExtents={this.props.dispatchZoomExtents}
dispatchZoomWindow={this.props.dispatchZoomWindow}
dispatchCancel={this.props.dispatchCancel}
dispatchXrefEncounter={this.handleDispatchXrefEncounter}
dispatchLayersCollectionChange={this.props.onLayerCollectionChange}
dispatchLayoutsCollectionChange={
this.props.onLayoutCollectionChange
}
dispatchLinetypesCollectionChange={
this.props.onLinetypesCollectionChange
}
dispatchDimStylesCollectionChange={
this.props.onDimStylesCollectionChange
}
dispatchTextStylesCollectionChange={
this.props.onTextStylesCollectionChange
}
dispatchMissingFont={this.handleDispatchMissingFont}
dispatchProxyEncountered={this.handleProxyEncountered}
dispatchSaveBlocked={this.onSaveBlocked}
dispatchFunctionKeys={this.handleDispatchFunctionKeys}
isMouseWheelPan={this.props.isMouseWheelPan}
hasFabricError={this.props.hasFabricError}
dispatchSavedData={this.props.onSavedData}
isCmdCompletable={this.props.isCmdCompletable}
onContextConfirm={this.onConfirmHandler}
cmdDisplayOptions={this.props.displayOptions}
onContextOption={this.onOptionHandler}
clearCanvas={this.props.documentOpening}
isFloatingNavEnabled={this.props.isFloatingNavEnabled}
isBusy={this.props.isBusy}
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment