@cesdk/node 1.70.0-nightly.20260218 → 1.70.0-nightly.20260220
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/assets/core/{cesdk-v1.70.0-nightly.20260218-EYSZMZQN.wasm → cesdk-v1.70.0-nightly.20260220-7F3ZQCZI.wasm} +0 -0
- package/index.d.ts +86 -4
- package/index.js +1 -1
- package/package.json +1 -1
- /package/assets/core/{cesdk-v1.70.0-nightly.20260218-MLEZSZ4D.data → cesdk-v1.70.0-nightly.20260220-MLEZSZ4D.data} +0 -0
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -5697,6 +5697,12 @@ export declare interface CMYKColor {
|
|
|
5697
5697
|
*/
|
|
5698
5698
|
export declare type Color = RGBAColor | CMYKColor | SpotColor;
|
|
5699
5699
|
|
|
5700
|
+
/** @public */
|
|
5701
|
+
export declare type ColorPickerColorMode = (typeof ColorPickerColorModeValues)[number];
|
|
5702
|
+
|
|
5703
|
+
/** @public */
|
|
5704
|
+
export declare const ColorPickerColorModeValues: readonly ["RGB", "CMYK", "Any"];
|
|
5705
|
+
|
|
5700
5706
|
/** @public */
|
|
5701
5707
|
export declare type ColorPropertyName = 'dropShadow/color' | 'fill/solid/color' | 'stroke/color' | 'backgroundColor/color' | 'animation/block_swipe_text/blockColor' | 'effect/duotone_filter/darkColor' | 'effect/duotone_filter/lightColor' | 'effect/green_screen/fromColor' | 'effect/recolor/fromColor' | 'effect/recolor/toColor' | 'fill/color/value' | (string & {});
|
|
5702
5708
|
|
|
@@ -5731,6 +5737,25 @@ export declare interface CompleteAssetResult extends AssetResult {
|
|
|
5731
5737
|
active: boolean;
|
|
5732
5738
|
}
|
|
5733
5739
|
|
|
5740
|
+
/**
|
|
5741
|
+
* Compression format for scene serialization.
|
|
5742
|
+
* @public
|
|
5743
|
+
*/
|
|
5744
|
+
export declare enum CompressionFormat {
|
|
5745
|
+
None = 0,
|
|
5746
|
+
Zstd = 1
|
|
5747
|
+
}
|
|
5748
|
+
|
|
5749
|
+
/**
|
|
5750
|
+
* Compression level for scene serialization.
|
|
5751
|
+
* @public
|
|
5752
|
+
*/
|
|
5753
|
+
export declare enum CompressionLevel {
|
|
5754
|
+
Fastest = 0,
|
|
5755
|
+
Default = 1,
|
|
5756
|
+
Best = 2
|
|
5757
|
+
}
|
|
5758
|
+
|
|
5734
5759
|
/**
|
|
5735
5760
|
* Specifies the configuration for the Creative Editor SDK.
|
|
5736
5761
|
*
|
|
@@ -7630,6 +7655,34 @@ export declare interface RGBColor {
|
|
|
7630
7655
|
*/
|
|
7631
7656
|
export declare type RoleString = 'Creator' | 'Adopter' | 'Viewer' | 'Presenter';
|
|
7632
7657
|
|
|
7658
|
+
/**
|
|
7659
|
+
* Options for saveSceneToString operation.
|
|
7660
|
+
* @public
|
|
7661
|
+
*/
|
|
7662
|
+
declare interface SaveToStringOptions {
|
|
7663
|
+
/**
|
|
7664
|
+
* List of resource URL schemes that are allowed in the serialized scene.
|
|
7665
|
+
* Resources with other schemes will trigger the persistence callback.
|
|
7666
|
+
*/
|
|
7667
|
+
resourceSchemesAllowed?: string[];
|
|
7668
|
+
/**
|
|
7669
|
+
* Optional callback for persisting resources with disallowed schemes.
|
|
7670
|
+
*/
|
|
7671
|
+
persistenceCallback?: (url: string, dataHash: string, persistedCallback?: {
|
|
7672
|
+
invoke(url: string, persistedUrl: string): void;
|
|
7673
|
+
}) => void;
|
|
7674
|
+
/**
|
|
7675
|
+
* Compression options for the serialized scene.
|
|
7676
|
+
* When compression is enabled, base64 encoding is skipped and raw binary data is returned.
|
|
7677
|
+
*/
|
|
7678
|
+
compression?: {
|
|
7679
|
+
/** Compression format (None = no compression, Zstd = zstd compression) */
|
|
7680
|
+
format?: CompressionFormat;
|
|
7681
|
+
/** Compression level (Fastest, Default, Best) */
|
|
7682
|
+
level?: CompressionLevel;
|
|
7683
|
+
};
|
|
7684
|
+
}
|
|
7685
|
+
|
|
7633
7686
|
/**
|
|
7634
7687
|
* @public Create, load, save, and manipulate scenes.
|
|
7635
7688
|
*
|
|
@@ -7718,14 +7771,38 @@ export declare class SceneAPI {
|
|
|
7718
7771
|
* Serializes the current scene into a string. Selection is discarded.
|
|
7719
7772
|
*
|
|
7720
7773
|
* @category Scene Saving
|
|
7721
|
-
* @param allowedResourceSchemes - The resource schemes to allow in the saved string.
|
|
7774
|
+
* @param allowedResourceSchemes - The resource schemes to allow in the saved string.
|
|
7722
7775
|
* @param onDisallowedResourceScheme - An optional callback that is called for each resource URL that has a scheme absent from
|
|
7723
7776
|
* `resourceSchemesAllowed`. The `url` parameter is the resource URL and the `dataHash` parameter is the hash of the
|
|
7724
7777
|
* resource's data. The callback should return a new URL for the resource, which will be used in the serialized
|
|
7725
7778
|
* scene. The callback is expected to return the original URL if no persistence is needed.
|
|
7726
7779
|
* @returns A promise that resolves with a string on success or an error on failure.
|
|
7780
|
+
* @deprecated Use saveToString(options) instead for better extensibility and to access compression features.
|
|
7727
7781
|
*/
|
|
7728
|
-
saveToString(allowedResourceSchemes
|
|
7782
|
+
saveToString(allowedResourceSchemes: string[], onDisallowedResourceScheme?: (url: string, dataHash: string) => Promise<string>): Promise<string>;
|
|
7783
|
+
/**
|
|
7784
|
+
* Serializes the current scene into a string. Selection is discarded.
|
|
7785
|
+
*
|
|
7786
|
+
* @category Scene Saving
|
|
7787
|
+
* @param options - Save options containing:
|
|
7788
|
+
* - allowedResourceSchemes: The resource schemes to allow in the saved string. Defaults to ['blob', 'bundle', 'file', 'http', 'https', 'opfs'].
|
|
7789
|
+
* - onDisallowedResourceScheme: An optional callback that is called for each resource URL that has a scheme absent from
|
|
7790
|
+
* `resourceSchemesAllowed`. The `url` parameter is the resource URL and the `dataHash` parameter is the hash of the
|
|
7791
|
+
* resource's data. The callback should return a new URL for the resource, which will be used in the serialized
|
|
7792
|
+
* scene. The callback is expected to return the original URL if no persistence is needed.
|
|
7793
|
+
* - compression: Optional compression settings containing:
|
|
7794
|
+
* - format: Compression format (None or Zstd). Defaults to None.
|
|
7795
|
+
* - level: Compression level (Fastest, Default, or Best). Defaults to Default.
|
|
7796
|
+
* @returns A promise that resolves with a string on success or an error on failure.
|
|
7797
|
+
*/
|
|
7798
|
+
saveToString(options?: {
|
|
7799
|
+
allowedResourceSchemes?: string[];
|
|
7800
|
+
onDisallowedResourceScheme?: (url: string, dataHash: string) => Promise<string>;
|
|
7801
|
+
compression?: {
|
|
7802
|
+
format?: CompressionFormat;
|
|
7803
|
+
level?: CompressionLevel;
|
|
7804
|
+
};
|
|
7805
|
+
}): Promise<string>;
|
|
7729
7806
|
/**
|
|
7730
7807
|
* Saves the current scene and all of its referenced assets into an archive.
|
|
7731
7808
|
*
|
|
@@ -8271,7 +8348,7 @@ export declare type SettingBoolPropertyName = 'alwaysHighlightPlaceholders' | 'd
|
|
|
8271
8348
|
export declare type SettingColorPropertyName = 'clearColor' | 'handleFillColor' | 'highlightColor' | 'pageHighlightColor' | 'placeholderHighlightColor' | 'snappingGuideColor' | 'rotationSnappingGuideColor' | 'cropOverlayColor' | 'textVariableHighlightColor' | 'borderOutlineColor' | 'progressColor' | 'errorStateColor' | 'page/title/color' | 'page/marginFillColor' | 'page/marginFrameColor' | 'page/innerBorderColor' | 'page/outerBorderColor' | 'colorMaskingSettings/maskColor' | (string & {});
|
|
8272
8349
|
|
|
8273
8350
|
/** @public */
|
|
8274
|
-
export declare type SettingEnumPropertyName = 'touch/pinchAction' | 'touch/rotateAction' | 'camera/clamping/overshootMode' | 'doubleClickSelectionMode' | (string & {});
|
|
8351
|
+
export declare type SettingEnumPropertyName = 'touch/pinchAction' | 'touch/rotateAction' | 'camera/clamping/overshootMode' | 'doubleClickSelectionMode' | 'colorPicker/colorMode' | (string & {});
|
|
8275
8352
|
|
|
8276
8353
|
/** @public */
|
|
8277
8354
|
export declare type SettingEnumType = {
|
|
@@ -8279,10 +8356,11 @@ export declare type SettingEnumType = {
|
|
|
8279
8356
|
'touch/rotateAction': TouchRotateAction;
|
|
8280
8357
|
'camera/clamping/overshootMode': CameraClampingOvershootMode;
|
|
8281
8358
|
doubleClickSelectionMode: DoubleClickSelectionMode;
|
|
8359
|
+
'colorPicker/colorMode': ColorPickerColorMode;
|
|
8282
8360
|
};
|
|
8283
8361
|
|
|
8284
8362
|
/** @public */
|
|
8285
|
-
export declare type SettingEnumValues = TouchPinchAction | TouchRotateAction | CameraClampingOvershootMode | DoubleClickSelectionMode | (string & {});
|
|
8363
|
+
export declare type SettingEnumValues = TouchPinchAction | TouchRotateAction | CameraClampingOvershootMode | DoubleClickSelectionMode | ColorPickerColorMode | (string & {});
|
|
8286
8364
|
|
|
8287
8365
|
/** @public */
|
|
8288
8366
|
export declare type SettingFloatPropertyName = 'positionSnappingThreshold' | 'rotationSnappingThreshold' | 'controlGizmo/blockScaleDownLimit' | (string & {});
|
|
@@ -8333,6 +8411,8 @@ export declare interface Settings {
|
|
|
8333
8411
|
'features/pageCarouselEnabled': boolean;
|
|
8334
8412
|
/** Whether transform edits should retain the cover mode of the content. */
|
|
8335
8413
|
'features/transformEditsRetainCoverMode': boolean;
|
|
8414
|
+
/** Whether auto-sized text blocks should be clamped to page boundaries during editing. */
|
|
8415
|
+
'features/clampTextBlockWidthToPageDimensionsDuringEditing': boolean;
|
|
8336
8416
|
/** Whether the engine processes mouse scroll events. */
|
|
8337
8417
|
'mouse/enableScroll': boolean;
|
|
8338
8418
|
/** Whether the engine processes mouse zoom events. */
|
|
@@ -8465,6 +8545,8 @@ export declare interface Settings {
|
|
|
8465
8545
|
'camera/clamping/overshootMode': 'Center' | 'Reverse';
|
|
8466
8546
|
/** Controls the icon size of the dock components */
|
|
8467
8547
|
'dock/iconSize': 'normal' | 'large';
|
|
8548
|
+
/** Controls the color mode of the color picker. When set to 'RGB' or 'CMYK', only colors matching this mode are fully editable. Defaults to 'Any'. */
|
|
8549
|
+
'colorPicker/colorMode': 'RGB' | 'CMYK' | 'Any';
|
|
8468
8550
|
|
|
8469
8551
|
|
|
8470
8552
|
|