@kritzel/engine 0.4.31
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/LICENSE.md +50 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/engine.constants-CakmdKMW.js +28206 -0
- package/dist/cjs/index-BbbWU2aN.js +1742 -0
- package/dist/cjs/index.cjs.js +4232 -0
- package/dist/cjs/kritzel-awareness-cursors_5.cjs.entry.js +28004 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/stencil.cjs.js +25 -0
- package/dist/collection/classes/core/core.class.js +1389 -0
- package/dist/collection/classes/core/reviver.class.js +124 -0
- package/dist/collection/classes/core/store.class.js +337 -0
- package/dist/collection/classes/core/viewport.class.js +794 -0
- package/dist/collection/classes/core/workspace.class.js +112 -0
- package/dist/collection/classes/handlers/base.handler.js +20 -0
- package/dist/collection/classes/handlers/context-menu.handler.js +170 -0
- package/dist/collection/classes/handlers/hover.handler.js +35 -0
- package/dist/collection/classes/handlers/key.handler.js +162 -0
- package/dist/collection/classes/handlers/line-handle.handler.js +475 -0
- package/dist/collection/classes/handlers/move.handler.js +295 -0
- package/dist/collection/classes/handlers/resize.handler.js +327 -0
- package/dist/collection/classes/handlers/rotation.handler.js +174 -0
- package/dist/collection/classes/handlers/selection.handler.js +526 -0
- package/dist/collection/classes/managers/anchor.manager.js +1476 -0
- package/dist/collection/classes/managers/browser-permission.manager.js +64 -0
- package/dist/collection/classes/managers/clipboard.manager.js +346 -0
- package/dist/collection/classes/managers/clipboard.types.js +1 -0
- package/dist/collection/classes/managers/cursor.manager.js +139 -0
- package/dist/collection/classes/managers/license.manager.js +341 -0
- package/dist/collection/classes/managers/localization.manager.js +227 -0
- package/dist/collection/classes/managers/theme.manager.js +206 -0
- package/dist/collection/classes/objects/base-object.class.js +462 -0
- package/dist/collection/classes/objects/dynamic-object.class.js +437 -0
- package/dist/collection/classes/objects/group.class.js +590 -0
- package/dist/collection/classes/objects/image.class.js +500 -0
- package/dist/collection/classes/objects/line.class.js +789 -0
- package/dist/collection/classes/objects/path.class.js +578 -0
- package/dist/collection/classes/objects/selection-box.class.js +32 -0
- package/dist/collection/classes/objects/selection-group.class.js +752 -0
- package/dist/collection/classes/objects/shape.class.js +628 -0
- package/dist/collection/classes/objects/text.class.js +461 -0
- package/dist/collection/classes/providers/assets/asset-resolver.class.js +536 -0
- package/dist/collection/classes/providers/assets/http-asset-provider.class.js +111 -0
- package/dist/collection/classes/providers/assets/indexeddb-asset-provider.class.js +241 -0
- package/dist/collection/classes/providers/assets/presigned-asset-provider.class.js +86 -0
- package/dist/collection/classes/providers/paste-intent/event-paste-intent.provider.js +48 -0
- package/dist/collection/classes/providers/paste-intent/ios-paste-intent.provider.js +16 -0
- package/dist/collection/classes/providers/paste-intent/navigator-paste-intent.provider.js +86 -0
- package/dist/collection/classes/providers/sync/broadcast-sync-provider.class.js +100 -0
- package/dist/collection/classes/providers/sync/hocuspocus-sync-provider.class.js +333 -0
- package/dist/collection/classes/providers/sync/in-memory-sync-provider.class.js +69 -0
- package/dist/collection/classes/providers/sync/indexeddb-sync-provider.class.js +39 -0
- package/dist/collection/classes/providers/sync/websocket-sync-provider.class.js +110 -0
- package/dist/collection/classes/registries/dynamic-object-renderer.registry.js +52 -0
- package/dist/collection/classes/registries/font-registry.class.js +161 -0
- package/dist/collection/classes/registries/icon-registry.class.js +118 -0
- package/dist/collection/classes/registries/paste-intent-provider.registry.js +26 -0
- package/dist/collection/classes/registries/tool.registry.js +69 -0
- package/dist/collection/classes/structures/app-state-map.structure.js +461 -0
- package/dist/collection/classes/structures/object-map.structure.js +1103 -0
- package/dist/collection/classes/structures/quadtree.structure.js +251 -0
- package/dist/collection/classes/tools/base-tool.class.js +88 -0
- package/dist/collection/classes/tools/brush-tool.class.js +236 -0
- package/dist/collection/classes/tools/eraser-tool.class.js +133 -0
- package/dist/collection/classes/tools/image-tool.class.js +152 -0
- package/dist/collection/classes/tools/line-tool.class.js +249 -0
- package/dist/collection/classes/tools/selection-tool.class.js +611 -0
- package/dist/collection/classes/tools/shape-tool.class.js +251 -0
- package/dist/collection/classes/tools/text-tool.class.js +179 -0
- package/dist/collection/collection-manifest.json +17 -0
- package/dist/collection/components/kritzel-awareness-cursors/kritzel-awareness-cursors.css +115 -0
- package/dist/collection/components/kritzel-awareness-cursors/kritzel-awareness-cursors.js +380 -0
- package/dist/collection/components/kritzel-cursor-trail/kritzel-cursor-trail.css +10 -0
- package/dist/collection/components/kritzel-cursor-trail/kritzel-cursor-trail.js +153 -0
- package/dist/collection/components/kritzel-engine/kritzel-engine.css +81 -0
- package/dist/collection/components/kritzel-engine/kritzel-engine.js +6345 -0
- package/dist/collection/components/kritzel-icon/kritzel-icon.css +18 -0
- package/dist/collection/components/kritzel-icon/kritzel-icon.js +93 -0
- package/dist/collection/components/kritzel-watermark/kritzel-watermark.css +29 -0
- package/dist/collection/components/kritzel-watermark/kritzel-watermark.js +83 -0
- package/dist/collection/configs/default-asset-storage.config.js +9 -0
- package/dist/collection/configs/default-brush-tool.config.js +9 -0
- package/dist/collection/configs/default-engine-config.js +73 -0
- package/dist/collection/configs/default-line-tool.config.js +12 -0
- package/dist/collection/configs/default-shape-tool.config.js +15 -0
- package/dist/collection/configs/default-sync.config.js +6 -0
- package/dist/collection/configs/default-text-tool.config.js +12 -0
- package/dist/collection/constants/color-palette.constants.js +40 -0
- package/dist/collection/constants/core.constants.js +1 -0
- package/dist/collection/constants/engine.constants.js +4 -0
- package/dist/collection/constants/license.constants.js +25 -0
- package/dist/collection/constants/schema.constants.js +4 -0
- package/dist/collection/constants/storage.constants.js +1 -0
- package/dist/collection/constants/stroke-size.constants.js +2 -0
- package/dist/collection/constants/text-tool-fonts.constants.js +18 -0
- package/dist/collection/constants/version.js +6 -0
- package/dist/collection/enums/alignment.enum.js +9 -0
- package/dist/collection/enums/event-button.enum.js +6 -0
- package/dist/collection/enums/handle-type.enum.js +7 -0
- package/dist/collection/enums/shape-type.enum.js +6 -0
- package/dist/collection/events/active-workspace-change.event.js +1 -0
- package/dist/collection/events/editor-is-ready.event.js +1 -0
- package/dist/collection/events/login.event.js +1 -0
- package/dist/collection/helpers/alignment.helper.js +73 -0
- package/dist/collection/helpers/class.helper.js +5 -0
- package/dist/collection/helpers/color.helper.js +106 -0
- package/dist/collection/helpers/cursor.helper.js +57 -0
- package/dist/collection/helpers/devices.helper.js +28 -0
- package/dist/collection/helpers/event.helper.js +58 -0
- package/dist/collection/helpers/geometry.helper.js +149 -0
- package/dist/collection/helpers/html.helper.js +116 -0
- package/dist/collection/helpers/image-file.helper.js +6 -0
- package/dist/collection/helpers/keyboard.helper.js +55 -0
- package/dist/collection/helpers/localization.helper.js +25 -0
- package/dist/collection/helpers/math.helper.js +8 -0
- package/dist/collection/helpers/migration.helper.js +45 -0
- package/dist/collection/helpers/object.helper.js +29 -0
- package/dist/collection/helpers/svg-export.helper.js +655 -0
- package/dist/collection/helpers/theme.helper.js +77 -0
- package/dist/collection/helpers/tool-config.helper.js +63 -0
- package/dist/collection/helpers/wheel.helper.js +113 -0
- package/dist/collection/index.js +107 -0
- package/dist/collection/interfaces/anchor.interface.js +1 -0
- package/dist/collection/interfaces/arrow-head.interface.js +1 -0
- package/dist/collection/interfaces/asset-provider.interface.js +1 -0
- package/dist/collection/interfaces/asset-storage-config.interface.js +1 -0
- package/dist/collection/interfaces/asset.interface.js +1 -0
- package/dist/collection/interfaces/bounding-box.interface.js +1 -0
- package/dist/collection/interfaces/clonable.interface.js +1 -0
- package/dist/collection/interfaces/context-menu-item.interface.js +1 -0
- package/dist/collection/interfaces/context-menu-state.interface.js +1 -0
- package/dist/collection/interfaces/debug-info.interface.js +1 -0
- package/dist/collection/interfaces/dialog.interface.js +1 -0
- package/dist/collection/interfaces/document-metadata.interface.js +1 -0
- package/dist/collection/interfaces/dynamic-object-renderer.interface.js +1 -0
- package/dist/collection/interfaces/engine-state.interface.js +1 -0
- package/dist/collection/interfaces/font.interface.js +1 -0
- package/dist/collection/interfaces/localization.interface.js +1 -0
- package/dist/collection/interfaces/login-config.interface.js +1 -0
- package/dist/collection/interfaces/master-detail.interface.js +1 -0
- package/dist/collection/interfaces/menu-item.interface.js +1 -0
- package/dist/collection/interfaces/migration.interface.js +1 -0
- package/dist/collection/interfaces/notification.interface.js +1 -0
- package/dist/collection/interfaces/object-change-event.interface.js +1 -0
- package/dist/collection/interfaces/object-export.interface.js +1 -0
- package/dist/collection/interfaces/object.interface.js +1 -0
- package/dist/collection/interfaces/paste-intent-provider.interface.js +1 -0
- package/dist/collection/interfaces/point.interface.js +1 -0
- package/dist/collection/interfaces/polygon.interface.js +1 -0
- package/dist/collection/interfaces/remote-cursor.interface.js +1 -0
- package/dist/collection/interfaces/selection-state.interface.js +1 -0
- package/dist/collection/interfaces/serializable.interface.js +1 -0
- package/dist/collection/interfaces/settings.interface.js +1 -0
- package/dist/collection/interfaces/share.interface.js +1 -0
- package/dist/collection/interfaces/shortcut.interface.js +1 -0
- package/dist/collection/interfaces/sync-config.interface.js +21 -0
- package/dist/collection/interfaces/sync-provider.interface.js +1 -0
- package/dist/collection/interfaces/theme.interface.js +1 -0
- package/dist/collection/interfaces/tool-config.interface.js +1 -0
- package/dist/collection/interfaces/tool-type.interface.js +1 -0
- package/dist/collection/interfaces/tool.interface.js +1 -0
- package/dist/collection/interfaces/toolbar-item.interface.js +1 -0
- package/dist/collection/interfaces/undo-state.interface.js +1 -0
- package/dist/collection/interfaces/user.interface.js +1 -0
- package/dist/collection/interfaces/viewport-state.interface.js +1 -0
- package/dist/collection/locales/de-locale.js +119 -0
- package/dist/collection/locales/en-locale.js +120 -0
- package/dist/collection/locales/fr-locale.js +119 -0
- package/dist/collection/migrations/app-state.migrations.js +47 -0
- package/dist/collection/migrations/workspace.migrations.js +67 -0
- package/dist/collection/themes/dark-theme.js +340 -0
- package/dist/collection/themes/light-theme.js +346 -0
- package/dist/collection/types/deep-readonly.type.js +1 -0
- package/dist/collection/types/state.types.js +1 -0
- package/dist/components/index.d.ts +47 -0
- package/dist/components/index.js +4143 -0
- package/dist/components/kritzel-awareness-cursors.d.ts +11 -0
- package/dist/components/kritzel-awareness-cursors.js +6 -0
- package/dist/components/kritzel-cursor-trail.d.ts +11 -0
- package/dist/components/kritzel-cursor-trail.js +6 -0
- package/dist/components/kritzel-engine.d.ts +11 -0
- package/dist/components/kritzel-engine.js +52641 -0
- package/dist/components/kritzel-icon.d.ts +11 -0
- package/dist/components/kritzel-icon.js +6 -0
- package/dist/components/kritzel-watermark.d.ts +11 -0
- package/dist/components/kritzel-watermark.js +6 -0
- package/dist/components/p-B2Htv9ou.js +49 -0
- package/dist/components/p-BvRGQvVI.js +3456 -0
- package/dist/components/p-CfSx6HU_.js +1469 -0
- package/dist/components/p-YP8wAcF4.js +122 -0
- package/dist/components/p-fx6msYHJ.js +167 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/engine.constants-Bl5-pbq-.js +28143 -0
- package/dist/esm/index-BU9Mv7y0.js +1715 -0
- package/dist/esm/index.js +4134 -0
- package/dist/esm/kritzel-awareness-cursors_5.entry.js +27978 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/stencil.js +21 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil/index.esm.js +4134 -0
- package/dist/stencil/p-BU9Mv7y0.js +1702 -0
- package/dist/stencil/p-Bl5-pbq-.js +28143 -0
- package/dist/stencil/p-DQuL1Twl.js +3 -0
- package/dist/stencil/p-f0a8b7af.entry.js +27978 -0
- package/dist/stencil/stencil.esm.js +21 -0
- package/dist/types/classes/core/core.class.d.ts +532 -0
- package/dist/types/classes/core/reviver.class.d.ts +32 -0
- package/dist/types/classes/core/store.class.d.ts +198 -0
- package/dist/types/classes/core/viewport.class.d.ts +256 -0
- package/dist/types/classes/core/workspace.class.d.ts +95 -0
- package/dist/types/classes/handlers/base.handler.d.ts +18 -0
- package/dist/types/classes/handlers/context-menu.handler.d.ts +67 -0
- package/dist/types/classes/handlers/hover.handler.d.ts +23 -0
- package/dist/types/classes/handlers/key.handler.d.ts +44 -0
- package/dist/types/classes/handlers/line-handle.handler.d.ts +115 -0
- package/dist/types/classes/handlers/move.handler.d.ts +94 -0
- package/dist/types/classes/handlers/resize.handler.d.ts +95 -0
- package/dist/types/classes/handlers/rotation.handler.d.ts +50 -0
- package/dist/types/classes/handlers/selection.handler.d.ts +153 -0
- package/dist/types/classes/managers/anchor.manager.d.ts +513 -0
- package/dist/types/classes/managers/browser-permission.manager.d.ts +41 -0
- package/dist/types/classes/managers/clipboard.manager.d.ts +71 -0
- package/dist/types/classes/managers/clipboard.types.d.ts +23 -0
- package/dist/types/classes/managers/cursor.manager.d.ts +66 -0
- package/dist/types/classes/managers/license.manager.d.ts +147 -0
- package/dist/types/classes/managers/localization.manager.d.ts +145 -0
- package/dist/types/classes/managers/theme.manager.d.ts +112 -0
- package/dist/types/classes/objects/base-object.class.d.ts +266 -0
- package/dist/types/classes/objects/dynamic-object.class.d.ts +148 -0
- package/dist/types/classes/objects/group.class.d.ts +231 -0
- package/dist/types/classes/objects/image.class.d.ts +246 -0
- package/dist/types/classes/objects/line.class.d.ts +285 -0
- package/dist/types/classes/objects/path.class.d.ts +220 -0
- package/dist/types/classes/objects/selection-box.class.d.ts +19 -0
- package/dist/types/classes/objects/selection-group.class.d.ts +267 -0
- package/dist/types/classes/objects/shape.class.d.ts +322 -0
- package/dist/types/classes/objects/text.class.d.ts +197 -0
- package/dist/types/classes/providers/assets/asset-resolver.class.d.ts +141 -0
- package/dist/types/classes/providers/assets/http-asset-provider.class.d.ts +79 -0
- package/dist/types/classes/providers/assets/indexeddb-asset-provider.class.d.ts +69 -0
- package/dist/types/classes/providers/assets/presigned-asset-provider.class.d.ts +69 -0
- package/dist/types/classes/providers/paste-intent/event-paste-intent.provider.d.ts +8 -0
- package/dist/types/classes/providers/paste-intent/ios-paste-intent.provider.d.ts +6 -0
- package/dist/types/classes/providers/paste-intent/navigator-paste-intent.provider.d.ts +9 -0
- package/dist/types/classes/providers/sync/broadcast-sync-provider.class.d.ts +23 -0
- package/dist/types/classes/providers/sync/hocuspocus-sync-provider.class.d.ts +163 -0
- package/dist/types/classes/providers/sync/in-memory-sync-provider.class.d.ts +39 -0
- package/dist/types/classes/providers/sync/indexeddb-sync-provider.class.d.ts +25 -0
- package/dist/types/classes/providers/sync/websocket-sync-provider.class.d.ts +63 -0
- package/dist/types/classes/registries/dynamic-object-renderer.registry.d.ts +32 -0
- package/dist/types/classes/registries/font-registry.class.d.ts +19 -0
- package/dist/types/classes/registries/icon-registry.class.d.ts +39 -0
- package/dist/types/classes/registries/paste-intent-provider.registry.d.ts +10 -0
- package/dist/types/classes/registries/tool.registry.d.ts +53 -0
- package/dist/types/classes/structures/app-state-map.structure.d.ts +171 -0
- package/dist/types/classes/structures/object-map.structure.d.ts +403 -0
- package/dist/types/classes/structures/quadtree.structure.d.ts +128 -0
- package/dist/types/classes/tools/base-tool.class.d.ts +72 -0
- package/dist/types/classes/tools/brush-tool.class.d.ts +68 -0
- package/dist/types/classes/tools/eraser-tool.class.d.ts +38 -0
- package/dist/types/classes/tools/image-tool.class.d.ts +74 -0
- package/dist/types/classes/tools/line-tool.class.d.ts +63 -0
- package/dist/types/classes/tools/selection-tool.class.d.ts +188 -0
- package/dist/types/classes/tools/shape-tool.class.d.ts +90 -0
- package/dist/types/classes/tools/text-tool.class.d.ts +66 -0
- package/dist/types/components/kritzel-awareness-cursors/kritzel-awareness-cursors.d.ts +29 -0
- package/dist/types/components/kritzel-cursor-trail/kritzel-cursor-trail.d.ts +19 -0
- package/dist/types/components/kritzel-engine/kritzel-engine.d.ts +695 -0
- package/dist/types/components/kritzel-icon/kritzel-icon.d.ts +6 -0
- package/dist/types/components/kritzel-watermark/kritzel-watermark.d.ts +20 -0
- package/dist/types/components.d.ts +981 -0
- package/dist/types/configs/default-asset-storage.config.d.ts +8 -0
- package/dist/types/configs/default-brush-tool.config.d.ts +2 -0
- package/dist/types/configs/default-engine-config.d.ts +2 -0
- package/dist/types/configs/default-line-tool.config.d.ts +2 -0
- package/dist/types/configs/default-shape-tool.config.d.ts +2 -0
- package/dist/types/configs/default-sync.config.d.ts +5 -0
- package/dist/types/configs/default-text-tool.config.d.ts +2 -0
- package/dist/types/constants/color-palette.constants.d.ts +31 -0
- package/dist/types/constants/core.constants.d.ts +0 -0
- package/dist/types/constants/engine.constants.d.ts +4 -0
- package/dist/types/constants/license.constants.d.ts +25 -0
- package/dist/types/constants/schema.constants.d.ts +4 -0
- package/dist/types/constants/storage.constants.d.ts +1 -0
- package/dist/types/constants/stroke-size.constants.d.ts +2 -0
- package/dist/types/constants/text-tool-fonts.constants.d.ts +3 -0
- package/dist/types/constants/version.d.ts +6 -0
- package/dist/types/enums/alignment.enum.d.ts +8 -0
- package/dist/types/enums/event-button.enum.d.ts +5 -0
- package/dist/types/enums/handle-type.enum.d.ts +6 -0
- package/dist/types/enums/shape-type.enum.d.ts +5 -0
- package/dist/types/events/active-workspace-change.event.d.ts +7 -0
- package/dist/types/events/editor-is-ready.event.d.ts +18 -0
- package/dist/types/events/login.event.d.ts +3 -0
- package/dist/types/helpers/alignment.helper.d.ts +21 -0
- package/dist/types/helpers/class.helper.d.ts +3 -0
- package/dist/types/helpers/color.helper.d.ts +34 -0
- package/dist/types/helpers/cursor.helper.d.ts +22 -0
- package/dist/types/helpers/devices.helper.d.ts +8 -0
- package/dist/types/helpers/event.helper.d.ts +6 -0
- package/dist/types/helpers/geometry.helper.d.ts +38 -0
- package/dist/types/helpers/html.helper.d.ts +8 -0
- package/dist/types/helpers/image-file.helper.d.ts +3 -0
- package/dist/types/helpers/keyboard.helper.d.ts +6 -0
- package/dist/types/helpers/localization.helper.d.ts +18 -0
- package/dist/types/helpers/math.helper.d.ts +4 -0
- package/dist/types/helpers/migration.helper.d.ts +30 -0
- package/dist/types/helpers/object.helper.d.ts +9 -0
- package/dist/types/helpers/svg-export.helper.d.ts +231 -0
- package/dist/types/helpers/theme.helper.d.ts +42 -0
- package/dist/types/helpers/tool-config.helper.d.ts +4 -0
- package/dist/types/helpers/wheel.helper.d.ts +9 -0
- package/dist/types/index.d.ts +109 -0
- package/dist/types/interfaces/anchor.interface.d.ts +147 -0
- package/dist/types/interfaces/arrow-head.interface.d.ts +27 -0
- package/dist/types/interfaces/asset-provider.interface.d.ts +88 -0
- package/dist/types/interfaces/asset-storage-config.interface.d.ts +40 -0
- package/dist/types/interfaces/asset.interface.d.ts +43 -0
- package/dist/types/interfaces/bounding-box.interface.d.ts +8 -0
- package/dist/types/interfaces/clonable.interface.d.ts +3 -0
- package/dist/types/interfaces/context-menu-item.interface.d.ts +25 -0
- package/dist/types/interfaces/context-menu-state.interface.d.ts +16 -0
- package/dist/types/interfaces/debug-info.interface.d.ts +7 -0
- package/dist/types/interfaces/dialog.interface.d.ts +4 -0
- package/dist/types/interfaces/document-metadata.interface.d.ts +6 -0
- package/dist/types/interfaces/dynamic-object-renderer.interface.d.ts +40 -0
- package/dist/types/interfaces/engine-state.interface.d.ts +82 -0
- package/dist/types/interfaces/font.interface.d.ts +15 -0
- package/dist/types/interfaces/localization.interface.d.ts +143 -0
- package/dist/types/interfaces/login-config.interface.d.ts +24 -0
- package/dist/types/interfaces/master-detail.interface.d.ts +14 -0
- package/dist/types/interfaces/menu-item.interface.d.ts +27 -0
- package/dist/types/interfaces/migration.interface.d.ts +16 -0
- package/dist/types/interfaces/notification.interface.d.ts +10 -0
- package/dist/types/interfaces/object-change-event.interface.d.ts +31 -0
- package/dist/types/interfaces/object-export.interface.d.ts +20 -0
- package/dist/types/interfaces/object.interface.d.ts +53 -0
- package/dist/types/interfaces/paste-intent-provider.interface.d.ts +10 -0
- package/dist/types/interfaces/point.interface.d.ts +4 -0
- package/dist/types/interfaces/polygon.interface.d.ts +7 -0
- package/dist/types/interfaces/remote-cursor.interface.d.ts +18 -0
- package/dist/types/interfaces/selection-state.interface.d.ts +7 -0
- package/dist/types/interfaces/serializable.interface.d.ts +5 -0
- package/dist/types/interfaces/settings.interface.d.ts +25 -0
- package/dist/types/interfaces/share.interface.d.ts +9 -0
- package/dist/types/interfaces/shortcut.interface.d.ts +10 -0
- package/dist/types/interfaces/sync-config.interface.d.ts +41 -0
- package/dist/types/interfaces/sync-provider.interface.d.ts +66 -0
- package/dist/types/interfaces/theme.interface.d.ts +553 -0
- package/dist/types/interfaces/tool-config.interface.d.ts +24 -0
- package/dist/types/interfaces/tool-type.interface.d.ts +1 -0
- package/dist/types/interfaces/tool.interface.d.ts +8 -0
- package/dist/types/interfaces/toolbar-item.interface.d.ts +66 -0
- package/dist/types/interfaces/undo-state.interface.d.ts +6 -0
- package/dist/types/interfaces/user.interface.d.ts +22 -0
- package/dist/types/interfaces/viewport-state.interface.d.ts +7 -0
- package/dist/types/locales/de-locale.d.ts +5 -0
- package/dist/types/locales/en-locale.d.ts +6 -0
- package/dist/types/locales/fr-locale.d.ts +5 -0
- package/dist/types/migrations/app-state.migrations.d.ts +11 -0
- package/dist/types/migrations/workspace.migrations.d.ts +11 -0
- package/dist/types/stencil-public-runtime.d.ts +1873 -0
- package/dist/types/themes/dark-theme.d.ts +5 -0
- package/dist/types/themes/light-theme.d.ts +5 -0
- package/dist/types/types/deep-readonly.type.d.ts +7 -0
- package/dist/types/types/state.types.d.ts +3 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +101 -0
- package/readme.md +11 -0
|
@@ -0,0 +1,553 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Theme name type for available themes
|
|
3
|
+
*/
|
|
4
|
+
export type ThemeName = 'light' | 'dark' | (string & NonNullable<unknown>);
|
|
5
|
+
/**
|
|
6
|
+
* Complete theme definition with all CSS variable values grouped by category
|
|
7
|
+
*/
|
|
8
|
+
export interface KritzelTheme {
|
|
9
|
+
/** Theme identifier */
|
|
10
|
+
name: ThemeName;
|
|
11
|
+
/** Global variables */
|
|
12
|
+
global?: {
|
|
13
|
+
cursorTrailColor?: string;
|
|
14
|
+
cursorTrailOpacity?: string;
|
|
15
|
+
dividerColor?: string;
|
|
16
|
+
focusColor?: string;
|
|
17
|
+
fontFamily?: string;
|
|
18
|
+
borderColor?: string;
|
|
19
|
+
focusRingColor?: string;
|
|
20
|
+
iconColor?: string;
|
|
21
|
+
pointerCursor?: string;
|
|
22
|
+
primaryColor?: string;
|
|
23
|
+
primaryHoverColor?: string;
|
|
24
|
+
primaryTextColor?: string;
|
|
25
|
+
scrollbarThumbColor?: string;
|
|
26
|
+
textPrimary?: string;
|
|
27
|
+
textSecondary?: string;
|
|
28
|
+
name?: string;
|
|
29
|
+
};
|
|
30
|
+
/** Active users variables */
|
|
31
|
+
activeUsers?: {
|
|
32
|
+
avatarBorderColor?: string;
|
|
33
|
+
overflowColor?: string;
|
|
34
|
+
overflowFontSize?: string;
|
|
35
|
+
tooltipBackground?: string;
|
|
36
|
+
tooltipColor?: string;
|
|
37
|
+
};
|
|
38
|
+
/** Avatar variables */
|
|
39
|
+
avatar?: {
|
|
40
|
+
border?: string;
|
|
41
|
+
defaultBackground?: string;
|
|
42
|
+
defaultColor?: string;
|
|
43
|
+
initialsColor?: string;
|
|
44
|
+
initialsFontFamily?: string;
|
|
45
|
+
initialsFontWeight?: string;
|
|
46
|
+
};
|
|
47
|
+
/** Awareness variables */
|
|
48
|
+
awareness?: {
|
|
49
|
+
cursorLabelFontSize?: string;
|
|
50
|
+
cursorLabelTextColor?: string;
|
|
51
|
+
cursorTransitionDuration?: string;
|
|
52
|
+
};
|
|
53
|
+
/** Back to content variables */
|
|
54
|
+
backToContent?: {
|
|
55
|
+
activeBackgroundColor?: string;
|
|
56
|
+
backgroundColor?: string;
|
|
57
|
+
border?: string;
|
|
58
|
+
borderRadius?: string;
|
|
59
|
+
boxShadow?: string;
|
|
60
|
+
color?: string;
|
|
61
|
+
fontSize?: string;
|
|
62
|
+
fontWeight?: string;
|
|
63
|
+
gap?: string;
|
|
64
|
+
height?: string;
|
|
65
|
+
hoverBackgroundColor?: string;
|
|
66
|
+
padding?: string;
|
|
67
|
+
zIndex?: string;
|
|
68
|
+
};
|
|
69
|
+
/** Button variables */
|
|
70
|
+
button?: {
|
|
71
|
+
borderRadius?: string;
|
|
72
|
+
fontSize?: string;
|
|
73
|
+
fontWeight?: string;
|
|
74
|
+
padding?: string;
|
|
75
|
+
primaryActiveBackgroundColor?: string;
|
|
76
|
+
primaryBackgroundColor?: string;
|
|
77
|
+
primaryColor?: string;
|
|
78
|
+
primaryHoverBackgroundColor?: string;
|
|
79
|
+
secondaryActiveBackgroundColor?: string;
|
|
80
|
+
secondaryBackgroundColor?: string;
|
|
81
|
+
secondaryColor?: string;
|
|
82
|
+
secondaryHoverBackgroundColor?: string;
|
|
83
|
+
textActiveBackgroundColor?: string;
|
|
84
|
+
textColor?: string;
|
|
85
|
+
textHoverBackgroundColor?: string;
|
|
86
|
+
width?: string;
|
|
87
|
+
};
|
|
88
|
+
/** Checkerboard variables */
|
|
89
|
+
checkerboard?: {
|
|
90
|
+
colorDark?: string;
|
|
91
|
+
colorLight?: string;
|
|
92
|
+
};
|
|
93
|
+
/** Color palette variables */
|
|
94
|
+
colorPalette?: {
|
|
95
|
+
circleBorderColor?: string;
|
|
96
|
+
hoverBackgroundColor?: string;
|
|
97
|
+
selectedBackgroundColor?: string;
|
|
98
|
+
};
|
|
99
|
+
/** Context menu variables */
|
|
100
|
+
contextMenu?: {
|
|
101
|
+
backgroundColor?: string;
|
|
102
|
+
border?: string;
|
|
103
|
+
borderRadius?: string;
|
|
104
|
+
boxShadow?: string;
|
|
105
|
+
dividerColor?: string;
|
|
106
|
+
dividerMargin?: string;
|
|
107
|
+
itemActiveBackgroundColor?: string;
|
|
108
|
+
itemBorderRadius?: string;
|
|
109
|
+
itemColor?: string;
|
|
110
|
+
itemDisabledColor?: string;
|
|
111
|
+
itemFontSize?: string;
|
|
112
|
+
itemGap?: string;
|
|
113
|
+
itemHoverBackgroundColor?: string;
|
|
114
|
+
itemPadding?: string;
|
|
115
|
+
itemSpacing?: string;
|
|
116
|
+
minWidth?: string;
|
|
117
|
+
padding?: string;
|
|
118
|
+
};
|
|
119
|
+
/** Current user dialog variables */
|
|
120
|
+
currentUserDialog?: {
|
|
121
|
+
emailColor?: string;
|
|
122
|
+
logoutButtonActiveBackgroundColor?: string;
|
|
123
|
+
logoutButtonBackgroundColor?: string;
|
|
124
|
+
logoutButtonColor?: string;
|
|
125
|
+
logoutButtonHoverBackgroundColor?: string;
|
|
126
|
+
nameColor?: string;
|
|
127
|
+
};
|
|
128
|
+
/** Dialog variables */
|
|
129
|
+
dialog?: {
|
|
130
|
+
backdropColor?: string;
|
|
131
|
+
backgroundColor?: string;
|
|
132
|
+
bodyPadding?: string;
|
|
133
|
+
border?: string;
|
|
134
|
+
borderRadius?: string;
|
|
135
|
+
boxShadow?: string;
|
|
136
|
+
closeButtonActiveBackground?: string;
|
|
137
|
+
closeButtonBackground?: string;
|
|
138
|
+
closeButtonBorderRadius?: string;
|
|
139
|
+
closeButtonColor?: string;
|
|
140
|
+
closeButtonHoverBackground?: string;
|
|
141
|
+
closeButtonHoverColor?: string;
|
|
142
|
+
fontFamily?: string;
|
|
143
|
+
footerBorder?: string;
|
|
144
|
+
footerGap?: string;
|
|
145
|
+
footerPadding?: string;
|
|
146
|
+
headerBorder?: string;
|
|
147
|
+
headerPadding?: string;
|
|
148
|
+
heightLarge?: string;
|
|
149
|
+
heightMedium?: string;
|
|
150
|
+
heightSmall?: string;
|
|
151
|
+
maxHeight?: string;
|
|
152
|
+
maxWidth?: string;
|
|
153
|
+
titleColor?: string;
|
|
154
|
+
titleFontSize?: string;
|
|
155
|
+
titleFontWeight?: string;
|
|
156
|
+
widthLarge?: string;
|
|
157
|
+
widthMedium?: string;
|
|
158
|
+
widthSmall?: string;
|
|
159
|
+
};
|
|
160
|
+
/** Dropdown variables */
|
|
161
|
+
dropdown?: {
|
|
162
|
+
accentColor?: string;
|
|
163
|
+
background?: string;
|
|
164
|
+
borderColor?: string;
|
|
165
|
+
borderRadius?: string;
|
|
166
|
+
hoverBackgroundColor?: string;
|
|
167
|
+
hoverBorderColor?: string;
|
|
168
|
+
menuBorderRadius?: string;
|
|
169
|
+
selectedBackgroundColor?: string;
|
|
170
|
+
textColor?: string;
|
|
171
|
+
triggerFontSize?: string;
|
|
172
|
+
triggerPadding?: string;
|
|
173
|
+
};
|
|
174
|
+
/** Editor variables */
|
|
175
|
+
editor?: {
|
|
176
|
+
loadingOverlayBackground?: string;
|
|
177
|
+
loadingOverlayColor?: string;
|
|
178
|
+
loadingOverlayDelay?: string;
|
|
179
|
+
loadingOverlaySpinnerActiveColor?: string;
|
|
180
|
+
loadingOverlaySpinnerColor?: string;
|
|
181
|
+
loadingOverlayZIndex?: string;
|
|
182
|
+
notificationAnimationDuration?: string;
|
|
183
|
+
notificationAnimationEasing?: string;
|
|
184
|
+
notificationDismissAnimationDuration?: string;
|
|
185
|
+
notificationDismissAnimationEasing?: string;
|
|
186
|
+
syncIndicatorBackground?: string;
|
|
187
|
+
syncIndicatorColor?: string;
|
|
188
|
+
syncIndicatorSpinnerColor?: string;
|
|
189
|
+
syncIndicatorSpinnerTrack?: string;
|
|
190
|
+
syncIndicatorZIndex?: string;
|
|
191
|
+
toolbarBottom?: string;
|
|
192
|
+
toolbarTransform?: string;
|
|
193
|
+
toolbarTransition?: string;
|
|
194
|
+
toolbarTransitionDuration?: string;
|
|
195
|
+
topCenterNotificationTop?: string;
|
|
196
|
+
topCenterNotificationZIndex?: string;
|
|
197
|
+
topLeftButtonsLeft?: string;
|
|
198
|
+
topLeftButtonsTop?: string;
|
|
199
|
+
topRightButtonsRight?: string;
|
|
200
|
+
topRightButtonsTop?: string;
|
|
201
|
+
};
|
|
202
|
+
/** Engine variables */
|
|
203
|
+
engine?: {
|
|
204
|
+
backgroundColor?: string;
|
|
205
|
+
};
|
|
206
|
+
/** Font size variables */
|
|
207
|
+
fontSize?: {
|
|
208
|
+
hoverBackgroundColor?: string;
|
|
209
|
+
selectedBackgroundColor?: string;
|
|
210
|
+
textColor?: string;
|
|
211
|
+
};
|
|
212
|
+
/** Line endings variables */
|
|
213
|
+
lineEndings?: {
|
|
214
|
+
hoverBackgroundColor?: string;
|
|
215
|
+
labelColor?: string;
|
|
216
|
+
optionBackground?: string;
|
|
217
|
+
selectedBackgroundColor?: string;
|
|
218
|
+
};
|
|
219
|
+
/** Login dialog variables */
|
|
220
|
+
loginDialog?: {
|
|
221
|
+
buttonActiveBackground?: string;
|
|
222
|
+
buttonBackground?: string;
|
|
223
|
+
buttonBorderColor?: string;
|
|
224
|
+
buttonHoverBackground?: string;
|
|
225
|
+
buttonHoverBorderColor?: string;
|
|
226
|
+
buttonTextColor?: string;
|
|
227
|
+
spinnerActiveColor?: string;
|
|
228
|
+
spinnerColor?: string;
|
|
229
|
+
subtitleColor?: string;
|
|
230
|
+
};
|
|
231
|
+
/** Master detail variables */
|
|
232
|
+
masterDetail?: {
|
|
233
|
+
backButtonColor?: string;
|
|
234
|
+
backgroundColor?: string;
|
|
235
|
+
detailBackgroundColor?: string;
|
|
236
|
+
detailFocusOutline?: string;
|
|
237
|
+
detailFocusOutlineOffset?: string;
|
|
238
|
+
detailPadding?: string;
|
|
239
|
+
gap?: string;
|
|
240
|
+
menuBackgroundColor?: string;
|
|
241
|
+
menuBorderRight?: string;
|
|
242
|
+
menuGap?: string;
|
|
243
|
+
menuItemActiveBackgroundColor?: string;
|
|
244
|
+
menuItemBackgroundColor?: string;
|
|
245
|
+
menuItemBorderRadius?: string;
|
|
246
|
+
menuItemChevronColor?: string;
|
|
247
|
+
menuItemColor?: string;
|
|
248
|
+
menuItemDisabledColor?: string;
|
|
249
|
+
menuItemFocusOutline?: string;
|
|
250
|
+
menuItemFocusOutlineOffset?: string;
|
|
251
|
+
menuItemFontSize?: string;
|
|
252
|
+
menuItemFontWeight?: string;
|
|
253
|
+
menuItemGap?: string;
|
|
254
|
+
menuItemHoverBackgroundColor?: string;
|
|
255
|
+
menuItemPadding?: string;
|
|
256
|
+
menuItemSelectedBackgroundColor?: string;
|
|
257
|
+
menuItemSelectedColor?: string;
|
|
258
|
+
menuItemSelectedFontWeight?: string;
|
|
259
|
+
menuItemSelectedHoverBackgroundColor?: string;
|
|
260
|
+
menuMinWidth?: string;
|
|
261
|
+
menuPadding?: string;
|
|
262
|
+
menuWidth?: string;
|
|
263
|
+
minHeight?: string;
|
|
264
|
+
};
|
|
265
|
+
/** Menu variables */
|
|
266
|
+
menu?: {
|
|
267
|
+
backgroundColor?: string;
|
|
268
|
+
border?: string;
|
|
269
|
+
borderRadius?: string;
|
|
270
|
+
boxShadow?: string;
|
|
271
|
+
gap?: string;
|
|
272
|
+
itemBorderRadius?: string;
|
|
273
|
+
itemButtonHoverBackgroundColor?: string;
|
|
274
|
+
itemChildOpenBackgroundColor?: string;
|
|
275
|
+
itemColor?: string;
|
|
276
|
+
itemEditingBackgroundColor?: string;
|
|
277
|
+
itemFontSize?: string;
|
|
278
|
+
itemHeight?: string;
|
|
279
|
+
itemInputBorder?: string;
|
|
280
|
+
itemInputBorderColorOnSelected?: string;
|
|
281
|
+
itemInputCaretColor?: string;
|
|
282
|
+
itemInputCaretColorOnSelected?: string;
|
|
283
|
+
itemInputHeight?: string;
|
|
284
|
+
itemInputSelectionColor?: string;
|
|
285
|
+
itemInputSelectionColorOnSelected?: string;
|
|
286
|
+
itemInputSelectionTextColor?: string;
|
|
287
|
+
itemInputSelectionTextColorOnSelected?: string;
|
|
288
|
+
itemMinHeight?: string;
|
|
289
|
+
itemOverlayBackgroundColor?: string;
|
|
290
|
+
itemPadding?: string;
|
|
291
|
+
itemSelectedBackgroundColor?: string;
|
|
292
|
+
itemSelectedColor?: string;
|
|
293
|
+
padding?: string;
|
|
294
|
+
width?: string;
|
|
295
|
+
};
|
|
296
|
+
/** More menu variables */
|
|
297
|
+
moreMenu?: {
|
|
298
|
+
backgroundColor?: string;
|
|
299
|
+
border?: string;
|
|
300
|
+
borderRadius?: string;
|
|
301
|
+
boxShadow?: string;
|
|
302
|
+
buttonActiveBackgroundColor?: string;
|
|
303
|
+
buttonColor?: string;
|
|
304
|
+
buttonHeight?: string;
|
|
305
|
+
buttonHoverBackgroundColor?: string;
|
|
306
|
+
buttonWidth?: string;
|
|
307
|
+
innerBorderRadius?: string;
|
|
308
|
+
padding?: string;
|
|
309
|
+
};
|
|
310
|
+
/** Notification card variables */
|
|
311
|
+
notificationCard?: {
|
|
312
|
+
backgroundColor?: string;
|
|
313
|
+
border?: string;
|
|
314
|
+
borderRadius?: string;
|
|
315
|
+
boxShadow?: string;
|
|
316
|
+
color?: string;
|
|
317
|
+
dismissButtonActiveBackgroundColor?: string;
|
|
318
|
+
dismissButtonBackgroundColor?: string;
|
|
319
|
+
dismissButtonBorderRadius?: string;
|
|
320
|
+
dismissButtonColor?: string;
|
|
321
|
+
dismissButtonHoverBackgroundColor?: string;
|
|
322
|
+
dismissButtonSize?: string;
|
|
323
|
+
errorPillBackgroundColor?: string;
|
|
324
|
+
errorPillColor?: string;
|
|
325
|
+
headerGap?: string;
|
|
326
|
+
headerMarginBottom?: string;
|
|
327
|
+
headerRightGap?: string;
|
|
328
|
+
infoPillBackgroundColor?: string;
|
|
329
|
+
infoPillColor?: string;
|
|
330
|
+
maxWidth?: string;
|
|
331
|
+
messageColor?: string;
|
|
332
|
+
messageFontSize?: string;
|
|
333
|
+
messageLineHeight?: string;
|
|
334
|
+
padding?: string;
|
|
335
|
+
pillBackgroundColor?: string;
|
|
336
|
+
pillBorderRadius?: string;
|
|
337
|
+
pillColor?: string;
|
|
338
|
+
pillFontSize?: string;
|
|
339
|
+
pillFontWeight?: string;
|
|
340
|
+
pillHeight?: string;
|
|
341
|
+
pillPadding?: string;
|
|
342
|
+
timestampColor?: string;
|
|
343
|
+
timestampFontSize?: string;
|
|
344
|
+
warningPillBackgroundColor?: string;
|
|
345
|
+
warningPillColor?: string;
|
|
346
|
+
};
|
|
347
|
+
/** Numeric input variables */
|
|
348
|
+
numericInput?: {
|
|
349
|
+
borderColor?: string;
|
|
350
|
+
borderRadius?: string;
|
|
351
|
+
focusBorderColor?: string;
|
|
352
|
+
hoverBorderColor?: string;
|
|
353
|
+
inputBackground?: string;
|
|
354
|
+
labelColor?: string;
|
|
355
|
+
selectionBackground?: string;
|
|
356
|
+
selectionColor?: string;
|
|
357
|
+
spinnerActiveBackground?: string;
|
|
358
|
+
spinnerBackground?: string;
|
|
359
|
+
spinnerBorderRadius?: string;
|
|
360
|
+
spinnerColor?: string;
|
|
361
|
+
spinnerHoverBackground?: string;
|
|
362
|
+
textColor?: string;
|
|
363
|
+
};
|
|
364
|
+
/** Opacity slider variables */
|
|
365
|
+
opacitySlider?: {
|
|
366
|
+
activeColor?: string;
|
|
367
|
+
thumbBorderColor?: string;
|
|
368
|
+
thumbColor?: string;
|
|
369
|
+
trackColor?: string;
|
|
370
|
+
};
|
|
371
|
+
/** Pill tabs variables */
|
|
372
|
+
pillTabs?: {
|
|
373
|
+
background?: string;
|
|
374
|
+
borderRadius?: string;
|
|
375
|
+
tabBackground?: string;
|
|
376
|
+
tabBackgroundHover?: string;
|
|
377
|
+
tabBackgroundSelected?: string;
|
|
378
|
+
tabBorderRadius?: string;
|
|
379
|
+
tabLabelMaxWidth?: string;
|
|
380
|
+
tabShadowSelected?: string;
|
|
381
|
+
tabTextColor?: string;
|
|
382
|
+
tabTextColorSelected?: string;
|
|
383
|
+
};
|
|
384
|
+
/** Portal variables */
|
|
385
|
+
portal?: {
|
|
386
|
+
maxHeight?: string;
|
|
387
|
+
};
|
|
388
|
+
/** Selection variables */
|
|
389
|
+
selection?: {
|
|
390
|
+
borderColor?: string;
|
|
391
|
+
borderWidth?: string;
|
|
392
|
+
boxBackgroundColor?: string;
|
|
393
|
+
boxBorderColor?: string;
|
|
394
|
+
handleColor?: string;
|
|
395
|
+
handleSize?: string;
|
|
396
|
+
handleStrokeColor?: string;
|
|
397
|
+
};
|
|
398
|
+
/** Settings variables */
|
|
399
|
+
settings?: {
|
|
400
|
+
contentHeadingColor?: string;
|
|
401
|
+
contentTextColor?: string;
|
|
402
|
+
descriptionColor?: string;
|
|
403
|
+
labelColor?: string;
|
|
404
|
+
shortcutItemBg?: string;
|
|
405
|
+
shortcutKeyBg?: string;
|
|
406
|
+
shortcutKeyBorder?: string;
|
|
407
|
+
shortcutKeyColor?: string;
|
|
408
|
+
};
|
|
409
|
+
/** Shape fill variables */
|
|
410
|
+
shapeFill?: {
|
|
411
|
+
hoverBackgroundColor?: string;
|
|
412
|
+
optionBackground?: string;
|
|
413
|
+
selectedBackgroundColor?: string;
|
|
414
|
+
};
|
|
415
|
+
/** Share dialog variables */
|
|
416
|
+
shareDialog?: {
|
|
417
|
+
borderColor?: string;
|
|
418
|
+
copyButtonBackground?: string;
|
|
419
|
+
copyButtonColor?: string;
|
|
420
|
+
copyButtonHoverBackground?: string;
|
|
421
|
+
copyButtonHoverColor?: string;
|
|
422
|
+
copySuccessBackground?: string;
|
|
423
|
+
copySuccessColor?: string;
|
|
424
|
+
descriptionColor?: string;
|
|
425
|
+
inputBackground?: string;
|
|
426
|
+
inputBorderColor?: string;
|
|
427
|
+
inputTextColor?: string;
|
|
428
|
+
labelColor?: string;
|
|
429
|
+
qrBackground?: string;
|
|
430
|
+
qrBorderColor?: string;
|
|
431
|
+
revokeButtonBorderColor?: string;
|
|
432
|
+
revokeButtonColor?: string;
|
|
433
|
+
revokeButtonHoverBackground?: string;
|
|
434
|
+
revokeButtonHoverColor?: string;
|
|
435
|
+
selectionColor?: string;
|
|
436
|
+
};
|
|
437
|
+
/** Slide toggle variables */
|
|
438
|
+
slideToggle?: {
|
|
439
|
+
borderRadius?: string;
|
|
440
|
+
height?: string;
|
|
441
|
+
thumbColor?: string;
|
|
442
|
+
thumbSize?: string;
|
|
443
|
+
trackCheckedColor?: string;
|
|
444
|
+
trackColor?: string;
|
|
445
|
+
transitionDuration?: string;
|
|
446
|
+
width?: string;
|
|
447
|
+
};
|
|
448
|
+
/** Snap variables */
|
|
449
|
+
snap?: {
|
|
450
|
+
indicatorFill?: string;
|
|
451
|
+
indicatorFillInactive?: string;
|
|
452
|
+
indicatorStroke?: string;
|
|
453
|
+
indicatorStrokeInactive?: string;
|
|
454
|
+
lineStroke?: string;
|
|
455
|
+
};
|
|
456
|
+
/** Split button variables */
|
|
457
|
+
splitButton?: {
|
|
458
|
+
backgroundColor?: string;
|
|
459
|
+
border?: string;
|
|
460
|
+
borderRadius?: string;
|
|
461
|
+
boxShadow?: string;
|
|
462
|
+
color?: string;
|
|
463
|
+
dividerBackgroundColor?: string;
|
|
464
|
+
dividerWidth?: string;
|
|
465
|
+
fontSize?: string;
|
|
466
|
+
gap?: string;
|
|
467
|
+
hoverBackgroundColor?: string;
|
|
468
|
+
padding?: string;
|
|
469
|
+
};
|
|
470
|
+
/** Stroke size variables */
|
|
471
|
+
strokeSize?: {
|
|
472
|
+
hoverBackgroundColor?: string;
|
|
473
|
+
selectedBackgroundColor?: string;
|
|
474
|
+
};
|
|
475
|
+
/** Submenu variables */
|
|
476
|
+
submenu?: {
|
|
477
|
+
gap?: string;
|
|
478
|
+
};
|
|
479
|
+
/** Text input variables */
|
|
480
|
+
textInput?: {
|
|
481
|
+
background?: string;
|
|
482
|
+
borderColor?: string;
|
|
483
|
+
borderRadius?: string;
|
|
484
|
+
focusBorderColor?: string;
|
|
485
|
+
hoverBorderColor?: string;
|
|
486
|
+
labelColor?: string;
|
|
487
|
+
placeholderColor?: string;
|
|
488
|
+
selectionBackground?: string;
|
|
489
|
+
selectionColor?: string;
|
|
490
|
+
suffixBackground?: string;
|
|
491
|
+
suffixColor?: string;
|
|
492
|
+
textColor?: string;
|
|
493
|
+
};
|
|
494
|
+
/** Toolbar variables */
|
|
495
|
+
toolbar?: {
|
|
496
|
+
backgroundColor?: string;
|
|
497
|
+
border?: string;
|
|
498
|
+
borderRadius?: string;
|
|
499
|
+
boxShadow?: string;
|
|
500
|
+
controlActiveBackgroundColor?: string;
|
|
501
|
+
controlBorderRadius?: string;
|
|
502
|
+
controlColor?: string;
|
|
503
|
+
controlHoverBackgroundColor?: string;
|
|
504
|
+
controlPadding?: string;
|
|
505
|
+
controlSelectedBackgroundColor?: string;
|
|
506
|
+
controlSelectedColor?: string;
|
|
507
|
+
gap?: string;
|
|
508
|
+
padding?: string;
|
|
509
|
+
separatorColor?: string;
|
|
510
|
+
};
|
|
511
|
+
/** Tooltip variables */
|
|
512
|
+
tooltip?: {
|
|
513
|
+
backgroundColor?: string;
|
|
514
|
+
border?: string;
|
|
515
|
+
borderRadius?: string;
|
|
516
|
+
boxShadow?: string;
|
|
517
|
+
color?: string;
|
|
518
|
+
padding?: string;
|
|
519
|
+
};
|
|
520
|
+
/** Utility panel variables */
|
|
521
|
+
utilityPanel?: {
|
|
522
|
+
backgroundColor?: string;
|
|
523
|
+
buttonBorderRadius?: string;
|
|
524
|
+
buttonColor?: string;
|
|
525
|
+
buttonHoverBackgroundColor?: string;
|
|
526
|
+
separatorColor?: string;
|
|
527
|
+
};
|
|
528
|
+
/** Watermark variables */
|
|
529
|
+
watermark?: {
|
|
530
|
+
background?: string;
|
|
531
|
+
borderRadius?: string;
|
|
532
|
+
boxShadow?: string;
|
|
533
|
+
color?: string;
|
|
534
|
+
fontSize?: string;
|
|
535
|
+
offsetBottom?: string;
|
|
536
|
+
offsetRight?: string;
|
|
537
|
+
opacity?: string;
|
|
538
|
+
};
|
|
539
|
+
/** Zoom panel variables */
|
|
540
|
+
zoomPanel?: {
|
|
541
|
+
backgroundColor?: string;
|
|
542
|
+
border?: string;
|
|
543
|
+
borderRadius?: string;
|
|
544
|
+
boxShadow?: string;
|
|
545
|
+
buttonActiveBackgroundColor?: string;
|
|
546
|
+
buttonBorderRadius?: string;
|
|
547
|
+
buttonHoverBackgroundColor?: string;
|
|
548
|
+
buttonSize?: string;
|
|
549
|
+
gap?: string;
|
|
550
|
+
iconColor?: string;
|
|
551
|
+
padding?: string;
|
|
552
|
+
};
|
|
553
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { KritzelBaseTool } from '../classes/tools/base-tool.class';
|
|
2
|
+
export type { KritzelToolType } from './tool-type.interface';
|
|
3
|
+
export type ToolConfigType = 'brush' | 'line' | 'shape' | 'text' | 'selection';
|
|
4
|
+
export interface ToolConfigControl {
|
|
5
|
+
type: 'stroke-size' | 'font-size' | 'line-endings' | 'shape-fill' | 'font-family';
|
|
6
|
+
label?: string;
|
|
7
|
+
propertyName: string;
|
|
8
|
+
additionalProps?: Record<string, any>;
|
|
9
|
+
}
|
|
10
|
+
export interface ToolConfigDefinition {
|
|
11
|
+
type: ToolConfigType;
|
|
12
|
+
colorProperty: string;
|
|
13
|
+
sizeProperty: string;
|
|
14
|
+
opacityProperty: string;
|
|
15
|
+
paletteSource: 'palette' | 'none';
|
|
16
|
+
sizesSource: 'sizes' | 'none';
|
|
17
|
+
controls: ToolConfigControl[];
|
|
18
|
+
}
|
|
19
|
+
export type ConfigurableTool = KritzelBaseTool;
|
|
20
|
+
export interface ToolDisplayValues {
|
|
21
|
+
color: string;
|
|
22
|
+
size: number;
|
|
23
|
+
fontFamily?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type KritzelToolType = 'brush' | 'line' | 'shape' | 'text' | 'selection' | 'eraser' | 'image' | 'base';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { KritzelBaseTool } from '../classes/tools/base-tool.class';
|
|
2
|
+
import { ShapeType } from '../enums/shape-type.enum';
|
|
3
|
+
import { ThemeAwareColor } from '../constants/color-palette.constants';
|
|
4
|
+
import { KritzelFontRegistration } from './font.interface';
|
|
5
|
+
export interface KritzelToolbarSubOption {
|
|
6
|
+
id: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
label: string;
|
|
9
|
+
value: any;
|
|
10
|
+
toolProperty: string;
|
|
11
|
+
}
|
|
12
|
+
export interface KritzelToolbarItem {
|
|
13
|
+
type: 'tool' | 'config' | 'separator';
|
|
14
|
+
tool?: (new (...args: any[]) => KritzelBaseTool) | KritzelBaseTool;
|
|
15
|
+
icon?: string;
|
|
16
|
+
isDefault?: boolean;
|
|
17
|
+
isDisabled?: boolean | (() => boolean | Promise<boolean>);
|
|
18
|
+
name: string;
|
|
19
|
+
config?: KritzelTextToolConfig | KritzelBrushToolConfig | KritzelLineToolConfig | KritzelShapeToolConfig;
|
|
20
|
+
subOptions?: KritzelToolbarSubOption[];
|
|
21
|
+
}
|
|
22
|
+
export interface KritzelTextToolConfig {
|
|
23
|
+
color: ThemeAwareColor;
|
|
24
|
+
size: number;
|
|
25
|
+
opacity?: number;
|
|
26
|
+
fontFamily: string;
|
|
27
|
+
availableFonts?: KritzelFontRegistration[];
|
|
28
|
+
palette: ThemeAwareColor[];
|
|
29
|
+
sizes?: number[];
|
|
30
|
+
}
|
|
31
|
+
export interface KritzelBrushToolConfig {
|
|
32
|
+
color: ThemeAwareColor;
|
|
33
|
+
size: number;
|
|
34
|
+
opacity?: number;
|
|
35
|
+
palette: ThemeAwareColor[];
|
|
36
|
+
sizes?: number[];
|
|
37
|
+
}
|
|
38
|
+
export interface KritzelLineToolConfig {
|
|
39
|
+
color: ThemeAwareColor;
|
|
40
|
+
size: number;
|
|
41
|
+
opacity?: number;
|
|
42
|
+
palette: ThemeAwareColor[];
|
|
43
|
+
sizes?: number[];
|
|
44
|
+
arrows?: {
|
|
45
|
+
start?: {
|
|
46
|
+
enabled: boolean;
|
|
47
|
+
style?: 'triangle' | 'open' | 'diamond' | 'circle';
|
|
48
|
+
};
|
|
49
|
+
end?: {
|
|
50
|
+
enabled: boolean;
|
|
51
|
+
style?: 'triangle' | 'open' | 'diamond' | 'circle';
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export interface KritzelShapeToolConfig {
|
|
56
|
+
shapeType: ShapeType;
|
|
57
|
+
fillColor: ThemeAwareColor;
|
|
58
|
+
strokeColor: ThemeAwareColor;
|
|
59
|
+
strokeWidth: number;
|
|
60
|
+
opacity?: number;
|
|
61
|
+
fontColor: ThemeAwareColor;
|
|
62
|
+
fontSize: number;
|
|
63
|
+
fontFamily: string;
|
|
64
|
+
palette: ThemeAwareColor[];
|
|
65
|
+
sizes?: number[];
|
|
66
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface IKritzelUser {
|
|
2
|
+
/** Unique user identifier */
|
|
3
|
+
id: string;
|
|
4
|
+
/** User's first name */
|
|
5
|
+
firstName?: string;
|
|
6
|
+
/** User's last name */
|
|
7
|
+
lastName?: string;
|
|
8
|
+
/** Display name (takes precedence over firstName/lastName for display) */
|
|
9
|
+
displayName?: string;
|
|
10
|
+
/** User's email address */
|
|
11
|
+
email?: string;
|
|
12
|
+
/** URL to the user's profile image */
|
|
13
|
+
profileImageUrl?: string;
|
|
14
|
+
/** OAuth provider name (e.g., 'google', 'github', 'microsoft') */
|
|
15
|
+
oauthProvider?: string;
|
|
16
|
+
/** OAuth provider-specific user identifier */
|
|
17
|
+
oauthProviderId?: string;
|
|
18
|
+
/** User's preferred color (for avatar background when showing initials) */
|
|
19
|
+
color?: string;
|
|
20
|
+
/** Whether the user is a guest (not authenticated) */
|
|
21
|
+
isGuest?: boolean;
|
|
22
|
+
}
|