kritzel-stencil 0.3.11 → 0.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-CFnj_FXt.js → index-Xav9JFHg.js} +1 -1
- package/dist/cjs/index.cjs.js +41 -3
- package/dist/cjs/kritzel-active-users_42.cjs.entry.js +344 -138
- package/dist/cjs/kritzel-brush-style.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{schema.constants-BNMNpzvA.js → schema.constants-CMFOYyBj.js} +26 -43
- package/dist/cjs/stencil.cjs.js +3 -3
- package/dist/collection/classes/core/viewport.class.js +16 -8
- package/dist/collection/classes/objects/shape.class.js +3 -2
- package/dist/collection/classes/tools/base-tool.class.js +2 -0
- package/dist/collection/classes/tools/brush-tool.class.js +1 -0
- package/dist/collection/classes/tools/eraser-tool.class.js +1 -0
- package/dist/collection/classes/tools/image-tool.class.js +1 -0
- package/dist/collection/classes/tools/line-tool.class.js +1 -0
- package/dist/collection/classes/tools/selection-tool.class.js +1 -0
- package/dist/collection/classes/tools/shape-tool.class.js +1 -0
- package/dist/collection/classes/tools/text-tool.class.js +1 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/core/kritzel-editor/kritzel-editor.js +166 -22
- package/dist/collection/components/core/kritzel-engine/kritzel-engine.js +408 -37
- package/dist/collection/components/shared/kritzel-dropdown/kritzel-dropdown.css +3 -3
- package/dist/collection/components/shared/kritzel-input/kritzel-input.css +1 -1
- package/dist/collection/components/shared/kritzel-numeric-input/kritzel-numeric-input.css +2 -2
- package/dist/collection/components/ui/kritzel-context-menu/kritzel-context-menu.css +7 -0
- package/dist/collection/components/ui/kritzel-context-menu/kritzel-context-menu.js +7 -1
- package/dist/collection/components/ui/kritzel-controls/kritzel-controls.js +27 -6
- package/dist/collection/components/ui/kritzel-export/kritzel-export.css +1 -1
- package/dist/collection/components/ui/kritzel-tool-config/kritzel-tool-config.js +2 -2
- package/dist/collection/configs/default-asset-storage.config.js +1 -2
- package/dist/collection/configs/default-brush-tool.config.js +1 -0
- package/dist/collection/configs/default-line-tool.config.js +1 -0
- package/dist/collection/configs/default-shape-tool.config.js +1 -0
- package/dist/collection/configs/default-sync.config.js +2 -5
- package/dist/collection/configs/default-text-tool.config.js +1 -0
- package/dist/collection/constants/version.js +1 -1
- package/dist/collection/helpers/tool-config.helper.js +58 -65
- package/dist/collection/interfaces/tool-type.interface.js +1 -0
- package/dist/collection/themes/dark-theme.js +5 -0
- package/dist/collection/themes/light-theme.js +5 -0
- package/dist/components/index.js +1 -1
- package/dist/components/kritzel-active-users.js +1 -1
- package/dist/components/kritzel-avatar.js +1 -1
- package/dist/components/kritzel-awareness-cursors.js +1 -1
- package/dist/components/kritzel-back-to-content.js +1 -1
- package/dist/components/kritzel-brush-style.js +1 -1
- package/dist/components/kritzel-button.js +1 -1
- package/dist/components/kritzel-color-palette.js +1 -1
- package/dist/components/kritzel-color.js +1 -1
- package/dist/components/kritzel-context-menu.js +1 -1
- package/dist/components/kritzel-controls.js +1 -1
- package/dist/components/kritzel-current-user-dialog.js +1 -1
- package/dist/components/kritzel-current-user.js +1 -1
- package/dist/components/kritzel-cursor-trail.js +1 -1
- package/dist/components/kritzel-dialog.js +1 -1
- package/dist/components/kritzel-dropdown.js +1 -1
- package/dist/components/kritzel-editor.js +1 -1
- package/dist/components/kritzel-engine.js +1 -1
- package/dist/components/kritzel-export.js +1 -1
- package/dist/components/kritzel-font-family.js +1 -1
- package/dist/components/kritzel-font-size.js +1 -1
- package/dist/components/kritzel-font.js +1 -1
- package/dist/components/kritzel-icon.js +1 -1
- package/dist/components/kritzel-input.js +1 -1
- package/dist/components/kritzel-line-endings.js +1 -1
- package/dist/components/kritzel-login-dialog.js +1 -1
- package/dist/components/kritzel-master-detail.js +1 -1
- package/dist/components/kritzel-menu-item.js +1 -1
- package/dist/components/kritzel-menu.js +1 -1
- package/dist/components/kritzel-more-menu.js +1 -1
- package/dist/components/kritzel-numeric-input.js +1 -1
- package/dist/components/kritzel-opacity-slider.js +1 -1
- package/dist/components/kritzel-pill-tabs.js +1 -1
- package/dist/components/kritzel-portal.js +1 -1
- package/dist/components/kritzel-settings.js +1 -1
- package/dist/components/kritzel-shape-fill.js +1 -1
- package/dist/components/kritzel-share-dialog.js +1 -1
- package/dist/components/kritzel-slide-toggle.js +1 -1
- package/dist/components/kritzel-split-button.js +1 -1
- package/dist/components/kritzel-stroke-size.js +1 -1
- package/dist/components/kritzel-tool-config.js +1 -1
- package/dist/components/kritzel-tooltip.js +1 -1
- package/dist/components/kritzel-utility-panel.js +1 -1
- package/dist/components/kritzel-workspace-manager.js +1 -1
- package/dist/components/p-2xYAGd0I.js +1 -0
- package/dist/components/{p-DdmJquQr.js → p-B2Os1ya_.js} +1 -1
- package/dist/components/p-B2w8X7vn.js +1 -0
- package/dist/components/{p-DRB3TZzI.js → p-B4b6TDxp.js} +1 -1
- package/dist/components/p-B5xxfwKF.js +1 -0
- package/dist/components/p-B9hLySCl.js +1 -0
- package/dist/components/{p-D0aom7Yu.js → p-BFYtCsZu.js} +1 -1
- package/dist/components/{p-CARNM9pf.js → p-BFoK4W--.js} +1 -1
- package/dist/components/{p-x38RbGJA.js → p-BYmp9Ovv.js} +1 -1
- package/dist/components/{p-KVG5rztB.js → p-BbactVA0.js} +1 -1
- package/dist/components/{p-B_JH91jB.js → p-BfNHpqQ8.js} +1 -1
- package/dist/components/{p-DXgUuzXW.js → p-BiG1dxPS.js} +1 -1
- package/dist/components/{p-Dov3qOAR.js → p-Bj2laX89.js} +1 -1
- package/dist/components/{p-Cr7xOsIZ.js → p-BqwqGFQY.js} +1 -1
- package/dist/components/{p-DmTG0Y5h.js → p-BzYU3-MJ.js} +1 -1
- package/dist/components/p-C-aFOO5p.js +1 -0
- package/dist/components/p-C0TN5IAi.js +1 -0
- package/dist/components/{p-RnuCSIt-.js → p-C2SX-XRr.js} +1 -1
- package/dist/components/{p-guqEWGgV.js → p-CFgkUYoO.js} +1 -1
- package/dist/components/{p-BTSOqHMI.js → p-CHrSFOSI.js} +1 -1
- package/dist/components/p-CJOhfMU5.js +1 -0
- package/dist/components/{p-DJLJfKY2.js → p-COLHjboZ.js} +1 -1
- package/dist/components/{p-CKY7AvGR.js → p-COgo9OWy.js} +1 -1
- package/dist/components/p-CVzH1Oil.js +1 -0
- package/dist/components/{p-DhAM4qeQ.js → p-CXpv9Rxe.js} +1 -1
- package/dist/components/{p-Bp3kdH4l.js → p-CcyIAi9S.js} +1 -1
- package/dist/components/{p-COIxq81R.js → p-CmuNn1Tc.js} +1 -1
- package/dist/components/{p-DfH7YY2C.js → p-D-sRVAbQ.js} +1 -1
- package/dist/components/{p-ZgZqbJ58.js → p-DDYoDSrm.js} +1 -1
- package/dist/components/{p-u0b2RJAn.js → p-DEy7zJCe.js} +1 -1
- package/dist/components/{p-BPEn0_hr.js → p-DM11KXUT.js} +1 -1
- package/dist/components/{p-CJERvHdy.js → p-DbB730vO.js} +1 -1
- package/dist/components/{p-C8ggg-5h.js → p-Df3BwVGy.js} +1 -1
- package/dist/components/{p-Dx_xz_El.js → p-DlwYHzSj.js} +1 -1
- package/dist/components/p-DplAQ6jk.js +9 -0
- package/dist/components/{p-CJ2V42sz.js → p-FK7b3BGt.js} +1 -1
- package/dist/components/{p-CxtTuKCy.js → p-JhOYwUOj.js} +1 -1
- package/dist/components/{p-Dw9sKOsb.js → p-SptaSMno.js} +1 -1
- package/dist/components/{p-KjtNlFTl.js → p-UoPj5QjH.js} +1 -1
- package/dist/components/{p-CYR9wbJg.js → p-dcAernE1.js} +1 -1
- package/dist/components/{p-B0VnbmWu.js → p-ijIqLY9g.js} +1 -1
- package/dist/components/{p-BI_UUiTr.js → p-skWUIStn.js} +1 -1
- package/dist/components/{p-DgtrNOWm.js → p-x6doYeiI.js} +1 -1
- package/dist/esm/{index-D9HaikfQ.js → index-Dhio9uis.js} +1 -1
- package/dist/esm/index.js +42 -4
- package/dist/esm/kritzel-active-users_42.entry.js +344 -138
- package/dist/esm/kritzel-brush-style.entry.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{schema.constants-CqBoZbmA.js → schema.constants-NrtFvKER.js} +27 -43
- package/dist/esm/stencil.js +4 -4
- package/dist/stencil/index.esm.js +1 -1
- package/dist/stencil/p-9adee165.entry.js +9 -0
- package/dist/stencil/p-NrtFvKER.js +1 -0
- package/dist/stencil/{p-69298b5f.entry.js → p-fb32cd8f.entry.js} +1 -1
- package/dist/stencil/stencil.esm.js +1 -1
- package/dist/types/classes/core/viewport.class.d.ts +8 -0
- package/dist/types/classes/objects/base-object.class.d.ts +1 -1
- package/dist/types/classes/objects/shape.class.d.ts +1 -1
- package/dist/types/classes/tools/base-tool.class.d.ts +3 -0
- package/dist/types/classes/tools/brush-tool.class.d.ts +1 -0
- package/dist/types/classes/tools/eraser-tool.class.d.ts +1 -0
- package/dist/types/classes/tools/image-tool.class.d.ts +1 -0
- package/dist/types/classes/tools/line-tool.class.d.ts +1 -0
- package/dist/types/classes/tools/selection-tool.class.d.ts +1 -0
- package/dist/types/classes/tools/shape-tool.class.d.ts +1 -0
- package/dist/types/classes/tools/text-tool.class.d.ts +1 -0
- package/dist/types/components/core/kritzel-editor/kritzel-editor.d.ts +5 -0
- package/dist/types/components/core/kritzel-engine/kritzel-engine.d.ts +48 -0
- package/dist/types/components/ui/kritzel-context-menu/kritzel-context-menu.d.ts +1 -0
- package/dist/types/components/ui/kritzel-controls/kritzel-controls.d.ts +1 -0
- package/dist/types/components.d.ts +69 -14
- package/dist/types/configs/default-asset-storage.config.d.ts +1 -1
- package/dist/types/configs/default-sync.config.d.ts +1 -1
- package/dist/types/constants/version.d.ts +1 -1
- package/dist/types/interfaces/object.interface.d.ts +1 -1
- package/dist/types/interfaces/theme.interface.d.ts +8 -3
- package/dist/types/interfaces/tool-config.interface.d.ts +3 -6
- package/dist/types/interfaces/tool-type.interface.d.ts +1 -0
- package/dist/types/interfaces/tool.interface.d.ts +1 -0
- package/dist/types/interfaces/toolbar-control.interface.d.ts +4 -0
- package/dist/types/stencil-public-runtime.d.ts +1 -0
- package/package.json +1 -1
- package/dist/components/p-BFgWBbpu.js +0 -1
- package/dist/components/p-C0wFAtT_.js +0 -1
- package/dist/components/p-CB7ynHtI.js +0 -1
- package/dist/components/p-CWgI1dA0.js +0 -1
- package/dist/components/p-D15NO5kE.js +0 -1
- package/dist/components/p-DH-H7om7.js +0 -1
- package/dist/components/p-DLlIaDNn.js +0 -9
- package/dist/components/p-IiG44Unz.js +0 -1
- package/dist/components/p-K7ySy791.js +0 -1
- package/dist/stencil/p-94992a11.entry.js +0 -9
- package/dist/stencil/p-CqBoZbmA.js +0 -1
- /package/dist/components/{p-BWj1eE2b.js → p-B43upypT.js} +0 -0
- /package/dist/stencil/{p-D9HaikfQ.js → p-Dhio9uis.js} +0 -0
|
@@ -188,20 +188,13 @@ export class KritzelEditor {
|
|
|
188
188
|
isUtilityPanelVisible = true;
|
|
189
189
|
isWorkspaceManagerVisible = true;
|
|
190
190
|
isMoreMenuVisible = true;
|
|
191
|
+
isObjectDistanceFadingActive = false;
|
|
191
192
|
syncConfig = DEFAULT_SYNC_CONFIG;
|
|
192
193
|
assetStorageConfig = DEFAULT_ASSET_STORAGE_CONFIG;
|
|
193
194
|
/** The element to use as the target for the cursor. Defaults to the editor container if not set. */
|
|
194
195
|
cursorTarget;
|
|
195
196
|
/** Optional login configuration. When provided, a "Sign in" button is shown that opens a login dialog with the configured providers. */
|
|
196
|
-
loginConfig
|
|
197
|
-
providers: [
|
|
198
|
-
{
|
|
199
|
-
label: 'Sign in with Google',
|
|
200
|
-
icon: 'google',
|
|
201
|
-
name: 'Google',
|
|
202
|
-
},
|
|
203
|
-
],
|
|
204
|
-
};
|
|
197
|
+
loginConfig;
|
|
205
198
|
/** Whether the editor is in a loading state. When true, a loading overlay is displayed. */
|
|
206
199
|
isLoading = false;
|
|
207
200
|
/** Optional unique identifier for namespacing storage keys across multiple editor instances. */
|
|
@@ -303,12 +296,18 @@ export class KritzelEditor {
|
|
|
303
296
|
async addObject(object) {
|
|
304
297
|
return this.engineRef.addObject(object);
|
|
305
298
|
}
|
|
299
|
+
async addObjects(objects) {
|
|
300
|
+
return this.engineRef.addObjects(objects);
|
|
301
|
+
}
|
|
306
302
|
async updateObject(object, updatedProperties) {
|
|
307
303
|
return this.engineRef.updateObject(object, updatedProperties);
|
|
308
304
|
}
|
|
309
305
|
async removeObject(object) {
|
|
310
306
|
return this.engineRef.removeObject(object);
|
|
311
307
|
}
|
|
308
|
+
async removeObjects(objects) {
|
|
309
|
+
return this.engineRef.removeObjects(objects);
|
|
310
|
+
}
|
|
312
311
|
async getSelectedObjects() {
|
|
313
312
|
return this.engineRef.getSelectedObjects();
|
|
314
313
|
}
|
|
@@ -324,12 +323,18 @@ export class KritzelEditor {
|
|
|
324
323
|
async centerObjectInViewport(object) {
|
|
325
324
|
return this.engineRef.centerObjectInViewport(object);
|
|
326
325
|
}
|
|
326
|
+
async panToObject(object) {
|
|
327
|
+
return this.engineRef.panToObject(object);
|
|
328
|
+
}
|
|
327
329
|
async backToContent() {
|
|
328
330
|
return this.engineRef.backToContent();
|
|
329
331
|
}
|
|
330
332
|
async centerAllObjects(animate = true) {
|
|
331
333
|
return this.engineRef.centerAllObjects(animate);
|
|
332
334
|
}
|
|
335
|
+
async centerObjects(objects, animate = true) {
|
|
336
|
+
return this.engineRef.centerObjects(objects, animate);
|
|
337
|
+
}
|
|
333
338
|
async setViewport(x, y, scale) {
|
|
334
339
|
return this.engineRef.setViewport(x, y, scale);
|
|
335
340
|
}
|
|
@@ -783,31 +788,31 @@ export class KritzelEditor {
|
|
|
783
788
|
const isLoggedIn = this.isLoggedIn;
|
|
784
789
|
const shouldShowCurrentUser = isLoggedIn;
|
|
785
790
|
const shouldShowLoginButton = this.isReady && !!this.loginConfig && !isLoggedIn;
|
|
786
|
-
return (h(Host, { key: '
|
|
791
|
+
return (h(Host, { key: '673bfb4d2d5224c3c3a11bada8afb1c3b90aa03d', style: {
|
|
787
792
|
opacity: this.isEditorVisible ? '1' : '0',
|
|
788
793
|
visibility: this.isEditorVisible ? 'visible' : 'hidden',
|
|
789
794
|
transition: 'opacity 0.2s ease-in-out, visibility 0.2s ease-in-out',
|
|
790
|
-
} }, h("div", { key: '
|
|
795
|
+
} }, h("div", { key: 'cee9075de7a44953b3d017c334b19151ab7bb926', class: "top-left-buttons" }, h("kritzel-workspace-manager", { key: 'a7a6c246dabe3ddbab3d807a9f0c275bc621363f', visible: this.isWorkspaceManagerVisible, workspaces: this.workspaces, activeWorkspace: this.activeWorkspace, onWorkspaceChange: event => (this.activeWorkspace = event.detail), onIsWorkspaceManagerReady: () => (this.isWorkspaceManagerReady = true) }), h("kritzel-back-to-content", { key: 'b5452a22f7fd434b8816bdaa117d457b2f1879f3', visible: this.isBackToContentButtonVisible, onBackToContent: () => this.backToContent() })), h("kritzel-engine", { key: 'a08648ec91f678724171238735b1073ffb53ca73', ref: el => {
|
|
791
796
|
if (el) {
|
|
792
797
|
this.engineRef = el;
|
|
793
798
|
}
|
|
794
|
-
}, workspace: this.activeWorkspace, activeWorkspaceId: this.activeWorkspaceId, editorId: this.editorId, syncConfig: this.syncConfig, assetStorageConfig: this.assetStorageConfig, user: this.user, scaleMax: this.scaleMax, lockDrawingScale: this.lockDrawingScale, scaleMin: this.scaleMin, cursorTarget: this.cursorTarget, isLoading: this.isLoading, viewportBoundaryLeft: this.viewportBoundaryLeft, viewportBoundaryRight: this.viewportBoundaryRight, viewportBoundaryTop: this.viewportBoundaryTop, viewportBoundaryBottom: this.viewportBoundaryBottom, wheelEnabled: this.wheelEnabled, theme: this.theme, themes: this.themes, debugInfo: this.debugInfo, globalContextMenuItems: this.globalContextMenuItems, objectContextMenuItems: this.objectContextMenuItems, onIsEngineReady: event => this.onEngineReady(event), onWorkspacesChange: event => this.handleWorkspacesChange(event), onActiveWorkspaceChange: event => this.handleActiveWorkspaceChange(event), onObjectsChange: event => this.handleObjectsChange(event), onObjectsAdded: event => this.handleObjectsAdded(event), onObjectsRemoved: event => this.handleObjectsRemoved(event), onObjectsUpdated: event => this.handleObjectsUpdated(event), onUndoStateChange: event => this.handleUndoStateChange(event), onObjectsInViewportChange: event => this.handleObjectsInViewportChange(event), onViewportChange: event => this.handleViewportChange(event), onAwarenessChange: event => this.handleAwarenessChange(event) }), h("kritzel-controls", { key: '
|
|
799
|
+
}, workspace: this.activeWorkspace, activeWorkspaceId: this.activeWorkspaceId, editorId: this.editorId, syncConfig: this.syncConfig, assetStorageConfig: this.assetStorageConfig, user: this.user, scaleMax: this.scaleMax, lockDrawingScale: this.lockDrawingScale, isObjectDistanceFadingActive: this.isObjectDistanceFadingActive, scaleMin: this.scaleMin, cursorTarget: this.cursorTarget, isLoading: this.isLoading, viewportBoundaryLeft: this.viewportBoundaryLeft, viewportBoundaryRight: this.viewportBoundaryRight, viewportBoundaryTop: this.viewportBoundaryTop, viewportBoundaryBottom: this.viewportBoundaryBottom, wheelEnabled: this.wheelEnabled, theme: this.theme, themes: this.themes, debugInfo: this.debugInfo, globalContextMenuItems: this.globalContextMenuItems, objectContextMenuItems: this.objectContextMenuItems, onIsEngineReady: event => this.onEngineReady(event), onWorkspacesChange: event => this.handleWorkspacesChange(event), onActiveWorkspaceChange: event => this.handleActiveWorkspaceChange(event), onObjectsChange: event => this.handleObjectsChange(event), onObjectsAdded: event => this.handleObjectsAdded(event), onObjectsRemoved: event => this.handleObjectsRemoved(event), onObjectsUpdated: event => this.handleObjectsUpdated(event), onUndoStateChange: event => this.handleUndoStateChange(event), onObjectsInViewportChange: event => this.handleObjectsInViewportChange(event), onViewportChange: event => this.handleViewportChange(event), onAwarenessChange: event => this.handleAwarenessChange(event) }), h("kritzel-controls", { key: 'a7b78a31bda3fe2fe1def6be339894b83ea3ee38', visible: this.isControlsVisible, class: { 'keyboard-open': this.isVirtualKeyboardOpen }, ref: el => {
|
|
795
800
|
if (el) {
|
|
796
801
|
this.controlsRef = el;
|
|
797
802
|
}
|
|
798
|
-
}, controls: this.controls, isUtilityPanelVisible: this.isUtilityPanelVisible, undoState: this.undoState ?? undefined, theme: this.theme, onIsControlsReady: () => (this.isControlsReady = true) }), h("div", { key: '
|
|
803
|
+
}, controls: this.controls, isUtilityPanelVisible: this.isUtilityPanelVisible, undoState: this.undoState ?? undefined, theme: this.theme, onIsControlsReady: () => (this.isControlsReady = true) }), h("div", { key: '0b3f4879c44864661a5bf5f126da3a869fa808f5', class: "top-right-buttons" }, h("kritzel-settings", { key: '7da7fb709f2e4a31a6df1f7382a91f4d78dc6e35', ref: el => {
|
|
799
804
|
if (el) {
|
|
800
805
|
this.settingsRef = el;
|
|
801
806
|
}
|
|
802
|
-
}, shortcuts: this.shortcuts, availableThemes: this.themes && this.themes.length > 0 ? this.themes.map(t => t.name) : ['light', 'dark'], settings: this.currentSettingsConfig, onSettingsChange: event => this.handleSettingsChange(event) }), h("kritzel-export", { key: '
|
|
807
|
+
}, shortcuts: this.shortcuts, availableThemes: this.themes && this.themes.length > 0 ? this.themes.map(t => t.name) : ['light', 'dark'], settings: this.currentSettingsConfig, onSettingsChange: event => this.handleSettingsChange(event) }), h("kritzel-export", { key: 'f362b0181231da30efc927cbebd818a9a64991b0', ref: el => {
|
|
803
808
|
if (el) {
|
|
804
809
|
this.exportRef = el;
|
|
805
810
|
}
|
|
806
|
-
}, workspaceName: this.activeWorkspace?.name || 'workspace', onExportPng: () => this.engineRef.exportViewportAsPng(), onExportSvg: () => this.engineRef.exportViewportAsSvg(), onExportJson: event => this.engineRef.downloadAsJson(event.detail) }), h("kritzel-active-users", { key: '
|
|
811
|
+
}, workspaceName: this.activeWorkspace?.name || 'workspace', onExportPng: () => this.engineRef.exportViewportAsPng(), onExportSvg: () => this.engineRef.exportViewportAsSvg(), onExportJson: event => this.engineRef.downloadAsJson(event.detail) }), h("kritzel-active-users", { key: '1cf065fed9b27ffb19a3695425c797a3bc29fa51', users: this.activeUsers }), shouldShowCurrentUser && h("kritzel-current-user", { key: '7d6e8e227f36164daed7303645bdd490b362b4d0', user: this.user }), shouldShowLoginButton && (h("kritzel-button", { key: '1dcf1f5ae547f4c2c5b7ec88b34bcad0a2a4da28', onButtonClick: () => this.loginDialogRef?.open() }, "Sign in")), h("kritzel-more-menu", { key: 'cb80dea4bb9861b6d627399c9aad64075cb8944b', items: this.moreMenuItems, visible: this.isMoreMenuVisible }), h("kritzel-share-dialog", { key: 'd12bc96d7af23941e4e054dadfddcf6429de6208', ref: el => {
|
|
807
812
|
if (el) {
|
|
808
813
|
this.shareDialogRef = el;
|
|
809
814
|
}
|
|
810
|
-
}, isPublic: this.currentIsPublic, workspaceId: this.activeWorkspace?.id, onToggleIsPublic: this.handleToggleIsPublic }), this.loginConfig && (h("kritzel-login-dialog", { key: '
|
|
815
|
+
}, isPublic: this.currentIsPublic, workspaceId: this.activeWorkspace?.id, onToggleIsPublic: this.handleToggleIsPublic }), this.loginConfig && (h("kritzel-login-dialog", { key: '6c29a13069cd74972e94bbc245f26375fa95f4cc', ref: el => {
|
|
811
816
|
if (el) {
|
|
812
817
|
this.loginDialogRef = el;
|
|
813
818
|
}
|
|
@@ -844,7 +849,7 @@ export class KritzelEditor {
|
|
|
844
849
|
"setter": false,
|
|
845
850
|
"reflect": false,
|
|
846
851
|
"attribute": "scale-max",
|
|
847
|
-
"defaultValue": "
|
|
852
|
+
"defaultValue": "1000"
|
|
848
853
|
},
|
|
849
854
|
"scaleMin": {
|
|
850
855
|
"type": "number",
|
|
@@ -864,7 +869,7 @@ export class KritzelEditor {
|
|
|
864
869
|
"setter": false,
|
|
865
870
|
"reflect": false,
|
|
866
871
|
"attribute": "scale-min",
|
|
867
|
-
"defaultValue": "
|
|
872
|
+
"defaultValue": "0.0001"
|
|
868
873
|
},
|
|
869
874
|
"lockDrawingScale": {
|
|
870
875
|
"type": "boolean",
|
|
@@ -1288,6 +1293,26 @@ export class KritzelEditor {
|
|
|
1288
1293
|
"attribute": "is-more-menu-visible",
|
|
1289
1294
|
"defaultValue": "true"
|
|
1290
1295
|
},
|
|
1296
|
+
"isObjectDistanceFadingActive": {
|
|
1297
|
+
"type": "boolean",
|
|
1298
|
+
"mutable": false,
|
|
1299
|
+
"complexType": {
|
|
1300
|
+
"original": "boolean",
|
|
1301
|
+
"resolved": "boolean",
|
|
1302
|
+
"references": {}
|
|
1303
|
+
},
|
|
1304
|
+
"required": false,
|
|
1305
|
+
"optional": false,
|
|
1306
|
+
"docs": {
|
|
1307
|
+
"tags": [],
|
|
1308
|
+
"text": ""
|
|
1309
|
+
},
|
|
1310
|
+
"getter": false,
|
|
1311
|
+
"setter": false,
|
|
1312
|
+
"reflect": false,
|
|
1313
|
+
"attribute": "is-object-distance-fading-active",
|
|
1314
|
+
"defaultValue": "false"
|
|
1315
|
+
},
|
|
1291
1316
|
"syncConfig": {
|
|
1292
1317
|
"type": "unknown",
|
|
1293
1318
|
"mutable": false,
|
|
@@ -1311,7 +1336,7 @@ export class KritzelEditor {
|
|
|
1311
1336
|
},
|
|
1312
1337
|
"getter": false,
|
|
1313
1338
|
"setter": false,
|
|
1314
|
-
"defaultValue": "
|
|
1339
|
+
"defaultValue": "{\n providers: [],\n}"
|
|
1315
1340
|
},
|
|
1316
1341
|
"assetStorageConfig": {
|
|
1317
1342
|
"type": "unknown",
|
|
@@ -1336,7 +1361,7 @@ export class KritzelEditor {
|
|
|
1336
1361
|
},
|
|
1337
1362
|
"getter": false,
|
|
1338
1363
|
"setter": false,
|
|
1339
|
-
"defaultValue": "
|
|
1364
|
+
"defaultValue": "{\n providers: [],\n}"
|
|
1340
1365
|
},
|
|
1341
1366
|
"cursorTarget": {
|
|
1342
1367
|
"type": "unknown",
|
|
@@ -1382,8 +1407,7 @@ export class KritzelEditor {
|
|
|
1382
1407
|
"text": "Optional login configuration. When provided, a \"Sign in\" button is shown that opens a login dialog with the configured providers."
|
|
1383
1408
|
},
|
|
1384
1409
|
"getter": false,
|
|
1385
|
-
"setter": false
|
|
1386
|
-
"defaultValue": "{\n providers: [\n {\n label: 'Sign in with Google',\n icon: 'google',\n name: 'Google',\n },\n ],\n }"
|
|
1410
|
+
"setter": false
|
|
1387
1411
|
},
|
|
1388
1412
|
"isLoading": {
|
|
1389
1413
|
"type": "boolean",
|
|
@@ -1808,6 +1832,37 @@ export class KritzelEditor {
|
|
|
1808
1832
|
"tags": []
|
|
1809
1833
|
}
|
|
1810
1834
|
},
|
|
1835
|
+
"addObjects": {
|
|
1836
|
+
"complexType": {
|
|
1837
|
+
"signature": "<T extends KritzelBaseObject>(objects: T[]) => Promise<T[]>",
|
|
1838
|
+
"parameters": [{
|
|
1839
|
+
"name": "objects",
|
|
1840
|
+
"type": "T[]",
|
|
1841
|
+
"docs": ""
|
|
1842
|
+
}],
|
|
1843
|
+
"references": {
|
|
1844
|
+
"Promise": {
|
|
1845
|
+
"location": "global",
|
|
1846
|
+
"id": "global::Promise"
|
|
1847
|
+
},
|
|
1848
|
+
"T": {
|
|
1849
|
+
"location": "global",
|
|
1850
|
+
"id": "global::T"
|
|
1851
|
+
},
|
|
1852
|
+
"KritzelBaseObject": {
|
|
1853
|
+
"location": "import",
|
|
1854
|
+
"path": "../../../classes/objects/base-object.class",
|
|
1855
|
+
"id": "src/classes/objects/base-object.class.ts::KritzelBaseObject",
|
|
1856
|
+
"referenceLocation": "KritzelBaseObject"
|
|
1857
|
+
}
|
|
1858
|
+
},
|
|
1859
|
+
"return": "Promise<T[]>"
|
|
1860
|
+
},
|
|
1861
|
+
"docs": {
|
|
1862
|
+
"text": "",
|
|
1863
|
+
"tags": []
|
|
1864
|
+
}
|
|
1865
|
+
},
|
|
1811
1866
|
"updateObject": {
|
|
1812
1867
|
"complexType": {
|
|
1813
1868
|
"signature": "<T extends KritzelBaseObject>(object: T, updatedProperties: Partial<T>) => Promise<T | null>",
|
|
@@ -1878,6 +1933,37 @@ export class KritzelEditor {
|
|
|
1878
1933
|
"tags": []
|
|
1879
1934
|
}
|
|
1880
1935
|
},
|
|
1936
|
+
"removeObjects": {
|
|
1937
|
+
"complexType": {
|
|
1938
|
+
"signature": "<T extends KritzelBaseObject>(objects: T[]) => Promise<T[]>",
|
|
1939
|
+
"parameters": [{
|
|
1940
|
+
"name": "objects",
|
|
1941
|
+
"type": "T[]",
|
|
1942
|
+
"docs": ""
|
|
1943
|
+
}],
|
|
1944
|
+
"references": {
|
|
1945
|
+
"Promise": {
|
|
1946
|
+
"location": "global",
|
|
1947
|
+
"id": "global::Promise"
|
|
1948
|
+
},
|
|
1949
|
+
"T": {
|
|
1950
|
+
"location": "global",
|
|
1951
|
+
"id": "global::T"
|
|
1952
|
+
},
|
|
1953
|
+
"KritzelBaseObject": {
|
|
1954
|
+
"location": "import",
|
|
1955
|
+
"path": "../../../classes/objects/base-object.class",
|
|
1956
|
+
"id": "src/classes/objects/base-object.class.ts::KritzelBaseObject",
|
|
1957
|
+
"referenceLocation": "KritzelBaseObject"
|
|
1958
|
+
}
|
|
1959
|
+
},
|
|
1960
|
+
"return": "Promise<T[]>"
|
|
1961
|
+
},
|
|
1962
|
+
"docs": {
|
|
1963
|
+
"text": "",
|
|
1964
|
+
"tags": []
|
|
1965
|
+
}
|
|
1966
|
+
},
|
|
1881
1967
|
"getSelectedObjects": {
|
|
1882
1968
|
"complexType": {
|
|
1883
1969
|
"signature": "() => Promise<KritzelBaseObject[]>",
|
|
@@ -2005,6 +2091,33 @@ export class KritzelEditor {
|
|
|
2005
2091
|
"tags": []
|
|
2006
2092
|
}
|
|
2007
2093
|
},
|
|
2094
|
+
"panToObject": {
|
|
2095
|
+
"complexType": {
|
|
2096
|
+
"signature": "(object: KritzelBaseObject) => Promise<void>",
|
|
2097
|
+
"parameters": [{
|
|
2098
|
+
"name": "object",
|
|
2099
|
+
"type": "KritzelBaseObject<HTMLElement | SVGElement>",
|
|
2100
|
+
"docs": ""
|
|
2101
|
+
}],
|
|
2102
|
+
"references": {
|
|
2103
|
+
"Promise": {
|
|
2104
|
+
"location": "global",
|
|
2105
|
+
"id": "global::Promise"
|
|
2106
|
+
},
|
|
2107
|
+
"KritzelBaseObject": {
|
|
2108
|
+
"location": "import",
|
|
2109
|
+
"path": "../../../classes/objects/base-object.class",
|
|
2110
|
+
"id": "src/classes/objects/base-object.class.ts::KritzelBaseObject",
|
|
2111
|
+
"referenceLocation": "KritzelBaseObject"
|
|
2112
|
+
}
|
|
2113
|
+
},
|
|
2114
|
+
"return": "Promise<void>"
|
|
2115
|
+
},
|
|
2116
|
+
"docs": {
|
|
2117
|
+
"text": "",
|
|
2118
|
+
"tags": []
|
|
2119
|
+
}
|
|
2120
|
+
},
|
|
2008
2121
|
"backToContent": {
|
|
2009
2122
|
"complexType": {
|
|
2010
2123
|
"signature": "() => Promise<boolean>",
|
|
@@ -2043,6 +2156,37 @@ export class KritzelEditor {
|
|
|
2043
2156
|
"tags": []
|
|
2044
2157
|
}
|
|
2045
2158
|
},
|
|
2159
|
+
"centerObjects": {
|
|
2160
|
+
"complexType": {
|
|
2161
|
+
"signature": "(objects: KritzelBaseObject[], animate?: boolean) => Promise<boolean>",
|
|
2162
|
+
"parameters": [{
|
|
2163
|
+
"name": "objects",
|
|
2164
|
+
"type": "KritzelBaseObject<HTMLElement | SVGElement>[]",
|
|
2165
|
+
"docs": ""
|
|
2166
|
+
}, {
|
|
2167
|
+
"name": "animate",
|
|
2168
|
+
"type": "boolean",
|
|
2169
|
+
"docs": ""
|
|
2170
|
+
}],
|
|
2171
|
+
"references": {
|
|
2172
|
+
"Promise": {
|
|
2173
|
+
"location": "global",
|
|
2174
|
+
"id": "global::Promise"
|
|
2175
|
+
},
|
|
2176
|
+
"KritzelBaseObject": {
|
|
2177
|
+
"location": "import",
|
|
2178
|
+
"path": "../../../classes/objects/base-object.class",
|
|
2179
|
+
"id": "src/classes/objects/base-object.class.ts::KritzelBaseObject",
|
|
2180
|
+
"referenceLocation": "KritzelBaseObject"
|
|
2181
|
+
}
|
|
2182
|
+
},
|
|
2183
|
+
"return": "Promise<boolean>"
|
|
2184
|
+
},
|
|
2185
|
+
"docs": {
|
|
2186
|
+
"text": "",
|
|
2187
|
+
"tags": []
|
|
2188
|
+
}
|
|
2189
|
+
},
|
|
2046
2190
|
"setViewport": {
|
|
2047
2191
|
"complexType": {
|
|
2048
2192
|
"signature": "(x: number, y: number, scale: number) => Promise<void>",
|