@imgly/codesign-mcp 0.1.0
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 +16 -0
- package/README.md +158 -0
- package/assets/docs/api/SKILL.md +49 -0
- package/assets/docs/api/index.d.ts +10518 -0
- package/assets/docs/guide/SKILL.md +142 -0
- package/assets/docs/guide/actions.md +1038 -0
- package/assets/docs/guide/animation/create/base.md +467 -0
- package/assets/docs/guide/animation/create/text.md +453 -0
- package/assets/docs/guide/animation/create.md +558 -0
- package/assets/docs/guide/animation/edit.md +501 -0
- package/assets/docs/guide/animation/overview.md +22 -0
- package/assets/docs/guide/animation/types.md +430 -0
- package/assets/docs/guide/animation.md +23 -0
- package/assets/docs/guide/api/AssetAPI.md +602 -0
- package/assets/docs/guide/api/BlockAPI.md +6152 -0
- package/assets/docs/guide/api/CreativeEngine.md +180 -0
- package/assets/docs/guide/api/EditorAPI.md +1261 -0
- package/assets/docs/guide/api/EventAPI.md +25 -0
- package/assets/docs/guide/api/SceneAPI.md +729 -0
- package/assets/docs/guide/api/VariableAPI.md +59 -0
- package/assets/docs/guide/api/types.md +71 -0
- package/assets/docs/guide/api-reference/overview.md +20 -0
- package/assets/docs/guide/automation/auto-resize.md +412 -0
- package/assets/docs/guide/automation/batch-processing.md +474 -0
- package/assets/docs/guide/automation/data-merge.md +406 -0
- package/assets/docs/guide/automation/design-generation.md +107 -0
- package/assets/docs/guide/automation/overview.md +16 -0
- package/assets/docs/guide/automation.md +24 -0
- package/assets/docs/guide/browser-support.md +38 -0
- package/assets/docs/guide/capabilities.md +18 -0
- package/assets/docs/guide/colors/adjust.md +551 -0
- package/assets/docs/guide/colors/apply.md +349 -0
- package/assets/docs/guide/colors/basics.md +440 -0
- package/assets/docs/guide/colors/conversion.md +504 -0
- package/assets/docs/guide/colors/create-color-palette.md +426 -0
- package/assets/docs/guide/colors/for-print/cmyk.md +577 -0
- package/assets/docs/guide/colors/for-print/spot.md +751 -0
- package/assets/docs/guide/colors/for-print.md +21 -0
- package/assets/docs/guide/colors/for-screen/p3.md +60 -0
- package/assets/docs/guide/colors/for-screen/srgb.md +463 -0
- package/assets/docs/guide/colors/for-screen.md +21 -0
- package/assets/docs/guide/colors/overview.md +20 -0
- package/assets/docs/guide/colors/replace.md +535 -0
- package/assets/docs/guide/colors.md +28 -0
- package/assets/docs/guide/compatibility.md +27 -0
- package/assets/docs/guide/concepts/architecture.md +99 -0
- package/assets/docs/guide/concepts/assets.md +360 -0
- package/assets/docs/guide/concepts/blocks.md +750 -0
- package/assets/docs/guide/concepts/buffers.md +546 -0
- package/assets/docs/guide/concepts/design-units.md +333 -0
- package/assets/docs/guide/concepts/edit-modes.md +431 -0
- package/assets/docs/guide/concepts/editing-workflow.md +303 -0
- package/assets/docs/guide/concepts/events.md +466 -0
- package/assets/docs/guide/concepts/headless-mode/browser.md +291 -0
- package/assets/docs/guide/concepts/pages.md +396 -0
- package/assets/docs/guide/concepts/resources.md +496 -0
- package/assets/docs/guide/concepts/scenes.md +443 -0
- package/assets/docs/guide/concepts/templating.md +194 -0
- package/assets/docs/guide/concepts/terminology.md +296 -0
- package/assets/docs/guide/concepts/undo-and-history.md +461 -0
- package/assets/docs/guide/concepts.md +38 -0
- package/assets/docs/guide/configuration.md +469 -0
- package/assets/docs/guide/conversion/overview.md +22 -0
- package/assets/docs/guide/conversion/to-base64.md +234 -0
- package/assets/docs/guide/conversion/to-pdf.md +616 -0
- package/assets/docs/guide/conversion/to-png.md +290 -0
- package/assets/docs/guide/conversion.md +23 -0
- package/assets/docs/guide/create-audio/audio/add-music.md +430 -0
- package/assets/docs/guide/create-audio/audio/add-sound-effects.md +664 -0
- package/assets/docs/guide/create-audio/audio/loop.md +370 -0
- package/assets/docs/guide/create-audio/audio.md +336 -0
- package/assets/docs/guide/create-composition/add-background.md +395 -0
- package/assets/docs/guide/create-composition/blend-modes.md +372 -0
- package/assets/docs/guide/create-composition/collage.md +432 -0
- package/assets/docs/guide/create-composition/group-and-ungroup.md +388 -0
- package/assets/docs/guide/create-composition/layer-management.md +503 -0
- package/assets/docs/guide/create-composition/layout.md +396 -0
- package/assets/docs/guide/create-composition/lock-design.md +362 -0
- package/assets/docs/guide/create-composition/multi-page.md +204 -0
- package/assets/docs/guide/create-composition/overview.md +18 -0
- package/assets/docs/guide/create-composition/programmatic.md +593 -0
- package/assets/docs/guide/create-composition.md +30 -0
- package/assets/docs/guide/create-templates/add-dynamic-content/placeholders.md +688 -0
- package/assets/docs/guide/create-templates/add-dynamic-content/set-editing-constraints.md +600 -0
- package/assets/docs/guide/create-templates/add-dynamic-content/text-variables.md +647 -0
- package/assets/docs/guide/create-templates/add-dynamic-content.md +307 -0
- package/assets/docs/guide/create-templates/add-to-template-library.md +297 -0
- package/assets/docs/guide/create-templates/edit-or-remove.md +441 -0
- package/assets/docs/guide/create-templates/from-scratch.md +558 -0
- package/assets/docs/guide/create-templates/import/from-scene-file.md +440 -0
- package/assets/docs/guide/create-templates/import.md +244 -0
- package/assets/docs/guide/create-templates/lock.md +325 -0
- package/assets/docs/guide/create-templates/overview.md +16 -0
- package/assets/docs/guide/create-templates.md +32 -0
- package/assets/docs/guide/create-video/audio/adjust-speed.md +302 -0
- package/assets/docs/guide/create-video/audio/adjust-volume.md +346 -0
- package/assets/docs/guide/create-video/control.md +285 -0
- package/assets/docs/guide/create-video/limitations.md +396 -0
- package/assets/docs/guide/create-video/overview.md +224 -0
- package/assets/docs/guide/create-video/timeline-editor.md +622 -0
- package/assets/docs/guide/create-video/update-caption-presets.md +676 -0
- package/assets/docs/guide/create-video.md +32 -0
- package/assets/docs/guide/edit-image/add-watermark.md +497 -0
- package/assets/docs/guide/edit-image/overview.md +22 -0
- package/assets/docs/guide/edit-image/remove-bg.md +420 -0
- package/assets/docs/guide/edit-image/replace-colors.md +680 -0
- package/assets/docs/guide/edit-image/transform/crop.md +523 -0
- package/assets/docs/guide/edit-image/transform/move.md +279 -0
- package/assets/docs/guide/edit-image/transform/resize.md +301 -0
- package/assets/docs/guide/edit-image/transform/rotate.md +408 -0
- package/assets/docs/guide/edit-image/transform/scale.md +278 -0
- package/assets/docs/guide/edit-image/transform.md +24 -0
- package/assets/docs/guide/edit-image/vectorize.md +204 -0
- package/assets/docs/guide/edit-image.md +25 -0
- package/assets/docs/guide/edit-video/add-captions.md +589 -0
- package/assets/docs/guide/edit-video/add-watermark.md +429 -0
- package/assets/docs/guide/edit-video/join-and-arrange.md +540 -0
- package/assets/docs/guide/edit-video/redaction.md +544 -0
- package/assets/docs/guide/edit-video/split.md +634 -0
- package/assets/docs/guide/edit-video/transform/crop.md +380 -0
- package/assets/docs/guide/edit-video/transform/flip.md +182 -0
- package/assets/docs/guide/edit-video/transform/move.md +413 -0
- package/assets/docs/guide/edit-video/transform/resize.md +534 -0
- package/assets/docs/guide/edit-video/transform/rotate.md +312 -0
- package/assets/docs/guide/edit-video/transform/scale.md +603 -0
- package/assets/docs/guide/edit-video/transform.md +25 -0
- package/assets/docs/guide/edit-video/trim.md +773 -0
- package/assets/docs/guide/engine-interface.md +108 -0
- package/assets/docs/guide/export-save-publish/create-thumbnail.md +292 -0
- package/assets/docs/guide/export-save-publish/export/compress.md +639 -0
- package/assets/docs/guide/export-save-publish/export/overview.md +576 -0
- package/assets/docs/guide/export-save-publish/export/partial-export.md +694 -0
- package/assets/docs/guide/export-save-publish/export/size-limits.md +401 -0
- package/assets/docs/guide/export-save-publish/export/to-html5.md +474 -0
- package/assets/docs/guide/export-save-publish/export/to-jpeg.md +312 -0
- package/assets/docs/guide/export-save-publish/export/to-mp4.md +364 -0
- package/assets/docs/guide/export-save-publish/export/to-pdf.md +389 -0
- package/assets/docs/guide/export-save-publish/export/to-png.md +255 -0
- package/assets/docs/guide/export-save-publish/export/to-raw-data.md +303 -0
- package/assets/docs/guide/export-save-publish/export/to-webp.md +261 -0
- package/assets/docs/guide/export-save-publish/export/with-color-mask.md +278 -0
- package/assets/docs/guide/export-save-publish/export.md +36 -0
- package/assets/docs/guide/export-save-publish/for-printing.md +423 -0
- package/assets/docs/guide/export-save-publish/for-social-media.md +318 -0
- package/assets/docs/guide/export-save-publish/pre-export-validation.md +698 -0
- package/assets/docs/guide/export-save-publish/save.md +340 -0
- package/assets/docs/guide/export-save-publish/store-custom-metadata.md +367 -0
- package/assets/docs/guide/file-format-support.md +34 -0
- package/assets/docs/guide/fills/color.md +678 -0
- package/assets/docs/guide/fills/image.md +539 -0
- package/assets/docs/guide/fills/overview.md +144 -0
- package/assets/docs/guide/fills/video.md +641 -0
- package/assets/docs/guide/fills.md +24 -0
- package/assets/docs/guide/filters-and-effects/apply.md +1019 -0
- package/assets/docs/guide/filters-and-effects/blur.md +382 -0
- package/assets/docs/guide/filters-and-effects/chroma-key-green-screen.md +445 -0
- package/assets/docs/guide/filters-and-effects/create-custom-filters.md +614 -0
- package/assets/docs/guide/filters-and-effects/create-custom-lut-filter.md +426 -0
- package/assets/docs/guide/filters-and-effects/distortion.md +527 -0
- package/assets/docs/guide/filters-and-effects/duotone.md +602 -0
- package/assets/docs/guide/filters-and-effects/gradients.md +1311 -0
- package/assets/docs/guide/filters-and-effects/overview.md +22 -0
- package/assets/docs/guide/filters-and-effects/support.md +623 -0
- package/assets/docs/guide/filters-and-effects.md +28 -0
- package/assets/docs/guide/get-started/agent-skills.md +119 -0
- package/assets/docs/guide/get-started/build-with-ai.md +45 -0
- package/assets/docs/guide/get-started/mcp-server.md +119 -0
- package/assets/docs/guide/get-started/overview.md +28 -0
- package/assets/docs/guide/get-started/vanilla-js/quickstart.md +175 -0
- package/assets/docs/guide/grid-and-rulers.md +222 -0
- package/assets/docs/guide/guides/export-save-publish/export/audio.md +224 -0
- package/assets/docs/guide/guides/text/rendering-internals.md +796 -0
- package/assets/docs/guide/guides.md +49 -0
- package/assets/docs/guide/import-media/asset-library.md +23 -0
- package/assets/docs/guide/import-media/asset-panel/basics.md +324 -0
- package/assets/docs/guide/import-media/asset-panel/customize.md +478 -0
- package/assets/docs/guide/import-media/asset-panel/refresh-assets.md +415 -0
- package/assets/docs/guide/import-media/asset-panel/thumbnails.md +633 -0
- package/assets/docs/guide/import-media/capture-from-camera/record-video.md +137 -0
- package/assets/docs/guide/import-media/capture-from-camera.md +20 -0
- package/assets/docs/guide/import-media/concepts.md +173 -0
- package/assets/docs/guide/import-media/content-json-schema.md +615 -0
- package/assets/docs/guide/import-media/default-assets.md +381 -0
- package/assets/docs/guide/import-media/edit-or-remove-assets.md +489 -0
- package/assets/docs/guide/import-media/file-format-support.md +178 -0
- package/assets/docs/guide/import-media/from-local-source/user-upload.md +438 -0
- package/assets/docs/guide/import-media/from-local-source.md +20 -0
- package/assets/docs/guide/import-media/from-remote-source/asset-versioning.md +390 -0
- package/assets/docs/guide/import-media/from-remote-source/getty-images.md +627 -0
- package/assets/docs/guide/import-media/from-remote-source/imgly-premium-assets.md +625 -0
- package/assets/docs/guide/import-media/from-remote-source/pexels.md +692 -0
- package/assets/docs/guide/import-media/from-remote-source/remote-asset.md +473 -0
- package/assets/docs/guide/import-media/from-remote-source/soundstripe.md +497 -0
- package/assets/docs/guide/import-media/from-remote-source/third-party.md +51 -0
- package/assets/docs/guide/import-media/from-remote-source/unsplash.md +914 -0
- package/assets/docs/guide/import-media/from-remote-source/your-server.md +764 -0
- package/assets/docs/guide/import-media/from-remote-source.md +28 -0
- package/assets/docs/guide/import-media/overview.md +32 -0
- package/assets/docs/guide/import-media/retrieve-mimetype.md +274 -0
- package/assets/docs/guide/import-media/size-limits.md +20 -0
- package/assets/docs/guide/import-media/source-sets.md +476 -0
- package/assets/docs/guide/import-media.md +32 -0
- package/assets/docs/guide/insert-media/audio.md +291 -0
- package/assets/docs/guide/insert-media/images.md +380 -0
- package/assets/docs/guide/insert-media/position-and-align.md +734 -0
- package/assets/docs/guide/insert-media/shapes-or-stickers.md +799 -0
- package/assets/docs/guide/insert-media/videos.md +308 -0
- package/assets/docs/guide/insert-media.md +24 -0
- package/assets/docs/guide/key-capabilities.md +24 -0
- package/assets/docs/guide/key-concepts.md +83 -0
- package/assets/docs/guide/licensing.md +45 -0
- package/assets/docs/guide/llms-txt.md +53 -0
- package/assets/docs/guide/open-the-editor/blank-canvas.md +124 -0
- package/assets/docs/guide/open-the-editor/from-htmlcanvas.md +228 -0
- package/assets/docs/guide/open-the-editor/from-image.md +205 -0
- package/assets/docs/guide/open-the-editor/from-template.md +189 -0
- package/assets/docs/guide/open-the-editor/from-video.md +274 -0
- package/assets/docs/guide/open-the-editor/import-design/from-archive.md +504 -0
- package/assets/docs/guide/open-the-editor/import-design/from-indesign.md +680 -0
- package/assets/docs/guide/open-the-editor/import-design/from-photoshop.md +865 -0
- package/assets/docs/guide/open-the-editor/import-design.md +481 -0
- package/assets/docs/guide/open-the-editor/load-scene.md +178 -0
- package/assets/docs/guide/open-the-editor/overview.md +20 -0
- package/assets/docs/guide/open-the-editor/set-zoom-level.md +303 -0
- package/assets/docs/guide/open-the-editor/uri-resolver.md +347 -0
- package/assets/docs/guide/open-the-editor.md +29 -0
- package/assets/docs/guide/outlines/overview.md +14 -0
- package/assets/docs/guide/outlines/shadows-and-glows.md +515 -0
- package/assets/docs/guide/outlines/strokes.md +292 -0
- package/assets/docs/guide/outlines.md +22 -0
- package/assets/docs/guide/overview.md +22 -0
- package/assets/docs/guide/performance.md +217 -0
- package/assets/docs/guide/plugins/asset-sources.md +553 -0
- package/assets/docs/guide/plugins/print-ready-pdf.md +549 -0
- package/assets/docs/guide/plugins.md +36 -0
- package/assets/docs/guide/rules/asset-handling.md +180 -0
- package/assets/docs/guide/rules/common-pitfalls.md +272 -0
- package/assets/docs/guide/rules/content-fill-mode.md +29 -0
- package/assets/docs/guide/rules/enforce-brand-guidelines.md +672 -0
- package/assets/docs/guide/rules/lock-content.md +478 -0
- package/assets/docs/guide/rules/moderate-content.md +761 -0
- package/assets/docs/guide/rules/overview.md +514 -0
- package/assets/docs/guide/rules/silent-init-errors.md +137 -0
- package/assets/docs/guide/rules/verify-properties-before-use.md +78 -0
- package/assets/docs/guide/rules.md +23 -0
- package/assets/docs/guide/security.md +199 -0
- package/assets/docs/guide/serve-assets.md +332 -0
- package/assets/docs/guide/settings.md +199 -0
- package/assets/docs/guide/shapes.md +23 -0
- package/assets/docs/guide/starterkits/3d-mockup-editor.md +748 -0
- package/assets/docs/guide/starterkits/advanced-editor.md +698 -0
- package/assets/docs/guide/starterkits/advanced-video-editor.md +696 -0
- package/assets/docs/guide/starterkits/ai-editor.md +749 -0
- package/assets/docs/guide/starterkits/airtable-image-editor.md +672 -0
- package/assets/docs/guide/starterkits/apparel-ui.md +188 -0
- package/assets/docs/guide/starterkits/assets.md +27 -0
- package/assets/docs/guide/starterkits/auto-resize.md +586 -0
- package/assets/docs/guide/starterkits/automated-video-generation.md +692 -0
- package/assets/docs/guide/starterkits/background-removal-editor.md +480 -0
- package/assets/docs/guide/starterkits/content-moderation.md +863 -0
- package/assets/docs/guide/starterkits/creative-automation.md +28 -0
- package/assets/docs/guide/starterkits/custom-built-uis.md +26 -0
- package/assets/docs/guide/starterkits/customization.md +29 -0
- package/assets/docs/guide/starterkits/cutout-lines-editor.md +470 -0
- package/assets/docs/guide/starterkits/data-merge.md +850 -0
- package/assets/docs/guide/starterkits/design-editor.md +698 -0
- package/assets/docs/guide/starterkits/design-generation.md +719 -0
- package/assets/docs/guide/starterkits/design-validation.md +808 -0
- package/assets/docs/guide/starterkits/editor-ui-configurations.md +14 -0
- package/assets/docs/guide/starterkits/export-options.md +724 -0
- package/assets/docs/guide/starterkits/export-using-renderer.md +708 -0
- package/assets/docs/guide/starterkits/extensibility.md +28 -0
- package/assets/docs/guide/starterkits/force-crop-editor.md +675 -0
- package/assets/docs/guide/starterkits/form-based-template-adoption.md +522 -0
- package/assets/docs/guide/starterkits/getty-images-editor.md +700 -0
- package/assets/docs/guide/starterkits/html5-ads-exporter.md +719 -0
- package/assets/docs/guide/starterkits/indesign-template-import.md +580 -0
- package/assets/docs/guide/starterkits/layouts-editor.md +724 -0
- package/assets/docs/guide/starterkits/mobile-ui.md +185 -0
- package/assets/docs/guide/starterkits/mockup-editor.md +745 -0
- package/assets/docs/guide/starterkits/multi-image-generation.md +542 -0
- package/assets/docs/guide/starterkits/page-sizes-editor.md +657 -0
- package/assets/docs/guide/starterkits/pexels-image-editor.md +665 -0
- package/assets/docs/guide/starterkits/photo-editor.md +755 -0
- package/assets/docs/guide/starterkits/photo-ui.md +186 -0
- package/assets/docs/guide/starterkits/photobook-ui.md +188 -0
- package/assets/docs/guide/starterkits/placeholders.md +678 -0
- package/assets/docs/guide/starterkits/player.md +405 -0
- package/assets/docs/guide/starterkits/plugins.md +25 -0
- package/assets/docs/guide/starterkits/postcard-editor.md +202 -0
- package/assets/docs/guide/starterkits/pptx-template-import.md +581 -0
- package/assets/docs/guide/starterkits/print-ready-pdf-editor.md +746 -0
- package/assets/docs/guide/starterkits/product-editor.md +773 -0
- package/assets/docs/guide/starterkits/psd-template-import.md +580 -0
- package/assets/docs/guide/starterkits/qr-code-editor.md +470 -0
- package/assets/docs/guide/starterkits/single-page-editor.md +661 -0
- package/assets/docs/guide/starterkits/start-with-image.md +684 -0
- package/assets/docs/guide/starterkits/start-with-video.md +651 -0
- package/assets/docs/guide/starterkits/t-shirt-designer.md +742 -0
- package/assets/docs/guide/starterkits/templating.md +23 -0
- package/assets/docs/guide/starterkits/theming.md +662 -0
- package/assets/docs/guide/starterkits/translation-internationalization.md +662 -0
- package/assets/docs/guide/starterkits/unsplash-editor.md +839 -0
- package/assets/docs/guide/starterkits/vectorizer-editor.md +466 -0
- package/assets/docs/guide/starterkits/version-history.md +745 -0
- package/assets/docs/guide/starterkits/video-animations.md +853 -0
- package/assets/docs/guide/starterkits/video-captions.md +884 -0
- package/assets/docs/guide/starterkits/video-editing.md +25 -0
- package/assets/docs/guide/starterkits/video-editor.md +696 -0
- package/assets/docs/guide/starterkits/video-export-options.md +676 -0
- package/assets/docs/guide/starterkits/viewer.md +400 -0
- package/assets/docs/guide/starterkits.md +41 -0
- package/assets/docs/guide/stickers-and-shapes/combine.md +743 -0
- package/assets/docs/guide/stickers-and-shapes/create-cutout.md +425 -0
- package/assets/docs/guide/stickers-and-shapes/create-edit/create-shapes.md +794 -0
- package/assets/docs/guide/stickers-and-shapes/create-edit/create-stickers.md +290 -0
- package/assets/docs/guide/stickers-and-shapes/create-edit/edit-shapes.md +211 -0
- package/assets/docs/guide/stickers-and-shapes/create-edit/vector-edit.md +362 -0
- package/assets/docs/guide/stickers-and-shapes/insert-qr-code.md +208 -0
- package/assets/docs/guide/stickers.md +21 -0
- package/assets/docs/guide/text/add.md +641 -0
- package/assets/docs/guide/text/adjust-spacing.md +288 -0
- package/assets/docs/guide/text/auto-size.md +404 -0
- package/assets/docs/guide/text/custom-fonts.md +401 -0
- package/assets/docs/guide/text/decorations.md +330 -0
- package/assets/docs/guide/text/edit.md +458 -0
- package/assets/docs/guide/text/effects.md +244 -0
- package/assets/docs/guide/text/emojis.md +310 -0
- package/assets/docs/guide/text/enumerations.md +258 -0
- package/assets/docs/guide/text/language-support.md +604 -0
- package/assets/docs/guide/text/overview.md +14 -0
- package/assets/docs/guide/text/styling.md +390 -0
- package/assets/docs/guide/text/text-designs.md +834 -0
- package/assets/docs/guide/text.md +33 -0
- package/assets/docs/guide/to-v1-10.md +131 -0
- package/assets/docs/guide/to-v1-13.md +165 -0
- package/assets/docs/guide/to-v1-19.md +315 -0
- package/assets/docs/guide/to-v1-32.md +110 -0
- package/assets/docs/guide/to-v1-69.md +468 -0
- package/assets/docs/guide/to-v1-72.md +193 -0
- package/assets/docs/guide/upgrade.md +25 -0
- package/assets/docs/guide/use-templates/apply-template.md +279 -0
- package/assets/docs/guide/use-templates/generate.md +405 -0
- package/assets/docs/guide/use-templates/library.md +450 -0
- package/assets/docs/guide/use-templates/overview.md +20 -0
- package/assets/docs/guide/use-templates/programmatic.md +482 -0
- package/assets/docs/guide/use-templates/replace-content.md +399 -0
- package/assets/docs/guide/user-interface/ai-integration/audio-generation.md +428 -0
- package/assets/docs/guide/user-interface/ai-integration/auto-captions.md +337 -0
- package/assets/docs/guide/user-interface/ai-integration/custom-provider.md +853 -0
- package/assets/docs/guide/user-interface/ai-integration/gateway-provider.md +1045 -0
- package/assets/docs/guide/user-interface/ai-integration/image-generation.md +641 -0
- package/assets/docs/guide/user-interface/ai-integration/integrate.md +966 -0
- package/assets/docs/guide/user-interface/ai-integration/proxy-server.md +99 -0
- package/assets/docs/guide/user-interface/ai-integration/text-generation.md +498 -0
- package/assets/docs/guide/user-interface/ai-integration/video-generation.md +493 -0
- package/assets/docs/guide/user-interface/ai-integration.md +30 -0
- package/assets/docs/guide/user-interface/appearance/change-ui-font.md +316 -0
- package/assets/docs/guide/user-interface/appearance/custom-labels.md +509 -0
- package/assets/docs/guide/user-interface/appearance/icons.md +373 -0
- package/assets/docs/guide/user-interface/appearance/theming.md +665 -0
- package/assets/docs/guide/user-interface/appearance.md +23 -0
- package/assets/docs/guide/user-interface/build-your-own-ui.md +620 -0
- package/assets/docs/guide/user-interface/customization/canvas-menu.md +412 -0
- package/assets/docs/guide/user-interface/customization/canvas.md +281 -0
- package/assets/docs/guide/user-interface/customization/color-palette.md +413 -0
- package/assets/docs/guide/user-interface/customization/crop-presets.md +384 -0
- package/assets/docs/guide/user-interface/customization/disable-or-enable.md +676 -0
- package/assets/docs/guide/user-interface/customization/dock.md +399 -0
- package/assets/docs/guide/user-interface/customization/force-crop.md +289 -0
- package/assets/docs/guide/user-interface/customization/inspector-bar.md +371 -0
- package/assets/docs/guide/user-interface/customization/navigation-bar.md +516 -0
- package/assets/docs/guide/user-interface/customization/page-format.md +436 -0
- package/assets/docs/guide/user-interface/customization/panel.md +605 -0
- package/assets/docs/guide/user-interface/customization/quick-start/add-action-buttons.md +531 -0
- package/assets/docs/guide/user-interface/customization/quick-start/add-dock-buttons.md +358 -0
- package/assets/docs/guide/user-interface/customization/quick-start/create-custom-components.md +374 -0
- package/assets/docs/guide/user-interface/customization/quick-start/reorder-components.md +323 -0
- package/assets/docs/guide/user-interface/customization/quick-start/show-hide-components.md +294 -0
- package/assets/docs/guide/user-interface/customization/quick-start.md +12 -0
- package/assets/docs/guide/user-interface/customization/reference/component-order-api.md +519 -0
- package/assets/docs/guide/user-interface/customization/reference/component-reference.md +333 -0
- package/assets/docs/guide/user-interface/customization/reference.md +12 -0
- package/assets/docs/guide/user-interface/customization.md +39 -0
- package/assets/docs/guide/user-interface/localization.md +633 -0
- package/assets/docs/guide/user-interface/overview.md +167 -0
- package/assets/docs/guide/user-interface/ui-extensions/add-custom-feature.md +411 -0
- package/assets/docs/guide/user-interface/ui-extensions/asset-library.md +721 -0
- package/assets/docs/guide/user-interface/ui-extensions/create-custom-panel.md +331 -0
- package/assets/docs/guide/user-interface/ui-extensions/customize-behaviour.md +553 -0
- package/assets/docs/guide/user-interface/ui-extensions/notifications-and-dialogs.md +672 -0
- package/assets/docs/guide/user-interface/ui-extensions/quick-actions.md +415 -0
- package/assets/docs/guide/user-interface/ui-extensions/register-new-component.md +521 -0
- package/assets/docs/guide/user-interface/ui-extensions.md +26 -0
- package/assets/docs/guide/user-interface.md +25 -0
- package/assets/docs/guide/what-is-cesdk.md +319 -0
- package/assets/docs/handbook/SKILL.md +521 -0
- package/assets/prompts/evals-assetGenerate.md +12 -0
- package/assets/prompts/evals-brutalistCore.md +34 -0
- package/assets/prompts/evals-danskCatalogue.md +31 -0
- package/assets/prompts/evals-exportRoundTrip.md +12 -0
- package/assets/prompts/evals-inspectPriorCode.md +16 -0
- package/assets/prompts/evals-listProjectFiles.md +6 -0
- package/assets/prompts/evals-readAndExplainScript.md +6 -0
- package/assets/prompts/evals-resumeAcrossRestart.md +15 -0
- package/assets/prompts/evals-rewindRecovery.md +10 -0
- package/assets/prompts/evals-searchAcrossFiles.md +6 -0
- package/assets/prompts/evals-weddingCard.md +20 -0
- package/assets/prompts/explain.md +6 -0
- package/assets/prompts/review.md +6 -0
- package/dist/assets/inline.generated.d.ts +2 -0
- package/dist/assets/inline.generated.d.ts.map +1 -0
- package/dist/assets/inline.generated.js +413 -0
- package/dist/assets/inline.generated.js.map +1 -0
- package/dist/assets/load-browser.d.ts +8 -0
- package/dist/assets/load-browser.d.ts.map +1 -0
- package/dist/assets/load-browser.js +11 -0
- package/dist/assets/load-browser.js.map +1 -0
- package/dist/assets/load-node.d.ts +8 -0
- package/dist/assets/load-node.d.ts.map +1 -0
- package/dist/assets/load-node.js +11 -0
- package/dist/assets/load-node.js.map +1 -0
- package/dist/cli/http.d.ts +2 -0
- package/dist/cli/http.d.ts.map +1 -0
- package/dist/cli/http.js +231 -0
- package/dist/cli/http.js.map +1 -0
- package/dist/cli/redirect-console.d.ts +10 -0
- package/dist/cli/redirect-console.d.ts.map +1 -0
- package/dist/cli/redirect-console.js +18 -0
- package/dist/cli/redirect-console.js.map +1 -0
- package/dist/cli/resolve-license.d.ts +2 -0
- package/dist/cli/resolve-license.d.ts.map +1 -0
- package/dist/cli/resolve-license.js +13 -0
- package/dist/cli/resolve-license.js.map +1 -0
- package/dist/cli/stdio.d.ts +2 -0
- package/dist/cli/stdio.d.ts.map +1 -0
- package/dist/cli/stdio.js +124 -0
- package/dist/cli/stdio.js.map +1 -0
- package/dist/cli/trial-license.generated.d.ts +2 -0
- package/dist/cli/trial-license.generated.d.ts.map +1 -0
- package/dist/cli/trial-license.generated.js +4 -0
- package/dist/cli/trial-license.generated.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +64 -0
- package/dist/cli.js.map +1 -0
- package/dist/config.d.ts +61 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +102 -0
- package/dist/config.js.map +1 -0
- package/dist/cross-ref.d.ts +2 -0
- package/dist/cross-ref.d.ts.map +1 -0
- package/dist/cross-ref.js +31 -0
- package/dist/cross-ref.js.map +1 -0
- package/dist/dashboard/router.d.ts +3 -0
- package/dist/dashboard/router.d.ts.map +1 -0
- package/dist/dashboard/router.js +19 -0
- package/dist/dashboard/router.js.map +1 -0
- package/dist/dashboard/spa-assets.generated.d.ts +2 -0
- package/dist/dashboard/spa-assets.generated.d.ts.map +1 -0
- package/dist/dashboard/spa-assets.generated.js +220 -0
- package/dist/dashboard/spa-assets.generated.js.map +1 -0
- package/dist/engine/asset-sources.d.ts +17 -0
- package/dist/engine/asset-sources.d.ts.map +1 -0
- package/dist/engine/asset-sources.js +75 -0
- package/dist/engine/asset-sources.js.map +1 -0
- package/dist/engine/cesdk-adapter.d.ts +10 -0
- package/dist/engine/cesdk-adapter.d.ts.map +1 -0
- package/dist/engine/cesdk-adapter.js +19 -0
- package/dist/engine/cesdk-adapter.js.map +1 -0
- package/dist/engine/index.d.ts +3 -0
- package/dist/engine/index.d.ts.map +1 -0
- package/dist/engine/index.js +3 -0
- package/dist/engine/index.js.map +1 -0
- package/dist/engine/mutex.d.ts +5 -0
- package/dist/engine/mutex.d.ts.map +1 -0
- package/dist/engine/mutex.js +42 -0
- package/dist/engine/mutex.js.map +1 -0
- package/dist/engine/session.d.ts +50 -0
- package/dist/engine/session.d.ts.map +1 -0
- package/dist/engine/session.js +95 -0
- package/dist/engine/session.js.map +1 -0
- package/dist/engine/uri-resolver.d.ts +14 -0
- package/dist/engine/uri-resolver.d.ts.map +1 -0
- package/dist/engine/uri-resolver.js +12 -0
- package/dist/engine/uri-resolver.js.map +1 -0
- package/dist/frontmatter.d.ts +15 -0
- package/dist/frontmatter.d.ts.map +1 -0
- package/dist/frontmatter.js +46 -0
- package/dist/frontmatter.js.map +1 -0
- package/dist/gateway/hosted-stub.d.ts +6 -0
- package/dist/gateway/hosted-stub.d.ts.map +1 -0
- package/dist/gateway/hosted-stub.js +11 -0
- package/dist/gateway/hosted-stub.js.map +1 -0
- package/dist/gateway/index.d.ts +4 -0
- package/dist/gateway/index.d.ts.map +1 -0
- package/dist/gateway/index.js +4 -0
- package/dist/gateway/index.js.map +1 -0
- package/dist/gateway/local.d.ts +14 -0
- package/dist/gateway/local.d.ts.map +1 -0
- package/dist/gateway/local.js +41 -0
- package/dist/gateway/local.js.map +1 -0
- package/dist/gateway/types.d.ts +24 -0
- package/dist/gateway/types.d.ts.map +1 -0
- package/dist/gateway/types.js +7 -0
- package/dist/gateway/types.js.map +1 -0
- package/dist/http/server.d.ts +80 -0
- package/dist/http/server.d.ts.map +1 -0
- package/dist/http/server.js +183 -0
- package/dist/http/server.js.map +1 -0
- package/dist/http/session-manager.d.ts +42 -0
- package/dist/http/session-manager.d.ts.map +1 -0
- package/dist/http/session-manager.js +82 -0
- package/dist/http/session-manager.js.map +1 -0
- package/dist/http/workspace-auth.d.ts +9 -0
- package/dist/http/workspace-auth.d.ts.map +1 -0
- package/dist/http/workspace-auth.js +29 -0
- package/dist/http/workspace-auth.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/metrics/mount.d.ts +11 -0
- package/dist/metrics/mount.d.ts.map +1 -0
- package/dist/metrics/mount.js +13 -0
- package/dist/metrics/mount.js.map +1 -0
- package/dist/metrics/recorder.d.ts +55 -0
- package/dist/metrics/recorder.d.ts.map +1 -0
- package/dist/metrics/recorder.js +97 -0
- package/dist/metrics/recorder.js.map +1 -0
- package/dist/revisions/hash.d.ts +7 -0
- package/dist/revisions/hash.d.ts.map +1 -0
- package/dist/revisions/hash.js +24 -0
- package/dist/revisions/hash.js.map +1 -0
- package/dist/revisions/index.d.ts +4 -0
- package/dist/revisions/index.d.ts.map +1 -0
- package/dist/revisions/index.js +4 -0
- package/dist/revisions/index.js.map +1 -0
- package/dist/revisions/store.d.ts +69 -0
- package/dist/revisions/store.d.ts.map +1 -0
- package/dist/revisions/store.js +196 -0
- package/dist/revisions/store.js.map +1 -0
- package/dist/revisions/types.d.ts +39 -0
- package/dist/revisions/types.d.ts.map +1 -0
- package/dist/revisions/types.js +2 -0
- package/dist/revisions/types.js.map +1 -0
- package/dist/server.d.ts +51 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +175 -0
- package/dist/server.js.map +1 -0
- package/dist/skill-tools.d.ts +3 -0
- package/dist/skill-tools.d.ts.map +1 -0
- package/dist/skill-tools.js +105 -0
- package/dist/skill-tools.js.map +1 -0
- package/dist/test/test/cli/dispatcher.test.d.ts +2 -0
- package/dist/test/test/cli/dispatcher.test.d.ts.map +1 -0
- package/dist/test/test/cli/dispatcher.test.js +47 -0
- package/dist/test/test/cli/dispatcher.test.js.map +1 -0
- package/dist/test/test/cross-ref.test.d.ts +2 -0
- package/dist/test/test/cross-ref.test.d.ts.map +1 -0
- package/dist/test/test/cross-ref.test.js +39 -0
- package/dist/test/test/cross-ref.test.js.map +1 -0
- package/dist/test/test/engine/session.test.d.ts +2 -0
- package/dist/test/test/engine/session.test.d.ts.map +1 -0
- package/dist/test/test/engine/session.test.js +144 -0
- package/dist/test/test/engine/session.test.js.map +1 -0
- package/dist/test/test/engine/uri-resolver.test.d.ts +2 -0
- package/dist/test/test/engine/uri-resolver.test.d.ts.map +1 -0
- package/dist/test/test/engine/uri-resolver.test.js +38 -0
- package/dist/test/test/engine/uri-resolver.test.js.map +1 -0
- package/dist/test/test/frontmatter.test.d.ts +2 -0
- package/dist/test/test/frontmatter.test.d.ts.map +1 -0
- package/dist/test/test/frontmatter.test.js +55 -0
- package/dist/test/test/frontmatter.test.js.map +1 -0
- package/dist/test/test/gateway/hosted-stub.test.d.ts +2 -0
- package/dist/test/test/gateway/hosted-stub.test.d.ts.map +1 -0
- package/dist/test/test/gateway/hosted-stub.test.js +11 -0
- package/dist/test/test/gateway/hosted-stub.test.js.map +1 -0
- package/dist/test/test/gateway/local.test.d.ts +2 -0
- package/dist/test/test/gateway/local.test.d.ts.map +1 -0
- package/dist/test/test/gateway/local.test.js +29 -0
- package/dist/test/test/gateway/local.test.js.map +1 -0
- package/dist/test/test/handbook-contract.test.d.ts +2 -0
- package/dist/test/test/handbook-contract.test.d.ts.map +1 -0
- package/dist/test/test/handbook-contract.test.js +71 -0
- package/dist/test/test/handbook-contract.test.js.map +1 -0
- package/dist/test/test/http/server.test.d.ts +2 -0
- package/dist/test/test/http/server.test.d.ts.map +1 -0
- package/dist/test/test/http/server.test.js +245 -0
- package/dist/test/test/http/server.test.js.map +1 -0
- package/dist/test/test/http/session-manager.test.d.ts +2 -0
- package/dist/test/test/http/session-manager.test.d.ts.map +1 -0
- package/dist/test/test/http/session-manager.test.js +83 -0
- package/dist/test/test/http/session-manager.test.js.map +1 -0
- package/dist/test/test/revisions/hash.test.d.ts +2 -0
- package/dist/test/test/revisions/hash.test.d.ts.map +1 -0
- package/dist/test/test/revisions/hash.test.js +33 -0
- package/dist/test/test/revisions/hash.test.js.map +1 -0
- package/dist/test/test/revisions/store.test.d.ts +2 -0
- package/dist/test/test/revisions/store.test.d.ts.map +1 -0
- package/dist/test/test/revisions/store.test.js +245 -0
- package/dist/test/test/revisions/store.test.js.map +1 -0
- package/dist/test/test/server.test.d.ts +2 -0
- package/dist/test/test/server.test.d.ts.map +1 -0
- package/dist/test/test/server.test.js +157 -0
- package/dist/test/test/server.test.js.map +1 -0
- package/dist/test/test/skill-tools.test.d.ts +2 -0
- package/dist/test/test/skill-tools.test.d.ts.map +1 -0
- package/dist/test/test/skill-tools.test.js +84 -0
- package/dist/test/test/skill-tools.test.js.map +1 -0
- package/dist/test/test/smoke.test.d.ts +2 -0
- package/dist/test/test/smoke.test.d.ts.map +1 -0
- package/dist/test/test/smoke.test.js +8 -0
- package/dist/test/test/smoke.test.js.map +1 -0
- package/dist/test/test/tools/asset-generate.test.d.ts +2 -0
- package/dist/test/test/tools/asset-generate.test.d.ts.map +1 -0
- package/dist/test/test/tools/asset-generate.test.js +66 -0
- package/dist/test/test/tools/asset-generate.test.js.map +1 -0
- package/dist/test/test/tools/edit.test.d.ts +2 -0
- package/dist/test/test/tools/edit.test.d.ts.map +1 -0
- package/dist/test/test/tools/edit.test.js +205 -0
- package/dist/test/test/tools/edit.test.js.map +1 -0
- package/dist/test/test/tools/export.test.d.ts +2 -0
- package/dist/test/test/tools/export.test.d.ts.map +1 -0
- package/dist/test/test/tools/export.test.js +144 -0
- package/dist/test/test/tools/export.test.js.map +1 -0
- package/dist/test/test/tools/history.test.d.ts +2 -0
- package/dist/test/test/tools/history.test.d.ts.map +1 -0
- package/dist/test/test/tools/history.test.js +29 -0
- package/dist/test/test/tools/history.test.js.map +1 -0
- package/dist/test/test/tools/inspect.test.d.ts +2 -0
- package/dist/test/test/tools/inspect.test.d.ts.map +1 -0
- package/dist/test/test/tools/inspect.test.js +62 -0
- package/dist/test/test/tools/inspect.test.js.map +1 -0
- package/dist/test/test/tools/list.test.d.ts +2 -0
- package/dist/test/test/tools/list.test.d.ts.map +1 -0
- package/dist/test/test/tools/list.test.js +23 -0
- package/dist/test/test/tools/list.test.js.map +1 -0
- package/dist/test/test/tools/open-editor.test.d.ts +2 -0
- package/dist/test/test/tools/open-editor.test.d.ts.map +1 -0
- package/dist/test/test/tools/open-editor.test.js +53 -0
- package/dist/test/test/tools/open-editor.test.js.map +1 -0
- package/dist/test/test/tools/preview.test.d.ts +2 -0
- package/dist/test/test/tools/preview.test.d.ts.map +1 -0
- package/dist/test/test/tools/preview.test.js +73 -0
- package/dist/test/test/tools/preview.test.js.map +1 -0
- package/dist/test/test/tools/rename.test.d.ts +2 -0
- package/dist/test/test/tools/rename.test.d.ts.map +1 -0
- package/dist/test/test/tools/rename.test.js +17 -0
- package/dist/test/test/tools/rename.test.js.map +1 -0
- package/dist/test/test/viewer/broadcaster.test.d.ts +2 -0
- package/dist/test/test/viewer/broadcaster.test.d.ts.map +1 -0
- package/dist/test/test/viewer/broadcaster.test.js +53 -0
- package/dist/test/test/viewer/broadcaster.test.js.map +1 -0
- package/dist/test/test/viewer/resource-route.test.d.ts +2 -0
- package/dist/test/test/viewer/resource-route.test.d.ts.map +1 -0
- package/dist/test/test/viewer/resource-route.test.js +70 -0
- package/dist/test/test/viewer/resource-route.test.js.map +1 -0
- package/dist/test/test/viewer/router.test.d.ts +2 -0
- package/dist/test/test/viewer/router.test.d.ts.map +1 -0
- package/dist/test/test/viewer/router.test.js +171 -0
- package/dist/test/test/viewer/router.test.js.map +1 -0
- package/dist/test/test/viewer/url-builder.test.d.ts +2 -0
- package/dist/test/test/viewer/url-builder.test.d.ts.map +1 -0
- package/dist/test/test/viewer/url-builder.test.js +31 -0
- package/dist/test/test/viewer/url-builder.test.js.map +1 -0
- package/dist/test/test/workspace/hosted-stub.test.d.ts +2 -0
- package/dist/test/test/workspace/hosted-stub.test.d.ts.map +1 -0
- package/dist/test/test/workspace/hosted-stub.test.js +30 -0
- package/dist/test/test/workspace/hosted-stub.test.js.map +1 -0
- package/dist/test/test/workspace/in-memory.test.d.ts +2 -0
- package/dist/test/test/workspace/in-memory.test.d.ts.map +1 -0
- package/dist/test/test/workspace/in-memory.test.js +4 -0
- package/dist/test/test/workspace/in-memory.test.js.map +1 -0
- package/dist/test/test/workspace/node-fs.test.d.ts +2 -0
- package/dist/test/test/workspace/node-fs.test.d.ts.map +1 -0
- package/dist/test/test/workspace/node-fs.test.js +20 -0
- package/dist/test/test/workspace/node-fs.test.js.map +1 -0
- package/dist/test/test/workspace/shared-contract.d.ts +3 -0
- package/dist/test/test/workspace/shared-contract.d.ts.map +1 -0
- package/dist/test/test/workspace/shared-contract.js +92 -0
- package/dist/test/test/workspace/shared-contract.js.map +1 -0
- package/dist/test/tsconfig.test.tsbuildinfo +1 -0
- package/dist/test/vitest.config.d.ts +3 -0
- package/dist/test/vitest.config.d.ts.map +1 -0
- package/dist/test/vitest.config.js +8 -0
- package/dist/test/vitest.config.js.map +1 -0
- package/dist/tools/asset-generate.d.ts +12 -0
- package/dist/tools/asset-generate.d.ts.map +1 -0
- package/dist/tools/asset-generate.js +112 -0
- package/dist/tools/asset-generate.js.map +1 -0
- package/dist/tools/asset-search.d.ts +10 -0
- package/dist/tools/asset-search.d.ts.map +1 -0
- package/dist/tools/asset-search.js +120 -0
- package/dist/tools/asset-search.js.map +1 -0
- package/dist/tools/content-types.d.ts +11 -0
- package/dist/tools/content-types.d.ts.map +1 -0
- package/dist/tools/content-types.js +2 -0
- package/dist/tools/content-types.js.map +1 -0
- package/dist/tools/edit.d.ts +29 -0
- package/dist/tools/edit.d.ts.map +1 -0
- package/dist/tools/edit.js +165 -0
- package/dist/tools/edit.js.map +1 -0
- package/dist/tools/engine.d.ts +31 -0
- package/dist/tools/engine.d.ts.map +1 -0
- package/dist/tools/engine.js +59 -0
- package/dist/tools/engine.js.map +1 -0
- package/dist/tools/export.d.ts +19 -0
- package/dist/tools/export.d.ts.map +1 -0
- package/dist/tools/export.js +179 -0
- package/dist/tools/export.js.map +1 -0
- package/dist/tools/history.d.ts +7 -0
- package/dist/tools/history.d.ts.map +1 -0
- package/dist/tools/history.js +54 -0
- package/dist/tools/history.js.map +1 -0
- package/dist/tools/index.d.ts +35 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +72 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/inspect.d.ts +7 -0
- package/dist/tools/inspect.d.ts.map +1 -0
- package/dist/tools/inspect.js +80 -0
- package/dist/tools/inspect.js.map +1 -0
- package/dist/tools/list.d.ts +7 -0
- package/dist/tools/list.d.ts.map +1 -0
- package/dist/tools/list.js +18 -0
- package/dist/tools/list.js.map +1 -0
- package/dist/tools/metrics.d.ts +11 -0
- package/dist/tools/metrics.d.ts.map +1 -0
- package/dist/tools/metrics.js +28 -0
- package/dist/tools/metrics.js.map +1 -0
- package/dist/tools/open-editor.d.ts +10 -0
- package/dist/tools/open-editor.d.ts.map +1 -0
- package/dist/tools/open-editor.js +62 -0
- package/dist/tools/open-editor.js.map +1 -0
- package/dist/tools/preview.d.ts +12 -0
- package/dist/tools/preview.d.ts.map +1 -0
- package/dist/tools/preview.js +104 -0
- package/dist/tools/preview.js.map +1 -0
- package/dist/tools/rename.d.ts +7 -0
- package/dist/tools/rename.d.ts.map +1 -0
- package/dist/tools/rename.js +39 -0
- package/dist/tools/rename.js.map +1 -0
- package/dist/tools/result.d.ts +12 -0
- package/dist/tools/result.d.ts.map +1 -0
- package/dist/tools/result.js +55 -0
- package/dist/tools/result.js.map +1 -0
- package/dist/tools/save.d.ts +19 -0
- package/dist/tools/save.d.ts.map +1 -0
- package/dist/tools/save.js +117 -0
- package/dist/tools/save.js.map +1 -0
- package/dist/viewer/broadcaster.d.ts +13 -0
- package/dist/viewer/broadcaster.d.ts.map +1 -0
- package/dist/viewer/broadcaster.js +44 -0
- package/dist/viewer/broadcaster.js.map +1 -0
- package/dist/viewer/index.d.ts +7 -0
- package/dist/viewer/index.d.ts.map +1 -0
- package/dist/viewer/index.js +7 -0
- package/dist/viewer/index.js.map +1 -0
- package/dist/viewer/listener.d.ts +16 -0
- package/dist/viewer/listener.d.ts.map +1 -0
- package/dist/viewer/listener.js +30 -0
- package/dist/viewer/listener.js.map +1 -0
- package/dist/viewer/presigned-r2-url-builder.d.ts +30 -0
- package/dist/viewer/presigned-r2-url-builder.d.ts.map +1 -0
- package/dist/viewer/presigned-r2-url-builder.js +40 -0
- package/dist/viewer/presigned-r2-url-builder.js.map +1 -0
- package/dist/viewer/resource-route.d.ts +9 -0
- package/dist/viewer/resource-route.d.ts.map +1 -0
- package/dist/viewer/resource-route.js +59 -0
- package/dist/viewer/resource-route.js.map +1 -0
- package/dist/viewer/router.d.ts +20 -0
- package/dist/viewer/router.d.ts.map +1 -0
- package/dist/viewer/router.js +142 -0
- package/dist/viewer/router.js.map +1 -0
- package/dist/viewer/session-mount.d.ts +10 -0
- package/dist/viewer/session-mount.d.ts.map +1 -0
- package/dist/viewer/session-mount.js +24 -0
- package/dist/viewer/session-mount.js.map +1 -0
- package/dist/viewer/spa-assets.generated.d.ts +2 -0
- package/dist/viewer/spa-assets.generated.d.ts.map +1 -0
- package/dist/viewer/spa-assets.generated.js +989 -0
- package/dist/viewer/spa-assets.generated.js.map +1 -0
- package/dist/viewer/url-builder.d.ts +48 -0
- package/dist/viewer/url-builder.d.ts.map +1 -0
- package/dist/viewer/url-builder.js +38 -0
- package/dist/viewer/url-builder.js.map +1 -0
- package/dist/workspace/hosted-stub.d.ts +28 -0
- package/dist/workspace/hosted-stub.d.ts.map +1 -0
- package/dist/workspace/hosted-stub.js +44 -0
- package/dist/workspace/hosted-stub.js.map +1 -0
- package/dist/workspace/in-memory.d.ts +23 -0
- package/dist/workspace/in-memory.d.ts.map +1 -0
- package/dist/workspace/in-memory.js +161 -0
- package/dist/workspace/in-memory.js.map +1 -0
- package/dist/workspace/index.d.ts +6 -0
- package/dist/workspace/index.d.ts.map +1 -0
- package/dist/workspace/index.js +6 -0
- package/dist/workspace/index.js.map +1 -0
- package/dist/workspace/node-fs.d.ts +23 -0
- package/dist/workspace/node-fs.d.ts.map +1 -0
- package/dist/workspace/node-fs.js +90 -0
- package/dist/workspace/node-fs.js.map +1 -0
- package/dist/workspace/s3.d.ts +32 -0
- package/dist/workspace/s3.d.ts.map +1 -0
- package/dist/workspace/s3.js +191 -0
- package/dist/workspace/s3.js.map +1 -0
- package/dist/workspace/scoped.d.ts +32 -0
- package/dist/workspace/scoped.d.ts.map +1 -0
- package/dist/workspace/scoped.js +76 -0
- package/dist/workspace/scoped.js.map +1 -0
- package/dist/workspace/types.d.ts +75 -0
- package/dist/workspace/types.d.ts.map +1 -0
- package/dist/workspace/types.js +18 -0
- package/dist/workspace/types.js.map +1 -0
- package/package.json +80 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
> This is one page of the CE.SDK Vanilla JS/TS documentation. For a complete overview, see the [Vanilla JS/TS Documentation Index](https://img.ly/docs/cesdk/js.md). For all docs in one file, see [llms-full.txt](./llms-full.txt.md).
|
|
2
|
+
|
|
3
|
+
**Navigation:** [Guides](./guides.md) > [Create and Edit Text](./text.md)
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Related Pages
|
|
10
|
+
|
|
11
|
+
- [Overview](./text/overview.md) - Add, style, and customize text layers in your design using CE.SDK’s flexible text editing tools.
|
|
12
|
+
- [Add Text](./text/add.md) - Insert text blocks into your CE.SDK scene.
|
|
13
|
+
- [Edit Text](./text/edit.md) - Edit text content directly on the canvas or through the properties panel.
|
|
14
|
+
- [Text Styling](./text/styling.md) - Apply fonts, colors, alignment, and other styling options to customize text appearance.
|
|
15
|
+
- [Text Decorations](./text/decorations.md) - Add underline, strikethrough, and overline decorations to text with customizable styles, colors, and thickness.
|
|
16
|
+
- [Text Designs](./text/text-designs.md) - Create and customize text component libraries using predefined text designs that appear in your asset library.
|
|
17
|
+
- [Text Enumerations](./text/enumerations.md) - Add bullet lists and numbered lists to text blocks in CE.SDK using per-paragraph list styles and nesting levels.
|
|
18
|
+
- [Auto-Size](./text/auto-size.md) - Configure text blocks to automatically adapt their dimensions or font size for dynamic content.
|
|
19
|
+
- [Text Effects](./text/effects.md) - Apply visual effects to text blocks including drop shadows and stroke outlines.
|
|
20
|
+
- [Emojis](./text/emojis.md) - Insert and style emojis alongside text for expressive, modern typographic designs.
|
|
21
|
+
- [Adjust Text Spacing](./text/adjust-spacing.md) - Control letter spacing, line height, and paragraph spacing in CE.SDK text blocks for precise typographic control.
|
|
22
|
+
- [Customize Fonts](./text/custom-fonts.md) - Load and manage custom fonts to match brand guidelines or user preferences.
|
|
23
|
+
- [Text and Language Support](./text/language-support.md) - Create designs that work seamlessly across different languages and writing systems with RTL text, complex scripts, and multilingual font support.
|
|
24
|
+
- [Understanding Text Rendering](./guides/text/rendering-internals.md) - Learn how CE.SDK renders text internally by visualizing font metrics, baselines, ascenders, descenders, and line height.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## More Resources
|
|
29
|
+
|
|
30
|
+
- **[Vanilla JS/TS Documentation Index](https://img.ly/docs/cesdk/js.md)** - Browse all Vanilla JS/TS documentation
|
|
31
|
+
- **[Complete Documentation](./llms-full.txt.md)** - Full documentation in one file (for LLMs)
|
|
32
|
+
- **[Web Documentation](./js.md)** - Interactive documentation with examples
|
|
33
|
+
- **[Support](mailto:support@img.ly)** - Contact IMG.LY support
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
> This is one page of the CE.SDK Vanilla JS/TS documentation. For a complete overview, see the [Vanilla JS/TS Documentation Index](https://img.ly/docs/cesdk/js.md). For all docs in one file, see [llms-full.txt](./llms-full.txt.md).
|
|
2
|
+
|
|
3
|
+
**Navigation:** [Upgrading](./upgrade.md) > [To v1.10](./to-v1-10.md)
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Version v1.10 introduced major changes to how and where engine and the UI store assets.
|
|
8
|
+
This guide helps you navigate those changes and explains what you need to do to bring your integration up to speed.
|
|
9
|
+
|
|
10
|
+
## 1. Scene Uploads are no longer serialized
|
|
11
|
+
|
|
12
|
+
Image uploads are no longer stored in the scene and will not reappear upon scene load. To offer specific assets in your editor, configure and [add an asset source](./serve-assets.md) containing the desired assets.
|
|
13
|
+
|
|
14
|
+
## 2. Deprecating Extensions
|
|
15
|
+
|
|
16
|
+
Starting with `v1.10` we fully embrace [Asset Sources](./import-media/from-remote-source/unsplash.md) as our standard interface for asset management.
|
|
17
|
+
We're deprecating extension packs, previously stored in `/assets/extensions` and indexed via `manifest.json` files.
|
|
18
|
+
|
|
19
|
+
**Fonts are not affected by this deprecation yet, but will receive the same treatment in an upcoming version.**
|
|
20
|
+
|
|
21
|
+
We'll deprecate the `config.extensions` field for `CreativeEditorSDK`.
|
|
22
|
+
As part of this deprecation, we'll **no longer ship** the following packs in the `/assets/extensions` directory in our `npm` packages:
|
|
23
|
+
|
|
24
|
+
- `ly.img.cesdk.images.samples`
|
|
25
|
+
- `ly.img.cesdk.shapes.default`
|
|
26
|
+
- `ly.img.cesdk.stickers.doodle`
|
|
27
|
+
- `ly.img.cesdk.stickers.emoji`
|
|
28
|
+
- `ly.img.cesdk.stickers.emoticons`
|
|
29
|
+
- `ly.img.cesdk.stickers.hand`
|
|
30
|
+
- `ly.img.cesdk.vectorpaths`
|
|
31
|
+
- `ly.img.cesdk.vectorpaths.abstract`
|
|
32
|
+
|
|
33
|
+
To keep offering the contained assets in your deployment, use our new [convenience functions](#making-use-of-default-and-demo-asset-sources) to instantiate asset sources holding these assets.
|
|
34
|
+
If you have existing scenes where an asset from an extension pack might be included, you must make sure you're still serving the corresponding files from your baseURL, so that `<baseURL>/extensions/…` paths still resolve properly.
|
|
35
|
+
You can acquire a copy of the extension packs shipped in `v1.9.2` [from our CDN](https://cdn.img.ly/packages/imgly/cesdk-engine/1.9.2/assets/extensions.zip).
|
|
36
|
+
Otherwise your scenes will **render missing asset alerts**.
|
|
37
|
+
|
|
38
|
+
### 2.1 Making use of Default and Demo Asset Sources
|
|
39
|
+
|
|
40
|
+
We still want to offer a package, that has all batteries included and quickly gets you up to speed.
|
|
41
|
+
To do so, we introduced two new convenience functions, that can be used to add a set of predefined asset sources to your integration:
|
|
42
|
+
|
|
43
|
+
#### `addDefaultAssetSources`
|
|
44
|
+
|
|
45
|
+
Adds a set of asset sources containing our default assets.
|
|
46
|
+
|
|
47
|
+
These assets may be used in production and [served from your own servers](./serve-assets.md).
|
|
48
|
+
The assets are parsed from the IMG.LY CDN at `{{base_url}}/<id>/content.json`, where `base_url` defaults to `https://cdn.img.ly/assets/v1`.
|
|
49
|
+
Each source is created via `addLocalSource` and populated with the parsed assets.
|
|
50
|
+
You can specify your own `base_url` or exclude certain source IDs.
|
|
51
|
+
|
|
52
|
+
The following sources are added:
|
|
53
|
+
|
|
54
|
+
| ID | Description |
|
|
55
|
+
| ------------------------- | ------------------------------- |
|
|
56
|
+
| `'ly.img.sticker'` | Various stickers |
|
|
57
|
+
| `'ly.img.vectorpath'` | Shapes and arrows |
|
|
58
|
+
| `'ly.img.filter.lut'` | LUT effects of various kinds. |
|
|
59
|
+
| `'ly.img.filter.duotone'` | Color effects of various kinds. |
|
|
60
|
+
|
|
61
|
+
#### `addDemoAssetSources`
|
|
62
|
+
|
|
63
|
+
Registers a set of demo asset sources containing our example assets.
|
|
64
|
+
These are not to meant to be used in your production code.
|
|
65
|
+
|
|
66
|
+
The assets are parsed from the IMG.LY CDN at `https://cdn.img.ly/assets/demo/v1`.
|
|
67
|
+
The `sceneMode` and `withUploadAssetSources` parameters control whether audio/video and upload sources are added.
|
|
68
|
+
|
|
69
|
+
The following sources are added:
|
|
70
|
+
|
|
71
|
+
| ID | Description |
|
|
72
|
+
| ----------------------- | ---------------------------------- |
|
|
73
|
+
| `'ly.img.image'` | Sample images |
|
|
74
|
+
| `'ly.img.image.upload'` | Demo source to upload image assets |
|
|
75
|
+
| `'ly.img.audio'` | Sample audios |
|
|
76
|
+
| `'ly.img.audio.upload'` | Demo source to upload audio assets |
|
|
77
|
+
| `'ly.img.video'` | Sample audios |
|
|
78
|
+
| `'ly.img.video.upload'` | Demo source to upload video assets |
|
|
79
|
+
|
|
80
|
+
#### Modifying Default & Demo Sources
|
|
81
|
+
|
|
82
|
+
After registration you can freely modify the contained assets using the Asset APIs.
|
|
83
|
+
You can add or remove entire asset sources or individual assets.
|
|
84
|
+
|
|
85
|
+
#### Upload Asset Sources
|
|
86
|
+
|
|
87
|
+
The upload asset sources and library entries for video and audio were added to the default configuration from `addDefaultAssetSources`. If you have added these sources manually (like mentioned in our video docs) you can remove them now.
|
|
88
|
+
|
|
89
|
+
## 3. AssetAPI Changes
|
|
90
|
+
|
|
91
|
+
To further streamline interaction, the following breaking changes were made to the AssetAPI:
|
|
92
|
+
|
|
93
|
+
- The `applyAsset` callbacks and `defaultApplyAsset` API now return an optional design block id in their callback if they created a new block.
|
|
94
|
+
- `thumbUri` and `size` properties in `AssetDefinition` and `AssetResult` are now part of the `meta` property dictionary.
|
|
95
|
+
- Values of the `blockType` asset meta property must now be design block type ids (e.g. `//ly.img.ubq/image`)
|
|
96
|
+
|
|
97
|
+
## 4. A New Way to Add Images
|
|
98
|
+
|
|
99
|
+
Instead of specifying additional images for the `CreativeEditorSDK` in `config.presets.images`, you should make use of `asset.addAsset` and add your images into the `ly.img.image` asset source.
|
|
100
|
+
|
|
101
|
+
## 5. General API Changes
|
|
102
|
+
|
|
103
|
+
The `blockType` `meta` property for assets changed from `ly.img.<type>` to fully qualified block types: E.g. `'ly.img.image'` now needs to be `'//ly.img.ubq/image'`.
|
|
104
|
+
|
|
105
|
+
As we're starting to apply the 'fill' concept to more parts of the interface, we deprecated various fill color related APIs:
|
|
106
|
+
|
|
107
|
+
- Deprecated `hasFillColor`, use `hasFill` and query `block.getEnum(id, 'fill/type')` for `Solid` type instead.
|
|
108
|
+
- Deprecated `get/setFillColorRGBA`, use `setFillSolidColor`instead..
|
|
109
|
+
- Deprecated `isFillColorEnabled`, use `isFillEnabled` instead.
|
|
110
|
+
- Deprecated `setFillType` and `setFillGradientType`, use `createFill`, e.g., with type 'color' and then apply the fill block with `setFill` to the block instead. If the block has a fill, it should be removed with `getFill` and `destroy`.
|
|
111
|
+
- Deprecated `getFillType` and `getFillGradientType`, query `block.getEnum(id, 'fill/type')` and `block.getEnum(id, 'fill/gradient/type')` instead instead
|
|
112
|
+
- Deprecated `add/removeFillGradientColorStop` and `get/setFillGradientColorStops`.
|
|
113
|
+
- Deprecated `get/setFillGradientControlPointX/Y`, use `block.getFloat(fill, keypath)` and `block.setFloat(fill, keypath, value)` with key paths 'fill/gradient/linear/startPointX/Y', 'fill/gradient/radial/centerPointX/Y', and 'fill/gradient/conical/centerPointX/Y' instead.
|
|
114
|
+
- Deprecated `get/setFillGradientRadius`, use `block.getFloat(fill, 'fill/gradient/radial/radius')` and `block.setFloat(fill, 'fill/gradient/radial/radius', value)` instead."
|
|
115
|
+
|
|
116
|
+
`camera/clearColor` property was replaced it with a global `clearColor` setting to allow controlling the clear color before loading a scene.
|
|
117
|
+
|
|
118
|
+
Properties affecting playback that existed on both `Audio` and `VideoFill` where moved to a common `playback/` namespace:
|
|
119
|
+
|
|
120
|
+
- `'fill/video/looping'` and `'audio/looping'` are now `'playback/looping'`
|
|
121
|
+
- `'fill/video/volume'` and `'audio/volume'` are now `'playback/volume'`
|
|
122
|
+
- `'fill/video/muted'` and `'audio/muted'` are now `'playback/muted'`
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## More Resources
|
|
127
|
+
|
|
128
|
+
- **[Vanilla JS/TS Documentation Index](https://img.ly/docs/cesdk/js.md)** - Browse all Vanilla JS/TS documentation
|
|
129
|
+
- **[Complete Documentation](./llms-full.txt.md)** - Full documentation in one file (for LLMs)
|
|
130
|
+
- **[Web Documentation](./js.md)** - Interactive documentation with examples
|
|
131
|
+
- **[Support](mailto:support@img.ly)** - Contact IMG.LY support
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
> This is one page of the CE.SDK Vanilla JS/TS documentation. For a complete overview, see the [Vanilla JS/TS Documentation Index](https://img.ly/docs/cesdk/js.md). For all docs in one file, see [llms-full.txt](./llms-full.txt.md).
|
|
2
|
+
|
|
3
|
+
**Navigation:** [Upgrading](./upgrade.md) > [To v1.13](./to-v1-13.md)
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
In version v1.13, the way the CreativeEngine and
|
|
8
|
+
CreativeEditor SDK are configured has changed. Several configuration options
|
|
9
|
+
that were previously passed to `CreativeEngine.init()` or `CreativeEditor
|
|
10
|
+
SDK.init()` have been removed or replaced. This document will explain the
|
|
11
|
+
changes and describe the steps you can take to adapt them to your setup.
|
|
12
|
+
|
|
13
|
+
#### CreativeEditorSDK initialization
|
|
14
|
+
|
|
15
|
+
We are also introducing a new way of instantiating the CreativeEditorSDK, that
|
|
16
|
+
provides more precise control over the initialization. Using
|
|
17
|
+
`CreativeEditorSDK.create()`, you have the chance to configure the SDK before
|
|
18
|
+
loading or creating a scene. This was not possible before. When using
|
|
19
|
+
`CreativeEditorSDK.init()`, the SDK would create the initial scene before giving
|
|
20
|
+
you the option to perform additional configuration via the API.
|
|
21
|
+
|
|
22
|
+
The `create()` method will not create an initial scene for you. You need to do
|
|
23
|
+
that yourself, using either the Scene API at `cesdk.editor.scene`, or one of the
|
|
24
|
+
methods on the CreativeEditorSDK instance itself (`createDesignScene`,
|
|
25
|
+
`createVideoScene`, `loadFromUrl`, `loadFromString`).
|
|
26
|
+
|
|
27
|
+
### Rationale
|
|
28
|
+
|
|
29
|
+
Over time the number options you could pass into the call to
|
|
30
|
+
`CreativeEngine.init({...config})` has grown quite a bit. Initially this was the
|
|
31
|
+
only place where you could configure the behavior and settings of the
|
|
32
|
+
CreativeEngine, but over the past year we introduced several new APIs. One of those APIs
|
|
33
|
+
is the EditorAPI, which lets you
|
|
34
|
+
|
|
35
|
+
[adjust](./settings.md) many
|
|
36
|
+
[settings](./settings.md) at runtime, not just at the launch of the app.
|
|
37
|
+
|
|
38
|
+
To improve consistency of our APIs, we decided to scale back the options
|
|
39
|
+
available in the configuration object in favor of changing settings via the
|
|
40
|
+
EditorAPI. The only options that remain are those that are strictly necessary
|
|
41
|
+
for the initialization of the CreativeEngine, such as the `baseUrl` and
|
|
42
|
+
`license`.
|
|
43
|
+
|
|
44
|
+
These changes were performed with the Creative Engine in mind, but since the
|
|
45
|
+
CreativeEditor SDK shares a lot of the same code, the changes described in this
|
|
46
|
+
document also apply to the configuration for the CE.SDK.
|
|
47
|
+
|
|
48
|
+
### Changed configuration options
|
|
49
|
+
|
|
50
|
+
The following is a list of all configuration options that have been changed or
|
|
51
|
+
removed, along with instructions on how to migrate the use of these options in
|
|
52
|
+
your codebase:
|
|
53
|
+
|
|
54
|
+
- `scene` options (`dpi`, `pixelScaleFactor`) have been removed.
|
|
55
|
+
`scene/dpi` and `scene/pixelScaleFactor` can now be found as [properties on the scene in the BlockAPI](./concepts/blocks.md).
|
|
56
|
+
- `page` options have been removed.
|
|
57
|
+
- `page.title.show` has been replaced with `cesdk.engine.editor.setSettingBool('page/title/show', enabled)`
|
|
58
|
+
- `page.title.fontFileUri` has been replaced with `cesdk.engine.editor.setSettingString('page/title/fontFileUri', uri)`
|
|
59
|
+
- `page.dimOutOfPageAreas` has been replaced with `cesdk.engine.editor.setSettingBool('page/dimOutOfPageAreas', dimEnabled)`
|
|
60
|
+
- `assetSources` have been removed. To add asset sources, use the AssetAPI at `cesdk.engine.asset`.
|
|
61
|
+
- `preset.colors` has been removed as it was never used, previously.
|
|
62
|
+
- `presets.colorPalettes` has been removed from CreativeEngine as it was not used. It has been moved to `ui.colorPalette` in the CESDK.
|
|
63
|
+
- `presets.images` has been removed. To add assets and asset sources, use the AssetAPI at `cesdk.engine.asset`.
|
|
64
|
+
- `presets.pageFormats` has been removed from the CreativeEngine as it was not used. Is has been moved to `ui.pageFormats` in the CESDK.
|
|
65
|
+
Previously it was possible to mark a page format as default by setting `meta: {default: true}` in it.
|
|
66
|
+
In `ui.pageFormats`, this has been simplified, to just `default: true`.
|
|
67
|
+
- `variables` has been removed. Use the [VariableAPI](./create-templates/add-dynamic-content/text-variables.md) instead.
|
|
68
|
+
- `callbacks.log` has been moved to `logger`. Previously the logger callback would take
|
|
69
|
+
a `Loglevel` enum as a second parameter. This enum has been removed. Instead you can
|
|
70
|
+
define the loglevel with plain strings `'Warning' | 'Error' | 'Info' `
|
|
71
|
+
|
|
72
|
+
### Change initialization code
|
|
73
|
+
|
|
74
|
+
To ensure your users perceive a consistent UI experience, settings that have been moved
|
|
75
|
+
to api calls should be made immediately after initializing the CreativeEngine.
|
|
76
|
+
For the Creative Editor SDK, use the `create()` method, instead of `init()`
|
|
77
|
+
|
|
78
|
+
#### CreativeEngine
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
const engine = await CreativeEngine.init(config);
|
|
82
|
+
// 1. Configure Engine
|
|
83
|
+
engine.editor.setSettingEnum('doubleClickSelectionMode', 'Direct');
|
|
84
|
+
// ... other settings
|
|
85
|
+
|
|
86
|
+
// 2. Create/load scene
|
|
87
|
+
const sceneId = await engine.scene.create();
|
|
88
|
+
|
|
89
|
+
// 3. Append Engine canvas element to the DOM
|
|
90
|
+
document.getElementById('my-engine-container').append(engine.element);
|
|
91
|
+
|
|
92
|
+
// ... your application code
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
#### CreativeEngine SDK
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
const cesdk = await CreativeEditorSDK.create('my-engine-container', config);
|
|
99
|
+
// 1. Configure SDK
|
|
100
|
+
cesdk.engine.asset.addSource(myAssetSource);
|
|
101
|
+
// ... other settings
|
|
102
|
+
|
|
103
|
+
// 2. Create/load scene
|
|
104
|
+
const sceneId = await cesdk.createDesignScene(myPageFormats[pageFormatId]);
|
|
105
|
+
|
|
106
|
+
// ... your application code
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Fallback and warnings
|
|
110
|
+
|
|
111
|
+
The CreativeEngine and CreativeEditor SDK still interpret the config object with
|
|
112
|
+
its previous settings.
|
|
113
|
+
If removed configuration options are detected during intialization, a warning is
|
|
114
|
+
printed to the console, with individual instructions on how to migrate them.
|
|
115
|
+
It is recommended to adjust your configuration as described above for the best
|
|
116
|
+
compatibility with future developments and to get rid of these warnings.
|
|
117
|
+
|
|
118
|
+
The fallback mechanism is not enabled for the new `CreativeEditorSDK.create()`
|
|
119
|
+
method! Passing removed configuration options to `create()` will cause that
|
|
120
|
+
option to be ignored and an error will be printed to the console.
|
|
121
|
+
|
|
122
|
+
### CreativeEngine Typescript definitions
|
|
123
|
+
|
|
124
|
+
The more complex parts of our configuration (such as the page format definitions)
|
|
125
|
+
were previously exporting type definitions under the `ConfigTypes` namespace
|
|
126
|
+
in the CreativeEngine package. This namespace and all the types in it have been removed or moved elsewhere.
|
|
127
|
+
|
|
128
|
+
For now we still export `ConfigTypes`, but have marked it and its members as `@deprecated`.
|
|
129
|
+
Most of them are not used at all anymore, the rest have been moved elsewhere:
|
|
130
|
+
|
|
131
|
+
- `ConfigTypes.Color` can now be imported directly as `PaletteColor`
|
|
132
|
+
- `ConfigTypes.TypefaceDefinition` can be imported directly, as `TypefaceDefinition`.
|
|
133
|
+
- `ConfigTypes.PageFormatDefinition` can be imported directly as `PageFormatDefinition` (CE.SDK only).
|
|
134
|
+
- `ConfigTypes.Logger` can be imported directly as `Logger`
|
|
135
|
+
|
|
136
|
+
The `LogLevel` enum that was previously used by `Logger` has been replaced with
|
|
137
|
+
a string union (`'Warning' | 'Error' | 'Info'`).
|
|
138
|
+
|
|
139
|
+
### CreativeEditorSDK Typescript definitions
|
|
140
|
+
|
|
141
|
+
The CreativeEditor SDK package still _does_ export a `ConfigTypes` namespace.
|
|
142
|
+
|
|
143
|
+
For use with the new `CreativeEditorSDK.create()`, we are offering a new type
|
|
144
|
+
`CreateConfiguration`, which is lacking all of the removed keys instead of
|
|
145
|
+
marking them as deprecated.
|
|
146
|
+
|
|
147
|
+
### Demo asset sources
|
|
148
|
+
|
|
149
|
+
When adding demo asset sources using `cesdk.addDemoAssetSources()`, or
|
|
150
|
+
`engine.addDemoAssetSources()`, make sure to specify the correct scene mode. The
|
|
151
|
+
installed demo asset sources vary between Design and Video modes.
|
|
152
|
+
|
|
153
|
+
If you don't specify a scene mode, `addDemoAssetSources()` will try to add the
|
|
154
|
+
correct sources based on the current scene, and default to `'Design'`. If you
|
|
155
|
+
call `addDemoAssetSources()` _without_ a scene mode, and _before_ loading or
|
|
156
|
+
creating a video scene, the audio and video asset sources will not be added.
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## More Resources
|
|
161
|
+
|
|
162
|
+
- **[Vanilla JS/TS Documentation Index](https://img.ly/docs/cesdk/js.md)** - Browse all Vanilla JS/TS documentation
|
|
163
|
+
- **[Complete Documentation](./llms-full.txt.md)** - Full documentation in one file (for LLMs)
|
|
164
|
+
- **[Web Documentation](./js.md)** - Interactive documentation with examples
|
|
165
|
+
- **[Support](mailto:support@img.ly)** - Contact IMG.LY support
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
> This is one page of the CE.SDK Vanilla JS/TS documentation. For a complete overview, see the [Vanilla JS/TS Documentation Index](https://img.ly/docs/cesdk/js.md). For all docs in one file, see [llms-full.txt](./llms-full.txt.md).
|
|
2
|
+
|
|
3
|
+
**Navigation:** [Upgrading](./upgrade.md) > [To v1.19](./to-v1-19.md)
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Version v1.19 of CreativeEngineSDK and CreativeEditorSDK introduces structural changes to many of the current design blocks, making them more composable and more powerful. Along with this update, there are mandatory license changes that require attention. This comes with a number of breaking changes. This document will explain the changes and describe the steps you need to take to adapt them to your setup.
|
|
8
|
+
|
|
9
|
+
## **License Changes**
|
|
10
|
+
|
|
11
|
+
The `license` parameter is now required for CreativeEngineSDK and CreativeEditorSDK. This means that you will need to update your license parameter in the `CreativeEngine.init` and `CreativeEditorSDK.create` configuration object properties. There is also a new `userId`, an optional unique ID tied to your application's user. This helps us accurately calculate monthly active users (MAU). Especially useful when one person uses the app on multiple devices with a sign-in feature, ensuring they're counted once. Providing this aids in better data accuracy.
|
|
12
|
+
|
|
13
|
+
## **Graphic Design Block**
|
|
14
|
+
|
|
15
|
+
A new generic `Graphic` design block with the type id `//ly.img.ubq/graphic` has been introduced, which forms the basis of the new unified block structure.
|
|
16
|
+
|
|
17
|
+
## **Shapes**
|
|
18
|
+
|
|
19
|
+
Similar to how the fill of a block is a separate object which can be attached to and replaced on a design block, we have now introduced a similar concept for the shape of a block.
|
|
20
|
+
|
|
21
|
+
You use the new `createShape`, `getShape` and `setShape` APIs in order to define the shape of a design block. Only the new `//ly.img.ubq/graphic` block allows for its shape to be changed with these APIs.
|
|
22
|
+
|
|
23
|
+
The new available shape types are:
|
|
24
|
+
|
|
25
|
+
- `//ly.img.ubq/shape/rect`
|
|
26
|
+
- `//ly.img.ubq/shape/line`
|
|
27
|
+
- `//ly.img.ubq/shape/ellipse`
|
|
28
|
+
- `//ly.img.ubq/shape/polygon`
|
|
29
|
+
- `//ly.img.ubq/shape/star`
|
|
30
|
+
- `//ly.img.ubq/shape/vector_path`
|
|
31
|
+
|
|
32
|
+
The following block types are now removed in favor of using a `Graphic` block with one of the above mentioned shape instances:
|
|
33
|
+
|
|
34
|
+
- `//ly.img.ubq/shapes/rect`
|
|
35
|
+
- `//ly.img.ubq/shapes/line`
|
|
36
|
+
- `//ly.img.ubq/shapes/ellipse`
|
|
37
|
+
- `//ly.img.ubq/shapes/polygon`
|
|
38
|
+
- `//ly.img.ubq/shapes/star`
|
|
39
|
+
- `//ly.img.ubq/vector_path`
|
|
40
|
+
|
|
41
|
+
(The removed type ids use the plural “shapes” and the new shape types use the singular “shape”)
|
|
42
|
+
|
|
43
|
+
This structural change means that the shape-specific properties (e.g. the number of sides of a polygon) are not available on the design block any more but on the shape instances instead. You will have to add calls to `getShape` to get the instance id of the shape instance and then pass that to the property getter and setter APIs.
|
|
44
|
+
|
|
45
|
+
Also remember to change property key strings in the getter and setter calls from the plural `shapes/…` to the singular `shape/…` to match the new type identifiers.
|
|
46
|
+
|
|
47
|
+
## **Image and Sticker**
|
|
48
|
+
|
|
49
|
+
Previously, `//ly.img.ubq/image` and `//ly.img.ubq/sticker` were their own high-level design block types. They do not support the fill APIs nor the effects APIs.
|
|
50
|
+
|
|
51
|
+
Both of these blocks are now removed in favor of using a `Graphic` block with an image fill (`//ly.img.ubq/fill/image`) and using the effects APIs instead of the legacy image block’s numerous effects properties.
|
|
52
|
+
|
|
53
|
+
At its core, the sticker block has always just been an image block that is heavily limited in its capabilities. You can not crop it, nor apply any effects to it. In order to replicate this difference as closely as possible in the new unified structure, more fine-grained scopes have been added. You can now limit the adopter’s ability to crop a block and to edit its appearance.
|
|
54
|
+
|
|
55
|
+
Note that since these scopes only apply to a user of the editor with the “Adopter” role, a “Creator” user will now have all of the same editing options for both images and for blocks that used to be stickers.
|
|
56
|
+
|
|
57
|
+
## **Scopes**
|
|
58
|
+
|
|
59
|
+
The following is the list of changes to the design block scopes:
|
|
60
|
+
|
|
61
|
+
- (Breaking) The permission to crop a block was split from `content/replace` and `design/style` into a separate scope: `layer/crop`.
|
|
62
|
+
- Deprecated the `design/arrange` scope and renamed
|
|
63
|
+
`design/arrange/move` → `layer/move`
|
|
64
|
+
`design/arrange/resize` → `layer/resize`
|
|
65
|
+
`design/arrange/rotate` → `layer/rotate`
|
|
66
|
+
`design/arrange/flip` → `layer/flip`
|
|
67
|
+
- Deprecated the `content/replace` scope. For `//ly.img.ubq/text` blocks, it is replaced with the new `text/edit` scope. For other blocks it is replaced with `fill/change`.
|
|
68
|
+
- Deprecated the `design/style` scope and replaced it with the following fine-grained scopes: `text/character`, `stroke/change`, `layer/opacity`, `layer/blendMode`, `layer/visibility`, `layer/clipping`, `appearance/adjustments`, `appearance/filter`, `appearance/effect`, `appearance/blur`, `appearance/shadow`
|
|
69
|
+
- Introduced `fill/change`, `stroke/change`, and `shape/change` scopes that control whether the fill, stroke or shape of a block may be edited by a user with an "Adopter" role.
|
|
70
|
+
- The deprecated scopes are automatically mapped to their new corresponding scopes by the scope APIs for now until they will be removed completely in a future update.
|
|
71
|
+
|
|
72
|
+
## **Kind**
|
|
73
|
+
|
|
74
|
+
While the new unified block structure both simplifies a lot of code and makes design blocks more powerful, it also means that many of the design blocks that used to have unique type ids now all have the same generic `//ly.img.ubq/graphic` type, which means that calls to the `findByType` cannot be used to filter blocks based on their legacy type ids any more.
|
|
75
|
+
|
|
76
|
+
Simultaneously, there are many instances in which different blocks in the scene which might have the same type and underlying technical structure have different semantic roles in the document and should therefore be treated differently by the user interface.
|
|
77
|
+
|
|
78
|
+
To solve both of these problems, we have introduced the concept of a block “kind”. This is a mutable string that can be used to tag different blocks with a semantic label.
|
|
79
|
+
|
|
80
|
+
You can get the kind of a block using the `getKind` API and you can query blocks with a specific kind using the `findByKind` API.
|
|
81
|
+
|
|
82
|
+
CreativeEngine provides the following default kind values:
|
|
83
|
+
|
|
84
|
+
- `image`
|
|
85
|
+
- `video`
|
|
86
|
+
- `sticker`
|
|
87
|
+
- `scene`
|
|
88
|
+
- `camera`
|
|
89
|
+
- `stack`
|
|
90
|
+
- `page`
|
|
91
|
+
- `audio`
|
|
92
|
+
- `text`
|
|
93
|
+
- `shape`
|
|
94
|
+
- `group`
|
|
95
|
+
|
|
96
|
+
Unlike the immutable design block type id, you can change the kind of a block with the new `setKind` API.
|
|
97
|
+
|
|
98
|
+
It is important to remember that the underlying structure and properties of a design block are not strictly defined by its kind, since the kind, shape, fill and effects of a block can be changed independent of each other. Therefore, a user-interface should not make assumptions about available properties of a block purely based on its kind.
|
|
99
|
+
|
|
100
|
+
> **Note:** **Note**Due to legacy reasons, blocks with the kind "sticker" will continue to not allow
|
|
101
|
+
> their contents to be cropped. This special behavior will be addressed and replaced
|
|
102
|
+
> with a more general-purpose implementation in a future update.
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
## **Asset Definitions**
|
|
107
|
+
|
|
108
|
+
The asset definitions have been updated to reflect the deprecation of legacy block type ids and the introduction of the “kind” property.
|
|
109
|
+
|
|
110
|
+
In addition to the “blockType” meta property, you can now also define the `“shapeType”` ,`“fillType”` and `“kind”` of the block that should be created by the default implementation of the applyAsset function.
|
|
111
|
+
|
|
112
|
+
- `“blockType”` defaults to `“//ly.img.ubq/graphic”` if left unspecified.
|
|
113
|
+
- `“shapeType”` defaults to `“//ly.img.ubq/shape/rect”` if left unspecified
|
|
114
|
+
- `“fillType”` defaults to `“//ly.img.ubq/fill/color”` if left unspecified
|
|
115
|
+
|
|
116
|
+
Video block asset definitions used to specify the `“blockType”` as `“//ly.img.ubq/fill/video“`. The `“fillType”` meta asset property should now be used instead for such fill type ids.
|
|
117
|
+
|
|
118
|
+
## **Automatic Migration**
|
|
119
|
+
|
|
120
|
+
CreativeEngine will always continue to support scene files that contain the now removed legacy block types. Those design blocks will be automatically replaced by the equivalent new unified block structure when the scene is loaded, which means that the types of all legacy blocks will change to `“//ly.img.ubq/graphic”`.
|
|
121
|
+
|
|
122
|
+
Note that this can mean that a block gains new capabilities that it did not have before. For example, the line shape block did not have any stroke properties, so the `hasStroke` API used to return `false`. However, after the automatic migration its `Graphic` design block replacement supports both strokes and fills, so the `hasStroke` API now returns `true` . Similarly, the image block did not support fills or effects, but the `Graphic` block does.
|
|
123
|
+
|
|
124
|
+
## List of all Removed Block Type IDs
|
|
125
|
+
|
|
126
|
+
- `//ly.img.ubq/image`
|
|
127
|
+
- `//ly.img.ubq/sticker`
|
|
128
|
+
- `//ly.img.ubq/shapes/rect`
|
|
129
|
+
- `//ly.img.ubq/shapes/line`
|
|
130
|
+
- `//ly.img.ubq/shapes/ellipse`
|
|
131
|
+
- `//ly.img.ubq/shapes/polygon`
|
|
132
|
+
- `//ly.img.ubq/shapes/star`
|
|
133
|
+
- `//ly.img.ubq/vector_path`
|
|
134
|
+
|
|
135
|
+
## **UI Configuration**
|
|
136
|
+
|
|
137
|
+
The configuration options for the legacy blocks have also been removed under `config.ui.elements.blocks` and a new configuration option for the `ly.img.ubq/graphic` block type have been introduced which will then define which UI controls to enable for graphic blocks (crop, filters, adjustments, effects, blur). This new configuration option follows the same structure as before.
|
|
138
|
+
|
|
139
|
+
Here is a list of the deprecated block configuration options:
|
|
140
|
+
|
|
141
|
+
- `//ly.img.ubq/image`
|
|
142
|
+
- `//ly.img.ubq/fill/video`
|
|
143
|
+
- `//ly.img.ubq/shapes/rect`
|
|
144
|
+
- `//ly.img.ubq/shapes/line`
|
|
145
|
+
- `//ly.img.ubq/shapes/star`
|
|
146
|
+
- `//ly.img.ubq/shapes/polygon`
|
|
147
|
+
- `//ly.img.ubq/shapes/ellipse`
|
|
148
|
+
- `//ly.img.ubq/vector_path`
|
|
149
|
+
|
|
150
|
+
## Translations
|
|
151
|
+
|
|
152
|
+
Some of the translation keys related to Scopes and Placeholder-Settings have been also updated:
|
|
153
|
+
|
|
154
|
+
- Removed the following keys:
|
|
155
|
+
- `scope.content.replace`
|
|
156
|
+
- `scope.design.arrange`
|
|
157
|
+
- `scope.design.style`
|
|
158
|
+
- Renamed the following keys:
|
|
159
|
+
- `scope.design.arrange.flip` is now `scope.layer.flip`
|
|
160
|
+
- `scope.design.arrange.move` is now `scope.layer.move`
|
|
161
|
+
- `scope.design.arrange.resize` is now `scope.layer.resize`
|
|
162
|
+
- `scope.design.arrange.rotate` is now `scope.layer.rotate`
|
|
163
|
+
- Added the following keys:
|
|
164
|
+
- `component.placeholder.appearance.description`
|
|
165
|
+
- `component.placeholder.appearance`
|
|
166
|
+
- `component.placeholder.arrange.description`
|
|
167
|
+
- `component.placeholder.arrange`
|
|
168
|
+
- `component.placeholder.disableAll`
|
|
169
|
+
- `component.placeholder.enableAll`
|
|
170
|
+
- `component.placeholder.fill.description`
|
|
171
|
+
- `component.placeholder.fill`
|
|
172
|
+
- `component.placeholder.general.description`
|
|
173
|
+
- `component.placeholder.general`
|
|
174
|
+
- `component.placeholder.shape.description`
|
|
175
|
+
- `component.placeholder.shape`
|
|
176
|
+
- `component.placeholder.stroke.description`
|
|
177
|
+
- `component.placeholder.stroke`
|
|
178
|
+
- `component.placeholder.text.description`
|
|
179
|
+
- `component.placeholder.text`
|
|
180
|
+
- `scope.appearance.adjustments`
|
|
181
|
+
- `scope.appearance.blur`
|
|
182
|
+
- `scope.appearance.effect`
|
|
183
|
+
- `scope.appearance.filter`
|
|
184
|
+
- `scope.appearance.shadow`
|
|
185
|
+
- `scope.fill.change`
|
|
186
|
+
- `scope.layer.blendMode`
|
|
187
|
+
- `scope.layer.opacity`
|
|
188
|
+
- `scope.shape.change`
|
|
189
|
+
- `scope.stroke.change`
|
|
190
|
+
- `scope.text.character`
|
|
191
|
+
- `scope.text.edit`
|
|
192
|
+
|
|
193
|
+
## **Types and API Signatures**
|
|
194
|
+
|
|
195
|
+
To improve the type safety of our APIs, we have moved away from using the `DesignBlockType` enum and replaced with a set of types. Those changes have affected the following APIs:
|
|
196
|
+
|
|
197
|
+
- `CESDK.engine.block.create()`
|
|
198
|
+
- `CESDK.engine.block.createFill()`
|
|
199
|
+
- `CESDK.engine.block.createEffect()`
|
|
200
|
+
- `CESDK.engine.block.createBlur()`
|
|
201
|
+
- `CESDK.engine.block.findByType()`
|
|
202
|
+
- `CESDK.engine.block.getType()`
|
|
203
|
+
|
|
204
|
+
> **Note:** **Note**The `create`, `findByType`, and `getType` APIs will no longer accept the IDs of
|
|
205
|
+
> the deprecated legacy blocks and will throw an error when those are passed
|
|
206
|
+
|
|
207
|
+
## **Code Examples**
|
|
208
|
+
|
|
209
|
+
This section will show some code examples of the breaking changes and how it would look like after migrating.
|
|
210
|
+
|
|
211
|
+
```js
|
|
212
|
+
/** Block Creation */
|
|
213
|
+
|
|
214
|
+
// Creating an Image before migration
|
|
215
|
+
const image = cesdk.engine.block.create('image');
|
|
216
|
+
cesdk.engine.block.setString(
|
|
217
|
+
image,
|
|
218
|
+
'image/imageFileURI',
|
|
219
|
+
'https://domain.com/link-to-image.jpg'
|
|
220
|
+
);
|
|
221
|
+
|
|
222
|
+
// Creating an Image after migration
|
|
223
|
+
const block = cesdk.engine.block.create('graphic');
|
|
224
|
+
const rectShape = cesdk.engine.block.createShape('rect');
|
|
225
|
+
const imageFill = cesdk.engine.block.createFill('image');
|
|
226
|
+
cesdk.engine.block.setString(
|
|
227
|
+
imageFill,
|
|
228
|
+
'fill/image/imageFileURI',
|
|
229
|
+
'https://domain.com/link-to-image.jpg'
|
|
230
|
+
);
|
|
231
|
+
cesdk.engine.block.setShape(block, rectShape);
|
|
232
|
+
cesdk.engine.block.setFill(block, imageFill);
|
|
233
|
+
cesdk.engine.block.setKind(block, 'image');
|
|
234
|
+
|
|
235
|
+
// Creating a star shape before migration
|
|
236
|
+
const star = cesdk.engine.block.create('shapes/star');
|
|
237
|
+
cesdk.engine.block.setInt(star, 'shapes/star/points', 8);
|
|
238
|
+
|
|
239
|
+
// Creating a star shape after migration
|
|
240
|
+
const block = cesdk.engine.block.create('graphic');
|
|
241
|
+
const starShape = cesdk.engine.block.createShape('star');
|
|
242
|
+
const colorFill = cesdk.engine.block.createFill('color');
|
|
243
|
+
cesdk.engine.block.setInt(starShape, 'shape/star/points', 8);
|
|
244
|
+
cesdk.engine.block.setShape(block, starShape);
|
|
245
|
+
cesdk.engine.block.setFill(block, colorFill);
|
|
246
|
+
cesdk.engine.block.setKind(block, 'shape');
|
|
247
|
+
|
|
248
|
+
// Creating a sticker before migration
|
|
249
|
+
const sticker = cesdk.engine.block.create('sticker');
|
|
250
|
+
cesdk.engine.setString(
|
|
251
|
+
sticker,
|
|
252
|
+
'sticker/imageFileURI',
|
|
253
|
+
'https://domain.com/link-to-sticker.png'
|
|
254
|
+
);
|
|
255
|
+
|
|
256
|
+
// Creating a sticker after migration
|
|
257
|
+
const block = cesdk.engine.block.create('graphic');
|
|
258
|
+
const rectShape = cesdk.engine.block.createShape('rect');
|
|
259
|
+
const imageFill = cesdk.engine.block.createFill('image');
|
|
260
|
+
cesdk.engine.block.setString(
|
|
261
|
+
imageFill,
|
|
262
|
+
'fill/image/imageFileURI',
|
|
263
|
+
'https://domain.com/link-to-sticker.png'
|
|
264
|
+
);
|
|
265
|
+
cesdk.engine.block.setShape(block, rectShape);
|
|
266
|
+
cesdk.engine.block.setFill(block, imageFill);
|
|
267
|
+
cesdk.engine.block.setKind(block, 'sticker');
|
|
268
|
+
|
|
269
|
+
/** Block Creation */
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
```js
|
|
273
|
+
/** Block Exploration */
|
|
274
|
+
|
|
275
|
+
// Query all images in the scene before migration
|
|
276
|
+
const images = cesdk.engine.block.findByType('image');
|
|
277
|
+
|
|
278
|
+
// Query all images in the scene after migration
|
|
279
|
+
const images = cesdk.engine.block.findByType('graphic').filter((block) => {
|
|
280
|
+
const fill = cesdk.engine.block.getFill(block);
|
|
281
|
+
return (
|
|
282
|
+
cesdk.engine.block.isValid(fill) &&
|
|
283
|
+
cesdk.engine.block.getType(fill) === '//ly.img.ubq/fill/image'
|
|
284
|
+
);
|
|
285
|
+
});
|
|
286
|
+
|
|
287
|
+
// Query all stickers in the scene before migration
|
|
288
|
+
const stickers = cesdk.engine.block.findByType('sticker');
|
|
289
|
+
|
|
290
|
+
// Query all stickers in the scene after migration
|
|
291
|
+
const stickers = cesdk.engine.block.findByKind('sticker');
|
|
292
|
+
|
|
293
|
+
// Query all Polygon shapes in the scene before migration
|
|
294
|
+
const polygons = cesdk.engine.block.findByType('shapes/polygon');
|
|
295
|
+
|
|
296
|
+
// Query all Polygon shapes in the scene after migration
|
|
297
|
+
const polygons = cesdk.engine.block.findByType('graphic').filter((block) => {
|
|
298
|
+
const shape = cesdk.engine.block.getShape(block);
|
|
299
|
+
return (
|
|
300
|
+
cesdk.engine.block.isValid(shape) &&
|
|
301
|
+
cesdk.engine.block.getType(shape) === '//ly.img.ubq/shape/polygon'
|
|
302
|
+
);
|
|
303
|
+
});
|
|
304
|
+
|
|
305
|
+
/** Block Exploration */
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
---
|
|
309
|
+
|
|
310
|
+
## More Resources
|
|
311
|
+
|
|
312
|
+
- **[Vanilla JS/TS Documentation Index](https://img.ly/docs/cesdk/js.md)** - Browse all Vanilla JS/TS documentation
|
|
313
|
+
- **[Complete Documentation](./llms-full.txt.md)** - Full documentation in one file (for LLMs)
|
|
314
|
+
- **[Web Documentation](./js.md)** - Interactive documentation with examples
|
|
315
|
+
- **[Support](mailto:support@img.ly)** - Contact IMG.LY support
|