Class Canvas
Represents the main host object containing a stack of layers.
This client-side class corresponds to the server-side class Canvas and provides access to its primary members in TypeScript.
Properties
activeTextCanvasHandler
Declaration
get activeTextCanvasHandler(): IActiveTextCanvasHandler;
Property Value
autoPlaceholderEditModeEnabled
Declaration
set autoPlaceholderEditModeEnabled(value: boolean);
Property Value
background
Declaration
set background(value: string);
Property Value
backgroundImage
Declaration
set backgroundImage(value: any);
Property Value
badViolationIconCssClass
Declaration
get badViolationIconCssClass(): string;
set badViolationIconCssClass(value: string);
Property Value
Declaration
get bigButtonGroupCssClass(): string;
set bigButtonGroupCssClass(value: string);
Property Value
bottomMargin
Declaration
get bottomMargin(): number;
set bottomMargin(v: number);
Property Value
canvasElementSize
Declaration
get canvasElementSize(): {
width?: number;
height?: number;
};
Property Value
| Type |
Description |
| {
width?: number;
height?: number;
} |
|
canvasItemHoverEnabled
Declaration
get canvasItemHoverEnabled(): boolean;
set canvasItemHoverEnabled(value: boolean);
Property Value
constrainedMarginEnabled
Declaration
set constrainedMarginEnabled(v: boolean);
Property Value
contentAngle
Declaration
get contentAngle(): number;
Property Value
contentEditingPlaceholderItemHandler
Declaration
get contentEditingPlaceholderItemHandler(): PlaceholderItemHandler;
Property Value
contentUpdatingPlaceholderItemHandler
Declaration
get contentUpdatingPlaceholderItemHandler(): PlaceholderItemHandler;
Property Value
currentItemHandler
Declaration
get currentItemHandler(): BaseRectangleItemHandler;
Property Value
designAtomsApiClient
Declaration
get designAtomsApiClient(): IDesignAtomsApiClient;
Property Value
disableSmoothing
Declaration
get disableSmoothing(): boolean;
set disableSmoothing(value: boolean);
Property Value
dndHandler
Declaration
get dndHandler(): DragNDropHandler;
Property Value
Declaration
get doneButtonCssClass(): string;
set doneButtonCssClass(value: string);
Property Value
Declaration
get errorInput(): boolean;
Property Value
Declaration
get floatingToolbarManager(): FloatingToolbarManager;
Property Value
fontRegistry
Declaration
get fontRegistry(): FontRegistry;
Property Value
frontEndTextRenderingEnabled
Declaration
get frontEndTextRenderingEnabled(): boolean;
Property Value
goodViolationIconCssClass
Declaration
get goodViolationIconCssClass(): string;
set goodViolationIconCssClass(value: string);
Property Value
Declaration
get handleButtonCssClass(): string;
set handleButtonCssClass(value: string);
Property Value
handlerFactory
Declaration
readonly handlerFactory: HandlerFactoryByItem;
Property Value
height
Declaration
Property Value
hiddenFieldID
Declaration
get hiddenFieldID(): string;
set hiddenFieldID(value: string);
Property Value
history
Declaration
get history(): History;
set history(value: History);
Property Value
hitTestManager
Declaration
get hitTestManager(): HitTestManager;
Property Value
hoverColor
Declaration
get hoverColor(): string;
set hoverColor(value: string);
Property Value
hoverHandler
Declaration
get hoverHandler(): HoverHandler;
Property Value
| Type |
Description |
| HoverHandler |
|
ignorePermissionsMode
Declaration
get ignorePermissionsMode(): boolean;
set ignorePermissionsMode(value: boolean);
Property Value
initialization
Declaration
get initialization(): boolean;
Property Value
inPlaceEditingHandler
Declaration
get inPlaceEditingHandler(): NewBaseTextItemHandler;
Property Value
isInitialized
Declaration
get isInitialized(): boolean;
Property Value
isSelectionDragging
Declaration
get isSelectionDragging(): boolean;
Property Value
isSelectionIdle
Declaration
get isSelectionIdle(): boolean;
Property Value
isSelectionLocked
Declaration
get isSelectionLocked(): boolean;
Property Value
isSelectionResizing
Declaration
get isSelectionResizing(): boolean;
Property Value
isSelectionRotating
Declaration
get isSelectionRotating(): boolean;
Property Value
isUpdating
Declaration
get isUpdating(): boolean;
Property Value
keyEventEnabled
Declaration
get keyEventEnabled(): boolean;
set keyEventEnabled(v: boolean);
Property Value
lastLimitsEvent
Declaration
get lastLimitsEvent(): ILimitsViolationEventData;
Property Value
layers
Declaration
get layers(): LayerCollection;
set layers(v: LayerCollection);
Property Value
leftMargin
Declaration
get leftMargin(): number;
set leftMargin(v: number);
Property Value
margin
Declaration
get margin(): number;
set margin(v: number);
Property Value
marginColor
Declaration
get marginColor(): string;
set marginColor(v: string);
Property Value
marginWidth
Declaration
get marginWidth(): number;
set marginWidth(v: number);
Property Value
maxFontSize
Declaration
get maxFontSize(): number;
set maxFontSize(v: number);
Property Value
maxLeading
Declaration
get maxLeading(): number;
set maxLeading(v: number);
Property Value
minFontSize
Declaration
get minFontSize(): number;
set minFontSize(v: number);
Property Value
minLeading
Declaration
get minLeading(): number;
set minLeading(v: number);
Property Value
mouseMoveTimeout
Declaration
get mouseMoveTimeout(): number;
set mouseMoveTimeout(value: number);
Property Value
mul
Declaration
Property Value
multipleSelectionEnabled
Declaration
get multipleSelectionEnabled(): boolean;
set multipleSelectionEnabled(value: boolean);
Property Value
offset
Declaration
get offset(): PointF;
set offset(value: PointF);
Property Value
parentElement
Declaration
get parentElement(): HTMLElement;
Property Value
| Type |
Description |
| HTMLElement |
|
Declaration
get placeholderButtonGroupCssClass(): string;
set placeholderButtonGroupCssClass(value: string);
Property Value
previewMode
Declaration
get previewMode(): boolean;
set previewMode(value: boolean);
Property Value
productHandler
Declaration
get productHandler(): ProductHandler;
Property Value
qualityBadToGoodChangeScaleBarCssClass
Declaration
get qualityBadToGoodChangeScaleBarCssClass(): string;
set qualityBadToGoodChangeScaleBarCssClass(value: string);
Property Value
qualityBadToWarningChangeScaleBarCssClass
Declaration
get qualityBadToWarningChangeScaleBarCssClass(): string;
set qualityBadToWarningChangeScaleBarCssClass(value: string);
Property Value
qualityChangeContainerCssClass
Declaration
get qualityChangeContainerCssClass(): string;
set qualityChangeContainerCssClass(value: string);
Property Value
qualityChangeContainersEnabled
Declaration
set qualityChangeContainersEnabled(v: boolean);
Property Value
qualityChangeInfoBarCssClass
Declaration
get qualityChangeInfoBarCssClass(): string;
set qualityChangeInfoBarCssClass(value: string);
Property Value
qualityChangeScaleBarCssClass
Declaration
get qualityChangeScaleBarCssClass(): string;
set qualityChangeScaleBarCssClass(value: string);
Property Value
qualityNoAnimationChangeScaleBarCssClass
Declaration
get qualityNoAnimationChangeScaleBarCssClass(): string;
set qualityNoAnimationChangeScaleBarCssClass(value: string);
Property Value
qualityWarningToGoodChangeScaleBarCssClass
Declaration
get qualityWarningToGoodChangeScaleBarCssClass(): string;
set qualityWarningToGoodChangeScaleBarCssClass(value: string);
Property Value
readonlyCanvasMode
Declaration
get readonlyCanvasMode(): boolean;
set readonlyCanvasMode(value: boolean);
Property Value
ready
Declaration
Property Value
redrawDesign
Declaration
redrawDesign: () => void;
Property Value
| Type |
Description |
| () => void |
|
renderingConfigProvider
Declaration
get renderingConfigProvider(): IRenderingConfigProvider;
Property Value
resizeGripColor
Declaration
get resizeGripColor(): string;
set resizeGripColor(v: string);
Property Value
resizeGripLineColor
Declaration
get resizeGripLineColor(): string;
set resizeGripLineColor(value: string);
Property Value
resizeGripSize
Declaration
get resizeGripSize(): number;
set resizeGripSize(v: number);
Property Value
rightMargin
Declaration
get rightMargin(): number;
set rightMargin(v: number);
Property Value
rotateHandler
Declaration
get rotateHandler(): RotateHandler;
Property Value
rotationGripColor
Declaration
get rotationGripColor(): string;
set rotationGripColor(v: string);
Property Value
rotationGripLineColor
Declaration
get rotationGripLineColor(): string;
set rotationGripLineColor(value: string);
Property Value
rotationGripLineLength
Declaration
get rotationGripLineLength(): number;
set rotationGripLineLength(value: number);
Property Value
rotationGripSize
Declaration
get rotationGripSize(): number;
set rotationGripSize(v: number);
Property Value
rubberbandHandler
Declaration
get rubberbandHandler(): RubberbandHandler;
Property Value
| Type |
Description |
| RubberbandHandler |
|
Declaration
get selectBarcodeButtonCssClass(): string;
set selectBarcodeButtonCssClass(value: string);
Property Value
selectedHandler
Declaration
get selectedHandler(): ItemHandler;
Property Value
selectedPlaceholderItemHandler
Declaration
get selectedPlaceholderItemHandler(): PlaceholderItemHandler;
Property Value
Declaration
get selectImageButtonCssClass(): string;
set selectImageButtonCssClass(value: string);
Property Value
selection
Declaration
get selection(): SelectionHandler;
Property Value
selectionColor
Declaration
get selectionColor(): string;
set selectionColor(value: string);
Property Value
selectionVisibleRectangle
Declaration
get selectionVisibleRectangle(): RotatedRectangleF;
Property Value
selectionWidth
Declaration
get selectionWidth(): number;
set selectionWidth(value: number);
Property Value
service
Declaration
get service(): Service;
set service(value: Service);
Property Value
simpleMode
Declaration
get simpleMode(): boolean;
set simpleMode(value: boolean);
Property Value
snapLinesHandler
Declaration
get snapLinesHandler(): SnapLinesHandler;
Property Value
status
Declaration
get status(): UpdateStatus;
Property Value
| Type |
Description |
| UpdateStatus |
|
style
Declaration
get style(): CanvasRendererStyle;
set style(value: CanvasRendererStyle);
Property Value
| Type |
Description |
| CanvasRendererStyle |
|
suppressOutOfRegionManipulation
Declaration
set suppressOutOfRegionManipulation(v: boolean);
Property Value
Gets an object containing numbers of lines, rectangles, ellipses, texts, images.
Declaration
get tags(): any;
set tags(tags: any);
Property Value
| Type |
Description |
| any |
Gets an object containing numbers of lines, rectangles, ellipses, texts, images.
|
targetDpi
Declaration
get targetDpi(): number;
set targetDpi(v: number);
Property Value
textEditor
Declaration
get textEditor(): ITextEditor;
set textEditor(value: ITextEditor);
Property Value
textInputIssueUserConfirmationDelegate
Declaration
get textInputIssueUserConfirmationDelegate(): Func<Promise<boolean>, string>;
Property Value
| Type |
Description |
| Func<Promise<boolean>, string> |
|
textRenderer
Declaration
get textRenderer(): TextRenderer;
Property Value
textWhizz
Declaration
get textWhizz(): typeof TextWhizz;
Property Value
| Type |
Description |
| typeof TextWhizz |
|
topMargin
Declaration
get topMargin(): number;
set topMargin(v: number);
Property Value
translations
Declaration
translations: Translations;
Property Value
viewer
Declaration
Property Value
viewerConfiguration
Declaration
get viewerConfiguration(): IViewerConfiguration;
set viewerConfiguration(config: IViewerConfiguration);
Property Value
violationContainerCssClass
Declaration
get violationContainerCssClass(): string;
set violationContainerCssClass(value: string);
Property Value
Declaration
get violationWarningButtonCssClass(): string;
set violationWarningButtonCssClass(value: string);
Property Value
Declaration
set violationWarningButtonsEnabled(v: boolean);
Property Value
warningViolationIconCssClass
Declaration
get warningViolationIconCssClass(): string;
set warningViolationIconCssClass(value: string);
Property Value
width
Declaration
Property Value
workspace
Declaration
get workspace(): IWorkspace;
Property Value
| Type |
Description |
| IWorkspace |
|
workspaceHeight
Declaration
get workspaceHeight(): number;
Property Value
workspaceWidth
Declaration
get workspaceWidth(): number;
Property Value
zoom
Declaration
Property Value
Methods
add_afterReplaceItemHandler(handler)
Declaration
add_afterReplaceItemHandler(handler: (eventArg?: ItemHandler) => any): void;
Parameters
| Type |
Name |
Description |
| (eventArg?: ItemHandler) => any |
handler |
|
Returns
add_beforeReplaceItemHandler(handler)
Declaration
add_beforeReplaceItemHandler(handler: (eventArg?: ItemHandler) => any): void;
Parameters
| Type |
Name |
Description |
| (eventArg?: ItemHandler) => any |
handler |
|
Returns
add_currentItemHandlerChanged(handler)
Declaration
add_currentItemHandlerChanged(handler: (itemHandler: ItemHandler) => void): void;
Parameters
| Type |
Name |
Description |
| (itemHandler: ItemHandler) => void |
handler |
|
Returns
add_dragNDropDone(handler)
Declaration
add_dragNDropDone(handler: (canvas: Canvas, itemHandler: ItemHandler) => void): void;
Parameters
Returns
Declaration
add_dragNDropPerformed(handler: any): void;
Parameters
| Type |
Name |
Description |
| any |
handler |
|
Returns
add_dragNDropStarting(handler)
Declaration
add_dragNDropStarting(handler: any): void;
Parameters
| Type |
Name |
Description |
| any |
handler |
|
Returns
add_initialized(h)
Declaration
add_initialized(h: any): void;
Parameters
| Type |
Name |
Description |
| any |
h |
|
Returns
add_layersUpdated(handler)
Declaration
add_layersUpdated(handler: any): void;
Parameters
| Type |
Name |
Description |
| any |
handler |
|
Returns
Declaration
add_onScroll(h: any): void;
Parameters
| Type |
Name |
Description |
| any |
h |
|
Returns
add_onSelectionLocked(handler)
Declaration
add_onSelectionLocked(handler: (eventArg?: Canvas) => any): void;
Parameters
| Type |
Name |
Description |
| (eventArg?: Canvas) => any |
handler |
|
Returns
add_ready(handler)
Declaration
add_ready(handler: any): void;
Parameters
| Type |
Name |
Description |
| any |
handler |
|
Returns
add_selectedItemHandlerChanged(handler)
Declaration
add_selectedItemHandlerChanged(handler: (canvas: Canvas, itemHandler: ItemHandler) => void): void;
Parameters
Returns
add_workspaceSizeChanged(handler)
Declaration
add_workspaceSizeChanged(handler: any): void;
Parameters
| Type |
Name |
Description |
| any |
handler |
|
Returns
add_zoomChanged(h)
Declaration
add_zoomChanged(h: any): void;
Parameters
| Type |
Name |
Description |
| any |
h |
|
Returns
addElement(parentElement)
Declaration
addElement(parentElement: ChildNode | HTMLElement): void;
Parameters
| Type |
Name |
Description |
| ChildNode | HTMLElement |
parentElement |
|
Returns
Declaration
addPlaceholderButtonGroup(placeholder: PlaceholderItemHandler): void;
Parameters
Returns
addSelectedItemHandler(itemHandler)
Declaration
addSelectedItemHandler(itemHandler: any): void;
Parameters
| Type |
Name |
Description |
| any |
itemHandler |
|
Returns
addStyles()
Declaration
Returns
addViewport(viewportElement)
Declaration
addViewport(viewportElement: HTMLDivElement): void;
Parameters
| Type |
Name |
Description |
| HTMLDivElement |
viewportElement |
|
Returns
addViolationContainer(itemHandler)
Declaration
addViolationContainer(itemHandler: BaseRectangleItemHandler): void;
Parameters
Returns
Declaration
calcPlatformLimitZoom(): number;
Returns
changeTextEditorDivOutlineColor(toRed)
Declaration
changeTextEditorDivOutlineColor(toRed: boolean): void;
Parameters
| Type |
Name |
Description |
| boolean |
toRed |
|
Returns
checkReady()
Declaration
Returns
clearSelectedItemHandlers()
Declaration
clearSelectedItemHandlers(): void;
Returns
clearTextCursor()
Declaration
Returns
continueRedraw()
Declaration
Returns
controlToWorkspace(pt)
Declaration
controlToWorkspace(pt: PointF): PointF;
Parameters
| Type |
Name |
Description |
| PointF |
pt |
|
Returns
deleteItemHandler(itemHandler)
Declaration
deleteItemHandler(itemHandler: ItemHandler): void;
Parameters
Returns
deleteSelectedItemHandlers(force)
Declaration
deleteSelectedItemHandlers(force?: boolean): void;
Parameters
| Type |
Name |
Description |
| boolean |
force |
|
Returns
disableSelection()
Declaration
disableSelection(): void;
Returns
dispose()
Declaration
Returns
doesContainItem(item)
Declaration
doesContainItem(item: Item): boolean;
Parameters
| Type |
Name |
Description |
| Item |
item |
|
Returns
drawTextCursor(callback)
Declaration
drawTextCursor(callback: (context: CanvasRenderingContext2D) => void): void;
Parameters
| Type |
Name |
Description |
| (context: CanvasRenderingContext2D) => void |
callback |
|
Returns
drawWaitClock(context, center)
Declaration
drawWaitClock(context: CanvasRenderingContext2D, center: PointF): void;
Parameters
| Type |
Name |
Description |
| CanvasRenderingContext2D |
context |
|
| PointF |
center |
|
Returns
enableSelection()
Declaration
Returns
ensureFocus()
Declaration
Returns
getAllItemHandlers(options)
Declaration
getAllItemHandlers(options?: GetItemHandlersOptions): ItemHandler[];
Parameters
Returns
Declaration
getButtonGroupRectInGripsDiv(div: HTMLElement, ignoreRotate?: boolean): RectangleF;
Parameters
| Type |
Name |
Description |
| HTMLElement |
div |
|
| boolean |
ignoreRotate |
|
Returns
getData(forService, layerId)
Declaration
getData(forService?: boolean, layerId?: any): CanvasData;
Parameters
| Type |
Name |
Description |
| boolean |
forService |
|
| any |
layerId |
|
Returns
getItemHandler(item)
Declaration
getItemHandler<THandler extends ItemHandler>(item: Item): THandler;
Parameters
| Type |
Name |
Description |
| Item |
item |
|
Returns
| Type |
Description |
| THandler |
|
Type Parameters
| Name |
Description |
| THandler |
|
getSelectedItemHandlers()
Declaration
getSelectedItemHandlers(): Collection<ItemHandler>;
Returns
hideDnd()
Declaration
Returns
hideHover()
Declaration
Returns
hideSpotlight(items)
Declaration
hideSpotlight(items?: Item[]): void;
Parameters
| Type |
Name |
Description |
| Item[] |
items |
|
Returns
initialize()
Declaration
Returns
initTextEditor(textEditor, fontService, useSimpleFontList, textInputIssueUserConfirmationDelegate)
Declaration
initTextEditor(textEditor: TextEditorMode, fontService: IFontService, useSimpleFontList: boolean, textInputIssueUserConfirmationDelegate: Func<Promise<boolean>, string>): void;
Parameters
| Type |
Name |
Description |
| TextEditorMode |
textEditor |
|
| IFontService |
fontService |
|
| boolean |
useSimpleFontList |
|
| Func<Promise<boolean>, string> |
textInputIssueUserConfirmationDelegate |
|
Returns
isDragSource(itemHandler)
Declaration
isDragSource(itemHandler: ItemHandler): boolean;
Parameters
Returns
isDragTarget(itemHandler)
Declaration
isDragTarget(itemHandler: ItemHandler): boolean;
Parameters
Returns
isItemHandlerSelected(itemHandler)
Declaration
isItemHandlerSelected(itemHandler: any): boolean;
Parameters
| Type |
Name |
Description |
| any |
itemHandler |
|
Returns
isOnlyThisItemHandlerSelected(itemHandler)
Declaration
isOnlyThisItemHandlerSelected(itemHandler: any): boolean;
Parameters
| Type |
Name |
Description |
| any |
itemHandler |
|
Returns
isSelectionByHitTest(pt)
Declaration
isSelectionByHitTest(pt: PointF): boolean;
Parameters
| Type |
Name |
Description |
| PointF |
pt |
|
Returns
onDragNDropDone()
Declaration
Returns
Declaration
onDragNDropPerformed(data: any): void;
Parameters
| Type |
Name |
Description |
| any |
data |
|
Returns
onDragNDropStarting(data)
Declaration
onDragNDropStarting(data: any): void;
Parameters
| Type |
Name |
Description |
| any |
data |
|
Returns
onLayerTextureLoaded()
Declaration
onLayerTextureLoaded(): void;
Returns
Declaration
Returns
onSelectionLocked()
Declaration
onSelectionLocked(): void;
Returns
pauseRedraw()
Declaration
Returns
pauseUpdateTexts()
Declaration
pauseUpdateTexts(): void;
Returns
redraw()
Declaration
Returns
redrawActiveTexts()
Declaration
redrawActiveTexts(): void;
Returns
redrawSelection()
Declaration
Returns
remove_afterReplaceItemHandler(handler)
Declaration
remove_afterReplaceItemHandler(handler: (eventArg?: ItemHandler) => any): void;
Parameters
| Type |
Name |
Description |
| (eventArg?: ItemHandler) => any |
handler |
|
Returns
remove_beforeReplaceItemHandler(handler)
Declaration
remove_beforeReplaceItemHandler(handler: (eventArg?: ItemHandler) => any): void;
Parameters
| Type |
Name |
Description |
| (eventArg?: ItemHandler) => any |
handler |
|
Returns
remove_currentItemHandlerChanged(handler)
Declaration
remove_currentItemHandlerChanged(handler: (itemHandler: ItemHandler) => void): void;
Parameters
| Type |
Name |
Description |
| (itemHandler: ItemHandler) => void |
handler |
|
Returns
remove_dragNDropDone(handler)
Declaration
remove_dragNDropDone(handler: any): void;
Parameters
| Type |
Name |
Description |
| any |
handler |
|
Returns
Declaration
remove_dragNDropPerformed(handler: any): void;
Parameters
| Type |
Name |
Description |
| any |
handler |
|
Returns
remove_dragNDropStarting(handler)
Declaration
remove_dragNDropStarting(handler: any): void;
Parameters
| Type |
Name |
Description |
| any |
handler |
|
Returns
remove_initialized(h)
Declaration
remove_initialized(h: any): void;
Parameters
| Type |
Name |
Description |
| any |
h |
|
Returns
remove_layersUpdated(handler)
Declaration
remove_layersUpdated(handler: any): void;
Parameters
| Type |
Name |
Description |
| any |
handler |
|
Returns
Declaration
remove_onScroll(h: any): void;
Parameters
| Type |
Name |
Description |
| any |
h |
|
Returns
remove_onSelectionLocked(handler)
Declaration
remove_onSelectionLocked(handler: (eventArg?: Canvas) => any): void;
Parameters
| Type |
Name |
Description |
| (eventArg?: Canvas) => any |
handler |
|
Returns
remove_ready(handler)
Declaration
remove_ready(handler: any): void;
Parameters
| Type |
Name |
Description |
| any |
handler |
|
Returns
remove_selectedItemHandlerChanged(handler)
Declaration
remove_selectedItemHandlerChanged(handler: (canvas: Canvas, itemHandler: ItemHandler) => void): void;
Parameters
Returns
remove_workspaceSizeChanged(handler)
Declaration
remove_workspaceSizeChanged(handler: any): void;
Parameters
| Type |
Name |
Description |
| any |
handler |
|
Returns
remove_zoomChanged(h)
Declaration
remove_zoomChanged(h: any): void;
Parameters
| Type |
Name |
Description |
| any |
h |
|
Returns
Declaration
removePlaceholderButtonGroup(placeholder: PlaceholderItemHandler): void;
Parameters
Returns
removeSelectedItemHandler(itemHandler)
Declaration
removeSelectedItemHandler(itemHandler: any): void;
Parameters
| Type |
Name |
Description |
| any |
itemHandler |
|
Returns
removeViolationContainer(handler)
Declaration
removeViolationContainer(handler: BaseRectangleItemHandler): void;
Parameters
Returns
resumeUpdateTexts()
Declaration
resumeUpdateTexts(): void;
Returns
setCursor(value, onBody)
Declaration
setCursor(value: Cursor, onBody: boolean): void;
Parameters
| Type |
Name |
Description |
| Cursor |
value |
|
| boolean |
onBody |
|
Returns
setSelectedItemHandlers(itemHandlers)
Declaration
setSelectedItemHandlers(itemHandlers: BaseRectangleItemHandler[]): void;
Parameters
Returns
setTextWhizzModule(textWhizz)
Declaration
setTextWhizzModule(textWhizz: typeof TextWhizz): void;
Parameters
| Type |
Name |
Description |
| typeof TextWhizz |
textWhizz |
|
Returns
setWorkspaceSize(width, height, updateButtonGroup)
Declaration
setWorkspaceSize(width: number, height: number, updateButtonGroup?: boolean): void;
Parameters
| Type |
Name |
Description |
| number |
width |
|
| number |
height |
|
| boolean |
updateButtonGroup |
|
Returns
setZoom(value, preventEvent, options)
Declaration
setZoom(value: number, preventEvent?: boolean, options?: {
force?: boolean;
updateButtonGroup?: boolean;
fullUpdate?: boolean;
}): void;
Parameters
| Type |
Name |
Description |
| number |
value |
|
| boolean |
preventEvent |
|
| {
force?: boolean;
updateButtonGroup?: boolean;
fullUpdate?: boolean;
} |
options |
|
Returns
showDnd(point, image)
Declaration
showDnd(point: PointF, image: HTMLImageElement): void;
Parameters
| Type |
Name |
Description |
| PointF |
point |
|
| HTMLImageElement |
image |
|
Returns
showHover(item)
Declaration
showHover(item: Item): void;
Parameters
| Type |
Name |
Description |
| Item |
item |
|
Returns
showSpotlight(items, options)
Declaration
showSpotlight(items: Item[], options: ISpotlightOptions): void;
Parameters
| Type |
Name |
Description |
| Item[] |
items |
|
| ISpotlightOptions |
options |
|
Returns
subscribeLimitsMessage()
Declaration
subscribeLimitsMessage(): void;
Returns
unsubscribeLimitsMessage()
Declaration
unsubscribeLimitsMessage(): void;
Returns
Declaration
updateButtonGroups(options?: UpdateButtonGroupsOptions): void;
Parameters
Returns
Declaration
updatePlaceholderButtonGroup(placeholder: PlaceholderItemHandler | GroupItemHandler): void;
Parameters
Returns
Declaration
updatePlaceholderButtonGroupPosition(placeholder: PlaceholderItemHandler): void;
Parameters
Returns
Declaration
updatePlaceholderButtonGroups(onlyVisible?: boolean): void;
Parameters
| Type |
Name |
Description |
| boolean |
onlyVisible |
|
Returns
updateSelection(force)
Declaration
updateSelection(force?: boolean): void;
Parameters
| Type |
Name |
Description |
| boolean |
force |
|
Returns
updateSpotlight(items, options)
Deprecation: use showSpotlight()
Declaration
updateSpotlight(items: Item[], options: ISpotlightOptions): void;
Parameters
| Type |
Name |
Description |
| Item[] |
items |
|
| ISpotlightOptions |
options |
|
Returns
updateTexts(textToSkip)
Declaration
updateTexts(textToSkip?: any): void;
Parameters
| Type |
Name |
Description |
| any |
textToSkip |
|
Returns
updateViewport()
Declaration
Returns
updateViolationContainer(itemHandler, updatePosition)
Declaration
updateViolationContainer(itemHandler: BaseRectangleItemHandler, updatePosition?: boolean): void;
Parameters
Returns
updateViolationContainerPosition(itemHandler)
Declaration
updateViolationContainerPosition(itemHandler: BaseRectangleItemHandler): void;
Parameters
Returns
updateViolationContainers(updatePosition, onlyVisible)
Declaration
updateViolationContainers(updatePosition?: boolean, onlyVisible?: boolean): void;
Parameters
| Type |
Name |
Description |
| boolean |
updatePosition |
|
| boolean |
onlyVisible |
|
Returns
Declaration
violationWarningButtonHitTestObject(pt: PointF): BaseRectangleItemHandler;
Parameters
| Type |
Name |
Description |
| PointF |
pt |
|
Returns
waitUpdate(itemHandlers)
Declaration
waitUpdate(itemHandlers?: ItemHandler[]): Promise<void[]>;
Parameters
Returns
| Type |
Description |
| Promise<void[]> |
|
workspaceToControl(pt)
Declaration
workspaceToControl(pt: PointF): PointF;
Parameters
| Type |
Name |
Description |
| PointF |
pt |
|
Returns