@cesdk/engine 1.60.0-nightly.20250901 → 1.60.0-nightly.20250903
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.60.0-nightly.20250901-Z7XD6WT5.wasm → cesdk-v1.60.0-nightly.20250903-3VFVANVD.wasm} +0 -0
- package/assets/core/worker-host-v1.60.0-nightly.20250903.js +1 -0
- package/index.d.ts +316 -150
- package/index.js +1 -1
- package/package.json +1 -1
- package/assets/core/worker-host-v1.60.0-nightly.20250901.js +0 -1
- /package/assets/core/{cesdk-v1.60.0-nightly.20250901-44YCFRT6.data → cesdk-v1.60.0-nightly.20250903-44YCFRT6.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -1466,11 +1466,12 @@ export declare class BlockAPI {
|
|
|
1466
1466
|
/**
|
|
1467
1467
|
* Loads blocks from a remote archive URL.
|
|
1468
1468
|
*
|
|
1469
|
+
* The URL should be that of a file previously saved with `block.saveToArchive`.
|
|
1469
1470
|
* The blocks are not attached by default and won't be visible until attached to a page or the scene.
|
|
1470
1471
|
* The UUID of the loaded blocks is replaced with a new one.
|
|
1471
1472
|
*
|
|
1472
1473
|
* @category Block Lifecycle
|
|
1473
|
-
* @param url - The URL
|
|
1474
|
+
* @param url - The URL of the blocks archive file.
|
|
1474
1475
|
* @returns A promise that resolves with a list of handles representing the found blocks or an error.
|
|
1475
1476
|
* @example
|
|
1476
1477
|
* ```typescript
|
|
@@ -5852,6 +5853,14 @@ export declare type EditMode = 'Transform' | 'Crop' | 'Text' | 'Playback' | 'Tri
|
|
|
5852
5853
|
* resource handling, and global scope controls. It serves as the central configuration and control interface
|
|
5853
5854
|
* for the design editor engine.
|
|
5854
5855
|
*
|
|
5856
|
+
* ## Settings API
|
|
5857
|
+
*
|
|
5858
|
+
* The recommended way to work with settings is through the unified API:
|
|
5859
|
+
* - `setSetting<K>(key: K, value: Settings[K])` - Set any setting value
|
|
5860
|
+
* - `getSetting<K>(key: K): Settings[K]` - Get any setting value
|
|
5861
|
+
*
|
|
5862
|
+
* Legacy methods are available in the `deprecated` namespace for backward compatibility.
|
|
5863
|
+
*
|
|
5855
5864
|
* @categoryDescription Edit Mode Management
|
|
5856
5865
|
* Control the editor's current editing mode and interaction state.
|
|
5857
5866
|
*
|
|
@@ -6101,110 +6110,151 @@ export declare class EditorAPI {
|
|
|
6101
6110
|
* @returns A method to unsubscribe from the event.
|
|
6102
6111
|
*/
|
|
6103
6112
|
onRoleChanged: (callback: (role: RoleString) => void) => (() => void);
|
|
6113
|
+
/**
|
|
6114
|
+
* Set a setting value using the unified API.
|
|
6115
|
+
* The type of the value is automatically inferred from the key.
|
|
6116
|
+
*
|
|
6117
|
+
* @category Editor Settings
|
|
6118
|
+
* @param keypath - The setting key from Settings
|
|
6119
|
+
* @param value - The value to set (type-safe based on key)
|
|
6120
|
+
* @throws Error if the keypath is invalid or value type doesn't match
|
|
6121
|
+
*
|
|
6122
|
+
* @example
|
|
6123
|
+
* ```typescript
|
|
6124
|
+
* // Boolean setting
|
|
6125
|
+
* engine.editor.setSetting('doubleClickToCropEnabled', false);
|
|
6126
|
+
*
|
|
6127
|
+
* // Color setting
|
|
6128
|
+
* engine.editor.setSetting('highlightColor', { r: 1, g: 0, b: 1, a: 1 });
|
|
6129
|
+
*
|
|
6130
|
+
* // Enum setting
|
|
6131
|
+
* engine.editor.setSetting('doubleClickSelectionMode', 'Direct');
|
|
6132
|
+
* ```
|
|
6133
|
+
*/
|
|
6134
|
+
setSetting<K extends SettingKey>(keypath: OptionalPrefix<K>, value: SettingValueType<K>): void;
|
|
6135
|
+
/**
|
|
6136
|
+
* Get a setting value using the unified API.
|
|
6137
|
+
* The return type is automatically inferred from the key.
|
|
6138
|
+
*
|
|
6139
|
+
* @category Editor Settings
|
|
6140
|
+
* @param keypath - The setting key from Settings
|
|
6141
|
+
* @returns The value of the setting (type-safe based on key)
|
|
6142
|
+
* @throws Error if the keypath is invalid
|
|
6143
|
+
*
|
|
6144
|
+
* @example
|
|
6145
|
+
* ```typescript
|
|
6146
|
+
* // Boolean setting
|
|
6147
|
+
* const cropEnabled = engine.editor.getSetting('doubleClickToCropEnabled');
|
|
6148
|
+
*
|
|
6149
|
+
* // Color setting
|
|
6150
|
+
* const highlight = engine.editor.getSetting('highlightColor');
|
|
6151
|
+
*
|
|
6152
|
+
* // Enum setting
|
|
6153
|
+
* const selectionMode = engine.editor.getSetting('doubleClickSelectionMode');
|
|
6154
|
+
* ```
|
|
6155
|
+
*/
|
|
6156
|
+
getSetting<K extends SettingKey>(keypath: OptionalPrefix<K>): SettingValueType<K>;
|
|
6157
|
+
|
|
6158
|
+
|
|
6104
6159
|
/**
|
|
6105
6160
|
* Set a boolean setting value.
|
|
6106
6161
|
*
|
|
6162
|
+
* @deprecated Use setSetting() instead.
|
|
6163
|
+
*
|
|
6107
6164
|
* @category Editor Settings
|
|
6108
6165
|
* @param keypath - The settings keypath, e.g. `doubleClickToCropEnabled`.
|
|
6109
6166
|
* @param value - The boolean value to set.
|
|
6110
6167
|
* @throws Error if the keypath is invalid.
|
|
6111
6168
|
*/
|
|
6112
|
-
setSettingBool(keypath: SettingsBool
|
|
6113
|
-
/** @deprecated Support for `ubq://` prefixed keypaths will be removed in a future release. */
|
|
6114
|
-
setSettingBool(keypath: `ubq://${SettingsBool}`, value: boolean): void;
|
|
6115
|
-
|
|
6169
|
+
setSettingBool(keypath: OptionalPrefix<SettingsBool>, value: boolean): void;
|
|
6116
6170
|
/**
|
|
6117
6171
|
* Get a boolean setting value.
|
|
6118
6172
|
*
|
|
6173
|
+
* @deprecated Use getSetting() instead.
|
|
6119
6174
|
* @category Editor Settings
|
|
6120
6175
|
* @param keypath - The settings keypath, e.g. `doubleClickToCropEnabled`.
|
|
6121
6176
|
* @returns The boolean value of the setting.
|
|
6122
6177
|
* @throws Error if the keypath is invalid.
|
|
6123
6178
|
*/
|
|
6124
|
-
getSettingBool(keypath: SettingsBool): boolean;
|
|
6125
|
-
/** @deprecated Support for `ubq://` prefixed keypaths will be removed in a future release. */
|
|
6126
|
-
getSettingBool(keypath: `ubq://${SettingsBool}`): boolean;
|
|
6127
|
-
|
|
6179
|
+
getSettingBool(keypath: OptionalPrefix<SettingsBool>): boolean;
|
|
6128
6180
|
/**
|
|
6129
6181
|
* Set an integer setting value.
|
|
6130
6182
|
*
|
|
6183
|
+
* @deprecated Use setSetting() instead.
|
|
6131
6184
|
* @category Editor Settings
|
|
6132
6185
|
* @param keypath - The settings keypath.
|
|
6133
6186
|
* @param value - The integer value to set.
|
|
6134
6187
|
* @throws Error if the keypath is invalid.
|
|
6135
6188
|
*/
|
|
6136
|
-
setSettingInt(keypath:
|
|
6189
|
+
setSettingInt(keypath: SettingsInt, value: number): void;
|
|
6137
6190
|
/**
|
|
6138
6191
|
* Get an integer setting value.
|
|
6139
6192
|
*
|
|
6193
|
+
* @deprecated Use getSetting() instead.
|
|
6140
6194
|
* @category Editor Settings
|
|
6141
6195
|
* @param keypath - The settings keypath.
|
|
6142
6196
|
* @returns The integer value of the setting.
|
|
6143
6197
|
* @throws Error if the keypath is invalid.
|
|
6144
6198
|
*/
|
|
6145
|
-
getSettingInt(keypath:
|
|
6199
|
+
getSettingInt(keypath: SettingsInt): number;
|
|
6146
6200
|
/**
|
|
6147
6201
|
* Set a float setting value.
|
|
6148
6202
|
*
|
|
6203
|
+
* @deprecated Use setSetting() instead.
|
|
6149
6204
|
* @category Editor Settings
|
|
6150
6205
|
* @param keypath - The settings keypath, e.g. `positionSnappingThreshold`.
|
|
6151
6206
|
* @param value - The float value to set.
|
|
6152
6207
|
* @throws Error if the keypath is invalid.
|
|
6153
6208
|
*/
|
|
6154
|
-
setSettingFloat(keypath: SettingsFloat
|
|
6155
|
-
/** @deprecated Support for `ubq://` prefixed keypaths will be removed in a future release. */
|
|
6156
|
-
setSettingFloat(keypath: `ubq://${SettingsFloat}`, value: number): void;
|
|
6209
|
+
setSettingFloat(keypath: OptionalPrefix<SettingsFloat>, value: number): void;
|
|
6157
6210
|
/**
|
|
6158
6211
|
* Get a float setting value.
|
|
6159
6212
|
*
|
|
6213
|
+
* @deprecated Use getSetting() instead.
|
|
6160
6214
|
* @category Editor Settings
|
|
6161
6215
|
* @param keypath - The settings keypath, e.g. `positionSnappingThreshold`.
|
|
6162
6216
|
* @returns The float value of the setting.
|
|
6163
6217
|
* @throws Error if the keypath is invalid.
|
|
6164
6218
|
*/
|
|
6165
|
-
getSettingFloat(keypath: SettingsFloat): number;
|
|
6166
|
-
/** @deprecated Support for `ubq://` prefixed keypaths will be removed in a future release. */
|
|
6167
|
-
getSettingFloat(keypath: `ubq://${SettingsFloat}`): number;
|
|
6219
|
+
getSettingFloat(keypath: OptionalPrefix<SettingsFloat>): number;
|
|
6168
6220
|
/**
|
|
6169
6221
|
* Set a string setting value.
|
|
6170
6222
|
*
|
|
6223
|
+
* @deprecated Use setSetting() instead.
|
|
6171
6224
|
* @category Editor Settings
|
|
6172
6225
|
* @param keypath - The settings keypath, e.g. `license`.
|
|
6173
6226
|
* @param value - The string value to set.
|
|
6174
6227
|
* @throws Error if the keypath is invalid.
|
|
6175
6228
|
*/
|
|
6176
|
-
setSettingString(keypath: SettingsString
|
|
6177
|
-
/** @deprecated Support for `ubq://` prefixed keypaths will be removed in a future release. */
|
|
6178
|
-
setSettingString(keypath: `ubq://${SettingsString}`, value: string): void;
|
|
6229
|
+
setSettingString(keypath: OptionalPrefix<SettingsString>, value: string): void;
|
|
6179
6230
|
/**
|
|
6180
6231
|
* Get a string setting value.
|
|
6181
6232
|
*
|
|
6233
|
+
* @deprecated Use getSetting() instead.
|
|
6182
6234
|
* @category Editor Settings
|
|
6183
6235
|
* @param keypath - The settings keypath, e.g. `license`.
|
|
6184
6236
|
* @returns The string value of the setting.
|
|
6185
6237
|
* @throws Error if the keypath is invalid.
|
|
6186
6238
|
*/
|
|
6187
|
-
getSettingString(keypath: SettingsString): string;
|
|
6188
|
-
/** @deprecated Support for `ubq://` prefixed keypaths will be removed in a future release. */
|
|
6189
|
-
getSettingString(keypath: `ubq://${SettingsString}`): string;
|
|
6239
|
+
getSettingString(keypath: OptionalPrefix<SettingsString>): string;
|
|
6190
6240
|
/**
|
|
6191
6241
|
* Set a color setting.
|
|
6242
|
+
*
|
|
6243
|
+
* @deprecated Use setSetting() instead.
|
|
6192
6244
|
* @category Editor Settings
|
|
6193
6245
|
* @param keypath - The settings keypath, e.g. `highlightColor`.
|
|
6194
6246
|
* @param value - The The value to set.
|
|
6195
6247
|
*/
|
|
6196
|
-
setSettingColor(keypath: SettingsColor
|
|
6197
|
-
/** @deprecated Support for `ubq://` prefixed keypaths will be removed in a future release. */
|
|
6198
|
-
setSettingColor(keypath: `ubq://${SettingsColor}`, value: Color): void;
|
|
6248
|
+
setSettingColor(keypath: OptionalPrefix<SettingsColor>, value: Color): void;
|
|
6199
6249
|
/**
|
|
6200
6250
|
* Get a color setting.
|
|
6251
|
+
*
|
|
6252
|
+
* @deprecated Use getSetting() instead.
|
|
6201
6253
|
* @category Editor Settings
|
|
6202
6254
|
* @param keypath - The settings keypath, e.g. `highlightColor`.
|
|
6203
6255
|
* @throws An error, if the keypath is invalid.
|
|
6204
6256
|
*/
|
|
6205
|
-
getSettingColor(keypath: SettingsColor): Color;
|
|
6206
|
-
/** @deprecated Support for `ubq://` prefixed keypaths will be removed in a future release. */
|
|
6207
|
-
getSettingColor(keypath: `ubq://${SettingsColor}`): Color;
|
|
6257
|
+
getSettingColor(keypath: OptionalPrefix<SettingsColor>): Color;
|
|
6208
6258
|
/**
|
|
6209
6259
|
* Set a color setting.
|
|
6210
6260
|
* @param keypath - The settings keypath, e.g. `highlightColor`.
|
|
@@ -6214,34 +6264,32 @@ export declare class EditorAPI {
|
|
|
6214
6264
|
* @param a - The alpha color component in the range of 0 to 1.
|
|
6215
6265
|
* @deprecated Use setSettingColor() instead.
|
|
6216
6266
|
*/
|
|
6217
|
-
setSettingColorRGBA(keypath: SettingsColorRGBA
|
|
6267
|
+
setSettingColorRGBA(keypath: OptionalPrefix<SettingsColorRGBA>, r: number, g: number, b: number, a?: number): void;
|
|
6218
6268
|
/**
|
|
6219
6269
|
* Get a color setting.
|
|
6220
6270
|
* @param keypath - The settings keypath, e.g. `highlightColor`.
|
|
6221
6271
|
* @returns A tuple of channels red, green, blue and alpha in the range of 0 to 1.
|
|
6222
6272
|
* @deprecated Use getSettingColor() instead.
|
|
6223
6273
|
*/
|
|
6224
|
-
getSettingColorRGBA(keypath: SettingsColorRGBA
|
|
6274
|
+
getSettingColorRGBA(keypath: OptionalPrefix<SettingsColorRGBA>): RGBA;
|
|
6225
6275
|
/**
|
|
6226
6276
|
* Set an enum setting.
|
|
6277
|
+
*
|
|
6278
|
+
* @deprecated Use setSetting() instead.
|
|
6227
6279
|
* @category Editor Settings
|
|
6228
6280
|
* @param keypath - The settings keypath, e.g. `doubleClickSelectionMode`.
|
|
6229
6281
|
* @param value - The enum value as string.
|
|
6230
6282
|
*/
|
|
6231
6283
|
setSettingEnum<T extends keyof SettingsEnum>(keypath: T, value: SettingsEnum[T]): void;
|
|
6232
|
-
/** @deprecated Support for `ubq://` prefixed keypaths will be removed in a future release. */
|
|
6233
|
-
setSettingEnum<T extends keyof SettingsEnum>(keypath: `ubq://${T}`, value: SettingsEnum[T]): void;
|
|
6234
|
-
|
|
6235
6284
|
/**
|
|
6236
6285
|
* Get an enum setting.
|
|
6286
|
+
*
|
|
6287
|
+
* @deprecated Use getSetting() instead.
|
|
6237
6288
|
* @category Editor Settings
|
|
6238
6289
|
* @param keypath - The settings keypath, e.g. `doubleClickSelectionMode`.
|
|
6239
6290
|
* @returns The value as string.
|
|
6240
6291
|
*/
|
|
6241
6292
|
getSettingEnum<T extends keyof SettingsEnum>(keypath: T): SettingsEnum[T];
|
|
6242
|
-
/** @deprecated Support for `ubq://` prefixed keypaths will be removed in a future release. */
|
|
6243
|
-
getSettingEnum<T extends keyof SettingsEnum>(keypath: `ubq://${T}`): SettingsEnum[T];
|
|
6244
|
-
|
|
6245
6293
|
/**
|
|
6246
6294
|
* Get the possible enum options for a given enum setting.
|
|
6247
6295
|
* @category Editor Settings
|
|
@@ -6249,8 +6297,6 @@ export declare class EditorAPI {
|
|
|
6249
6297
|
* @returns The possible enum options as strings.
|
|
6250
6298
|
*/
|
|
6251
6299
|
getSettingEnumOptions<T extends keyof SettingsEnum>(keypath: T): string[];
|
|
6252
|
-
/** @deprecated Support for `ubq://` prefixed keypaths will be removed in a future release. */
|
|
6253
|
-
getSettingEnumOptions<T extends keyof SettingsEnum>(keypath: `ubq://${T}`): string[];
|
|
6254
6300
|
/**
|
|
6255
6301
|
* Set the user role and apply role-dependent defaults.
|
|
6256
6302
|
*
|
|
@@ -6272,7 +6318,7 @@ export declare class EditorAPI {
|
|
|
6272
6318
|
* @category Editor Settings
|
|
6273
6319
|
* @returns A list of settings keypaths.
|
|
6274
6320
|
*/
|
|
6275
|
-
findAllSettings():
|
|
6321
|
+
findAllSettings(): SettingKey[];
|
|
6276
6322
|
/**
|
|
6277
6323
|
* Returns the type of a setting.
|
|
6278
6324
|
* @category Editor Settings
|
|
@@ -7234,6 +7280,12 @@ declare type OffscreenCanvas_2 = {
|
|
|
7234
7280
|
};
|
|
7235
7281
|
export { OffscreenCanvas_2 as OffscreenCanvas }
|
|
7236
7282
|
|
|
7283
|
+
/**
|
|
7284
|
+
* Type helper for settings keypaths that can optionally include the 'ubq://' prefix.
|
|
7285
|
+
* @public
|
|
7286
|
+
*/
|
|
7287
|
+
export declare type OptionalPrefix<T extends string> = `ubq://${T}` | T;
|
|
7288
|
+
|
|
7237
7289
|
/** @public */
|
|
7238
7290
|
export declare interface PageDuration {
|
|
7239
7291
|
pageId: DesignBlockId;
|
|
@@ -7520,7 +7572,7 @@ export declare class SceneAPI {
|
|
|
7520
7572
|
* calls on this engines instance.
|
|
7521
7573
|
*
|
|
7522
7574
|
* @category Scene Loading
|
|
7523
|
-
* @param url - The URL of the scene file.
|
|
7575
|
+
* @param url - The URL of the scene archive file.
|
|
7524
7576
|
* @param overrideEditorConfig - Whether to override editor configuration with settings and data from the scene file. Defaults to false.
|
|
7525
7577
|
* @returns scene A promise that resolves once the scene was loaded or rejects with an error otherwise.
|
|
7526
7578
|
*/
|
|
@@ -8026,95 +8078,216 @@ export declare type SceneMode = 'Design' | 'Video';
|
|
|
8026
8078
|
export declare type Scope = 'text/edit' | 'text/character' | 'fill/change' | 'fill/changeType' | 'stroke/change' | 'shape/change' | 'layer/move' | 'layer/resize' | 'layer/rotate' | 'layer/flip' | 'layer/crop' | 'layer/opacity' | 'layer/blendMode' | 'layer/visibility' | 'layer/clipping' | 'appearance/adjustments' | 'appearance/filter' | 'appearance/effect' | 'appearance/blur' | 'appearance/shadow' | 'appearance/animation' | 'lifecycle/destroy' | 'lifecycle/duplicate' | 'editor/add' | 'editor/select';
|
|
8027
8079
|
|
|
8028
8080
|
/**
|
|
8029
|
-
*
|
|
8081
|
+
* Union type of all valid setting keys.
|
|
8082
|
+
* @public
|
|
8083
|
+
*/
|
|
8084
|
+
export declare type SettingKey = keyof Settings;
|
|
8085
|
+
|
|
8086
|
+
/**
|
|
8087
|
+
* Map of all available settings with their types.
|
|
8088
|
+
* This provides type-safe access to all editor settings.
|
|
8089
|
+
*
|
|
8090
|
+
* @public
|
|
8030
8091
|
*
|
|
8031
8092
|
* @categoryDescription Boolean Settings
|
|
8032
|
-
*
|
|
8033
|
-
* -
|
|
8034
|
-
* -
|
|
8035
|
-
* -
|
|
8036
|
-
* -
|
|
8037
|
-
*
|
|
8038
|
-
*
|
|
8039
|
-
*
|
|
8040
|
-
* -
|
|
8041
|
-
* -
|
|
8042
|
-
* -
|
|
8043
|
-
*
|
|
8044
|
-
*
|
|
8045
|
-
*
|
|
8046
|
-
* -
|
|
8047
|
-
* -
|
|
8048
|
-
*
|
|
8049
|
-
*
|
|
8050
|
-
*
|
|
8051
|
-
* -
|
|
8052
|
-
*
|
|
8053
|
-
*
|
|
8054
|
-
*
|
|
8055
|
-
* -
|
|
8056
|
-
* -
|
|
8057
|
-
* -
|
|
8058
|
-
*
|
|
8059
|
-
*
|
|
8060
|
-
*
|
|
8061
|
-
* -
|
|
8062
|
-
* -
|
|
8063
|
-
* -
|
|
8064
|
-
|
|
8065
|
-
|
|
8066
|
-
*/
|
|
8067
|
-
|
|
8093
|
+
* Boolean settings control various on/off features in the editor:
|
|
8094
|
+
* - Control gizmo visibility settings (crop, move, resize, rotate, scale handles)
|
|
8095
|
+
* - Feature flags (single page mode, page carousel, animations)
|
|
8096
|
+
* - Interaction permissions (mouse scroll/zoom, touch gestures, page interactions)
|
|
8097
|
+
* - Display options (build version, placeholders, page titles)
|
|
8098
|
+
*
|
|
8099
|
+
* @categoryDescription String Settings
|
|
8100
|
+
* String settings configure paths and textual values:
|
|
8101
|
+
* - Resource paths (base path, font URIs)
|
|
8102
|
+
* - License configuration
|
|
8103
|
+
* - Title formatting (separator, font)
|
|
8104
|
+
*
|
|
8105
|
+
* @categoryDescription Float Settings
|
|
8106
|
+
* Float settings define numerical thresholds and limits:
|
|
8107
|
+
* - Snapping thresholds for position and rotation
|
|
8108
|
+
* - Scale limits for control gizmos
|
|
8109
|
+
*
|
|
8110
|
+
* @categoryDescription Integer Settings
|
|
8111
|
+
* Integer settings specify whole number limits:
|
|
8112
|
+
* - Maximum image size constraints
|
|
8113
|
+
*
|
|
8114
|
+
* @categoryDescription Color Settings
|
|
8115
|
+
* Color settings control the visual appearance:
|
|
8116
|
+
* - UI element colors (borders, overlays, highlights)
|
|
8117
|
+
* - Guide colors (snapping, rotation, rule of thirds)
|
|
8118
|
+
* - State colors (error, progress, placeholder highlights)
|
|
8119
|
+
*
|
|
8120
|
+
* @categoryDescription Enum Settings
|
|
8121
|
+
* Enum settings provide predefined choice options:
|
|
8122
|
+
* - Selection modes
|
|
8123
|
+
* - Touch gesture actions
|
|
8124
|
+
* - Camera behavior modes
|
|
8125
|
+
*/
|
|
8126
|
+
export declare interface Settings {
|
|
8127
|
+
/** Whether to show handles for adjusting the crop area during crop mode. */
|
|
8128
|
+
'controlGizmo/showCropHandles': boolean;
|
|
8129
|
+
/** Whether to display the outer handles that scale the full image during crop. */
|
|
8130
|
+
'controlGizmo/showCropScaleHandles': boolean;
|
|
8131
|
+
/** Whether to show the move handles. */
|
|
8132
|
+
'controlGizmo/showMoveHandles': boolean;
|
|
8133
|
+
/** Whether to display the non-proportional resize handles (edge handles). */
|
|
8134
|
+
'controlGizmo/showResizeHandles': boolean;
|
|
8135
|
+
/** Whether to show the rotation handles. */
|
|
8136
|
+
'controlGizmo/showRotateHandles': boolean;
|
|
8137
|
+
/** Whether to display the proportional scale handles (corner handles). */
|
|
8138
|
+
'controlGizmo/showScaleHandles': boolean;
|
|
8139
|
+
/** Enable double-click to enter crop mode. */
|
|
8140
|
+
doubleClickToCropEnabled: boolean;
|
|
8141
|
+
/** Enable single page mode where only one page is shown at a time. */
|
|
8142
|
+
'features/singlePageModeEnabled': boolean;
|
|
8143
|
+
/** Enable the page carousel for navigating between pages. */
|
|
8144
|
+
'features/pageCarouselEnabled': boolean;
|
|
8145
|
+
/** Whether transform edits should retain the cover mode of the content. */
|
|
8146
|
+
'features/transformEditsRetainCoverMode': boolean;
|
|
8147
|
+
/** Whether the engine processes mouse scroll events. */
|
|
8148
|
+
'mouse/enableScroll': boolean;
|
|
8149
|
+
/** Whether the engine processes mouse zoom events. */
|
|
8150
|
+
'mouse/enableZoom': boolean;
|
|
8151
|
+
/** Whether crop interaction (by handles and gestures) should be possible. */
|
|
8152
|
+
'page/allowCropInteraction': boolean;
|
|
8153
|
+
/** Whether move interaction should be possible when page layout is not controlled by the scene. */
|
|
8154
|
+
'page/allowMoveInteraction': boolean;
|
|
8155
|
+
/** Whether resize interaction (by handles and gestures) should be possible. */
|
|
8156
|
+
'page/allowResizeInteraction': boolean;
|
|
8157
|
+
/** Whether rotation interaction should be possible when page layout is not controlled by the scene. */
|
|
8158
|
+
'page/allowRotateInteraction': boolean;
|
|
8159
|
+
/** Whether the opacity of the region outside of all pages should be reduced. */
|
|
8160
|
+
'page/dimOutOfPageAreas': boolean;
|
|
8161
|
+
/** Whether resize interaction should be restricted to fixed aspect ratio. */
|
|
8162
|
+
'page/restrictResizeInteractionToFixedAspectRatio': boolean;
|
|
8163
|
+
/** Whether children of the page should be transformed to match their old position when cropping. */
|
|
8164
|
+
'page/moveChildrenWhenCroppingFill': boolean;
|
|
8165
|
+
/** Whether to append the page name to the title even if not specified in the template. */
|
|
8166
|
+
'page/title/appendPageName': boolean;
|
|
8167
|
+
/** Whether to show titles above each page. */
|
|
8168
|
+
'page/title/show': boolean;
|
|
8169
|
+
/** Whether to hide the page title when only a single page exists. */
|
|
8170
|
+
'page/title/showOnSinglePage': boolean;
|
|
8171
|
+
/** Whether to include the default page title from page.titleTemplate. */
|
|
8172
|
+
'page/title/showPageTitleTemplate': boolean;
|
|
8173
|
+
/** Whether to show the placeholder button. */
|
|
8174
|
+
'placeholderControls/showButton': boolean;
|
|
8175
|
+
/** Whether to show the overlay pattern for placeholders. */
|
|
8176
|
+
'placeholderControls/showOverlay': boolean;
|
|
8177
|
+
/** Whether animations should be enabled or not. */
|
|
8178
|
+
'blockAnimations/enabled': boolean;
|
|
8179
|
+
/** Whether to display the build version in the UI. */
|
|
8180
|
+
showBuildVersion: boolean;
|
|
8181
|
+
/** Whether drag start can select elements. */
|
|
8182
|
+
'touch/dragStartCanSelect': boolean;
|
|
8183
|
+
/** Whether single-point panning is enabled for touch interactions. */
|
|
8184
|
+
'touch/singlePointPanning': boolean;
|
|
8185
|
+
/** Whether to use system font as fallback for missing glyphs. */
|
|
8186
|
+
useSystemFontFallback: boolean;
|
|
8187
|
+
/** Whether to force the use of system emojis instead of custom emoji fonts. */
|
|
8188
|
+
forceSystemEmojis: boolean;
|
|
8189
|
+
/** The root directory used when resolving relative paths or accessing bundle:// URIs. */
|
|
8190
|
+
basePath: string;
|
|
8191
|
+
/** The URI for the default emoji font file. */
|
|
8192
|
+
defaultEmojiFontFileUri: string;
|
|
8193
|
+
/** The URI for the default font file. */
|
|
8194
|
+
defaultFontFileUri: string;
|
|
8195
|
+
/** The license key for the SDK. */
|
|
8196
|
+
license: string;
|
|
8197
|
+
/** The font file URI for page titles. */
|
|
8198
|
+
'page/title/fontFileUri': string;
|
|
8199
|
+
/** The separator between page number and page name in titles. */
|
|
8200
|
+
'page/title/separator': string;
|
|
8201
|
+
/** The URI for the fallback font used when glyphs are missing. */
|
|
8202
|
+
fallbackFontUri: string;
|
|
8203
|
+
/** Scale-down limit for blocks in screen pixels when scaling with gizmos or touch gestures. */
|
|
8204
|
+
'controlGizmo/blockScaleDownLimit': number;
|
|
8205
|
+
/** The threshold distance in pixels for position snapping. */
|
|
8206
|
+
positionSnappingThreshold: number;
|
|
8207
|
+
/** The threshold angle in degrees for rotation snapping. */
|
|
8208
|
+
rotationSnappingThreshold: number;
|
|
8209
|
+
/** The maximum size (width or height) in pixels for images. */
|
|
8210
|
+
maxImageSize: number;
|
|
8211
|
+
/** The color of the border outline for selected elements. */
|
|
8212
|
+
borderOutlineColor: Color;
|
|
8213
|
+
/** The background clear color. */
|
|
8214
|
+
clearColor: Color;
|
|
8215
|
+
/** The color used for color masking effects. */
|
|
8216
|
+
'colorMaskingSettings/maskColor': Color;
|
|
8217
|
+
/** The color of the crop overlay. */
|
|
8218
|
+
cropOverlayColor: Color;
|
|
8219
|
+
/** The color indicating an error state. */
|
|
8220
|
+
errorStateColor: Color;
|
|
8221
|
+
/** The highlight color for selected or active elements. */
|
|
8222
|
+
highlightColor: Color;
|
|
8223
|
+
/** The color of the inner frame around the page. */
|
|
8224
|
+
'page/innerBorderColor': Color;
|
|
8225
|
+
/** The color filled into the bleed margins of pages. */
|
|
8226
|
+
'page/marginFillColor': Color;
|
|
8227
|
+
/** The color of the frame around the bleed margin area. */
|
|
8228
|
+
'page/marginFrameColor': Color;
|
|
8229
|
+
/** The color of the outer frame around the page. */
|
|
8230
|
+
'page/outerBorderColor': Color;
|
|
8231
|
+
/** The color of page titles visible in preview mode. */
|
|
8232
|
+
'page/title/color': Color;
|
|
8233
|
+
/** The highlight color for placeholder elements. */
|
|
8234
|
+
placeholderHighlightColor: Color;
|
|
8235
|
+
/** The color indicating progress or loading states. */
|
|
8236
|
+
progressColor: Color;
|
|
8237
|
+
/** The color of rotation snapping guide lines. */
|
|
8238
|
+
rotationSnappingGuideColor: Color;
|
|
8239
|
+
/** The color of rule of thirds guide lines. */
|
|
8240
|
+
ruleOfThirdsLineColor: Color;
|
|
8241
|
+
/** The color of snapping guide lines. */
|
|
8242
|
+
snappingGuideColor: Color;
|
|
8243
|
+
/** The highlight color for text variables. */
|
|
8244
|
+
textVariableHighlightColor: Color;
|
|
8245
|
+
/** The selection mode for double-click: Direct selects the clicked element, Hierarchical traverses the hierarchy. */
|
|
8246
|
+
doubleClickSelectionMode: 'Direct' | 'Hierarchical';
|
|
8247
|
+
/** The action performed for pinch gestures: None, Zoom, or Scale. */
|
|
8248
|
+
'touch/pinchAction': 'None' | 'Zoom' | 'Scale';
|
|
8249
|
+
/** The action performed for rotate gestures: None or Rotate. */
|
|
8250
|
+
'touch/rotateAction': 'None' | 'Rotate';
|
|
8251
|
+
/** Controls behavior when clamp area is smaller than viewport: Center or Reverse. */
|
|
8252
|
+
'camera/clamping/overshootMode': 'Center' | 'Reverse';
|
|
8253
|
+
|
|
8254
|
+
|
|
8255
|
+
|
|
8256
|
+
|
|
8257
|
+
|
|
8258
|
+
|
|
8259
|
+
|
|
8260
|
+
|
|
8261
|
+
|
|
8262
|
+
|
|
8263
|
+
|
|
8264
|
+
|
|
8265
|
+
|
|
8266
|
+
|
|
8267
|
+
}
|
|
8068
8268
|
|
|
8069
8269
|
/**
|
|
8070
|
-
* Represents the
|
|
8270
|
+
* Represents the boolean settings available in the editor.
|
|
8071
8271
|
*
|
|
8072
|
-
* @
|
|
8073
|
-
*
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
* - 'errorStateColor': The color indicating an error state.
|
|
8079
|
-
* - 'highlightColor': The highlight color.
|
|
8080
|
-
* - 'page/innerBorderColor': The color of the inner border of the page.
|
|
8081
|
-
* - 'page/marginFillColor': The color of the margin fill.
|
|
8082
|
-
* - 'page/marginFrameColor': The color of the margin frame.
|
|
8083
|
-
* - 'page/outerBorderColor': The color of the outer border of the page.
|
|
8084
|
-
* - 'page/title/color': The color of the page title.
|
|
8085
|
-
* - 'placeholderHighlightColor': The highlight color for placeholders.
|
|
8086
|
-
* - 'progressColor': The color indicating progress.
|
|
8087
|
-
* - 'rotationSnappingGuideColor': The color of the rotation snapping guide.
|
|
8088
|
-
* - 'ruleOfThirdsLineColor': The color of the rule of thirds lines.
|
|
8089
|
-
* - 'snappingGuideColor': The color of the snapping guide.
|
|
8090
|
-
* - 'textVariableHighlightColor': The highlight color for text variables.
|
|
8091
|
-
*
|
|
8092
|
-
* @public
|
|
8093
|
-
*/
|
|
8094
|
-
export declare type SettingsColor = 'borderOutlineColor' | 'clearColor' | 'colorMaskingSettings/maskColor' | 'cropOverlayColor' | 'errorStateColor' | 'highlightColor' | 'page/innerBorderColor' | 'page/marginFillColor' | 'page/marginFrameColor' | 'page/outerBorderColor' | 'page/title/color' | 'placeholderHighlightColor' | 'progressColor' | 'rotationSnappingGuideColor' | 'ruleOfThirdsLineColor' | 'snappingGuideColor' | 'textVariableHighlightColor';
|
|
8272
|
+
* @deprecated Use keyof Settings or extract the boolean keys from Settings instead.
|
|
8273
|
+
* @public
|
|
8274
|
+
*/
|
|
8275
|
+
export declare type SettingsBool = {
|
|
8276
|
+
[K in keyof Settings]: Settings[K] extends boolean ? K : never;
|
|
8277
|
+
}[keyof Settings];
|
|
8095
8278
|
|
|
8096
8279
|
/**
|
|
8097
8280
|
* Represents the color settings available in the editor.
|
|
8098
8281
|
*
|
|
8099
|
-
* @
|
|
8100
|
-
*
|
|
8101
|
-
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
|
|
8107
|
-
*
|
|
8108
|
-
* - 'page/marginFillColor': The color of the margin fill.
|
|
8109
|
-
* - 'page/marginFrameColor': The color of the margin frame.
|
|
8110
|
-
* - 'page/outerBorderColor': The color of the outer border of the page.
|
|
8111
|
-
* - 'page/title/color': The color of the page title.
|
|
8112
|
-
* - 'placeholderHighlightColor': The highlight color for placeholders.
|
|
8113
|
-
* - 'progressColor': The color indicating progress.
|
|
8114
|
-
* - 'rotationSnappingGuideColor': The color of the rotation snapping guide.
|
|
8115
|
-
* - 'ruleOfThirdsLineColor': The color of the rule of thirds lines.
|
|
8116
|
-
* - 'snappingGuideColor': The color of the snapping guide.
|
|
8117
|
-
* - 'textVariableHighlightColor': The highlight color for text variables.
|
|
8282
|
+
* @deprecated Use keyof Settings or extract the color keys from Settings instead.
|
|
8283
|
+
* @public
|
|
8284
|
+
*/
|
|
8285
|
+
export declare type SettingsColor = {
|
|
8286
|
+
[K in keyof Settings]: Settings[K] extends Color ? K : never;
|
|
8287
|
+
}[keyof Settings];
|
|
8288
|
+
|
|
8289
|
+
/**
|
|
8290
|
+
* Represents the color settings available in the editor.
|
|
8118
8291
|
*
|
|
8119
8292
|
* @public
|
|
8120
8293
|
* @deprecated Use SettingsColor instead.
|
|
@@ -8124,50 +8297,37 @@ export declare type SettingsColorRGBA = SettingsColor;
|
|
|
8124
8297
|
/**
|
|
8125
8298
|
* Represents the enum settings available in the editor.
|
|
8126
8299
|
*
|
|
8127
|
-
*
|
|
8128
|
-
* - 'doubleClickSelectionMode': The mode for double-click selection.
|
|
8129
|
-
* - 'touch/pinchAction': The action for pinch gestures.
|
|
8130
|
-
* - 'touch/rotateAction': The action for rotate gestures.
|
|
8131
|
-
* - 'camera/clamping/overshootMode': The mode for camera clamping overshoot.
|
|
8132
|
-
*
|
|
8300
|
+
* @deprecated Use keyof Settings or extract the enum keys from Settings instead.
|
|
8133
8301
|
* @public
|
|
8134
8302
|
*/
|
|
8135
|
-
export declare type SettingsEnum =
|
|
8136
|
-
doubleClickSelectionMode: 'Direct' | 'Hierarchical';
|
|
8137
|
-
'touch/pinchAction': 'None' | 'Zoom' | 'Scale';
|
|
8138
|
-
'touch/rotateAction': 'None' | 'Rotate';
|
|
8139
|
-
'camera/clamping/overshootMode': 'Center' | 'Reverse';
|
|
8140
|
-
};
|
|
8303
|
+
export declare type SettingsEnum = Pick<Settings, 'doubleClickSelectionMode' | 'touch/pinchAction' | 'touch/rotateAction' | 'camera/clamping/overshootMode'>;
|
|
8141
8304
|
|
|
8142
8305
|
/**
|
|
8143
8306
|
* Represents the float settings available in the editor.
|
|
8144
8307
|
*
|
|
8145
|
-
* @
|
|
8146
|
-
*
|
|
8147
|
-
|
|
8148
|
-
|
|
8149
|
-
|
|
8308
|
+
* @deprecated Use keyof Settings or extract the float keys from Settings instead.
|
|
8309
|
+
* @public
|
|
8310
|
+
*/
|
|
8311
|
+
export declare type SettingsFloat = Exclude<{
|
|
8312
|
+
[K in keyof Settings]: Settings[K] extends number ? K : never;
|
|
8313
|
+
}[keyof Settings], SettingsInt>;
|
|
8314
|
+
|
|
8315
|
+
/**
|
|
8316
|
+
* Represents the integer settings available in the editor.
|
|
8150
8317
|
*
|
|
8151
8318
|
* @public
|
|
8152
8319
|
*/
|
|
8153
|
-
export declare type
|
|
8320
|
+
export declare type SettingsInt = 'maxImageSize';
|
|
8154
8321
|
|
|
8155
8322
|
/**
|
|
8156
8323
|
* Represents the string settings available in the editor.
|
|
8157
8324
|
*
|
|
8158
|
-
* @
|
|
8159
|
-
* Defines the possible string settings in the editor.
|
|
8160
|
-
* - 'basePath': The base path for resources.
|
|
8161
|
-
* - 'defaultEmojiFontFileUri': The default URI for the emoji font file.
|
|
8162
|
-
* - 'defaultFontFileUri': The default URI for the font file.
|
|
8163
|
-
* - 'license': The license key.
|
|
8164
|
-
* - 'page/title/fontFileUri': The URI for the page title font file.
|
|
8165
|
-
* - 'page/title/separator': The separator for the page title.
|
|
8166
|
-
* - 'fallbackFontUri': The URI for the fallback font.
|
|
8167
|
-
*
|
|
8325
|
+
* @deprecated Use keyof Settings or extract the string keys from Settings instead.
|
|
8168
8326
|
* @public
|
|
8169
8327
|
*/
|
|
8170
|
-
export declare type SettingsString =
|
|
8328
|
+
export declare type SettingsString = Exclude<{
|
|
8329
|
+
[K in keyof Settings]: Settings[K] extends string ? K : never;
|
|
8330
|
+
}[keyof Settings], keyof SettingsEnum | 'renderMode'>;
|
|
8171
8331
|
|
|
8172
8332
|
/**
|
|
8173
8333
|
* Represents the type of a setting.
|
|
@@ -8185,6 +8345,12 @@ export declare type SettingsString = 'basePath' | 'defaultEmojiFontFileUri' | 'd
|
|
|
8185
8345
|
*/
|
|
8186
8346
|
export declare type SettingType = 'Bool' | 'Int' | 'Float' | 'String' | 'Color' | 'Enum';
|
|
8187
8347
|
|
|
8348
|
+
/**
|
|
8349
|
+
* Gets the value type for a specific setting key.
|
|
8350
|
+
* @public
|
|
8351
|
+
*/
|
|
8352
|
+
export declare type SettingValueType<K extends SettingKey> = Settings[K];
|
|
8353
|
+
|
|
8188
8354
|
/**
|
|
8189
8355
|
* The block type IDs for the shape blocks. These are the IDs used to create new shapes
|
|
8190
8356
|
* using `cesdk.engine.block.createShape(id)`.
|