@cesdk/node 1.15.0 → 1.16.0-rc.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.
@@ -0,0 +1,110 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "id": "ly.img.colors.defaultPalette",
4
+ "assets": [
5
+ {
6
+ "id": "ly.img.colors.defaultPalette-white",
7
+ "label": { "en": "#FFFFFF" },
8
+ "tags": { "en": ["white"] },
9
+ "payload": {
10
+ "color": {
11
+ "colorSpace": "sRGB",
12
+ "r": 1,
13
+ "g": 1,
14
+ "b": 1
15
+ }
16
+ }
17
+ },
18
+ {
19
+ "id": "ly.img.colors.defaultPalette-black",
20
+ "label": { "en": "#000000" },
21
+ "tags": { "en": ["black"] },
22
+ "payload": {
23
+ "color": {
24
+ "colorSpace": "sRGB",
25
+ "r": 0,
26
+ "g": 0,
27
+ "b": 0
28
+ }
29
+ }
30
+ },
31
+ {
32
+ "id": "ly.img.colors.defaultPalette-cornflower-blue",
33
+ "label": { "en": "#6686FF" },
34
+ "tags": { "en": ["cornflower blue"] },
35
+ "payload": {
36
+ "color": {
37
+ "colorSpace": "sRGB",
38
+ "r": 0.4,
39
+ "g": 0.5254901961,
40
+ "b": 1
41
+ }
42
+ }
43
+ },
44
+ {
45
+ "id": "ly.img.colors.defaultPalette-light-blue",
46
+ "label": { "en": "#66CCFF" },
47
+ "tags": { "en": ["light blue"] },
48
+ "payload": {
49
+ "color": {
50
+ "colorSpace": "sRGB",
51
+ "r": 0.4,
52
+ "g": 0.8,
53
+ "b": 1
54
+ }
55
+ }
56
+ },
57
+ {
58
+ "id": "ly.img.colors.defaultPalette-turquoise",
59
+ "label": { "en": "#54FFEA" },
60
+ "tags": { "en": ["turquoise"] },
61
+ "payload": {
62
+ "color": {
63
+ "colorSpace": "sRGB",
64
+ "r": 0.3294117647,
65
+ "g": 1,
66
+ "b": 0.9176470588
67
+ }
68
+ }
69
+ },
70
+ {
71
+ "id": "ly.img.colors.defaultPalette-indian-red",
72
+ "label": { "en": "#E75050" },
73
+ "tags": { "en": ["indian red"] },
74
+ "payload": {
75
+ "color": {
76
+ "colorSpace": "sRGB",
77
+ "r": 0.9058823529,
78
+ "g": 0.3137254902,
79
+ "b": 0.3137254902
80
+ }
81
+ }
82
+ },
83
+ {
84
+ "id": "ly.img.colors.defaultPalette-coral",
85
+ "label": { "en": "#F28855" },
86
+ "tags": { "en": ["coral"] },
87
+ "payload": {
88
+ "color": {
89
+ "colorSpace": "sRGB",
90
+ "r": 0.9490196078,
91
+ "g": 0.5333333333,
92
+ "b": 0.3333333333
93
+ }
94
+ }
95
+ },
96
+ {
97
+ "id": "ly.img.colors.defaultPalette-khaki",
98
+ "label": { "en": "#FFF763" },
99
+ "tags": { "en": ["khaki"] },
100
+ "payload": {
101
+ "color": {
102
+ "colorSpace": "sRGB",
103
+ "r": 1,
104
+ "g": 0.968627451,
105
+ "b": 0.3882352941
106
+ }
107
+ }
108
+ }
109
+ ]
110
+ }
package/index.d.ts CHANGED
@@ -14,23 +14,9 @@ export declare interface Asset {
14
14
  /** Groups of the asset. */
15
15
  groups?: AssetGroups;
16
16
  /** Asset-specific and custom meta information */
17
- meta?: {
18
- /** The mime type of this asset or the data behind the asset's uri. */
19
- mimeType?: string;
20
- /** The type id of the design block that should be created from this asset. */
21
- blockType?: string;
22
- fillType?: string;
23
- shapeType?: string;
24
- kind?: string;
25
- uri?: string;
26
- thumbUri?: string;
27
- previewUri?: string;
28
- filename?: string;
29
- vectorPath?: string;
30
- width?: number;
31
- height?: number;
32
- duration?: string;
33
- } & Record<string, unknown>;
17
+ meta?: AssetMetaData;
18
+ /** Structured asset-specific data */
19
+ payload?: AssetPayload;
34
20
  }
35
21
 
36
22
  /**
@@ -156,6 +142,24 @@ export declare class AssetAPI {
156
142
 
157
143
  }
158
144
 
145
+ /**
146
+ * Asset Color payload CMYK representation
147
+ * @public
148
+ */
149
+ export declare interface AssetCMYKColor {
150
+ colorSpace: 'CMYK';
151
+ c: number;
152
+ m: number;
153
+ y: number;
154
+ k: number;
155
+ }
156
+
157
+ /**
158
+ * Asset Color payload
159
+ * @public
160
+ */
161
+ export declare type AssetColor = AssetRGBColor | AssetCMYKColor | AssetSpotColor;
162
+
159
163
  /**
160
164
  * Definition of an asset used if an asset is added to an asset source.
161
165
  * @public
@@ -186,6 +190,36 @@ export declare interface AssetDefinition extends Asset {
186
190
  */
187
191
  export declare type AssetGroups = string[];
188
192
 
193
+ /**
194
+ * AssetColor Meta information
195
+ * @public
196
+ */
197
+ export declare type AssetMetaData = {
198
+ /** The mime type of this asset or the data behind the asset's uri. */
199
+ mimeType?: string;
200
+ /** The type id of the design block that should be created from this asset. */
201
+ blockType?: string;
202
+ fillType?: string;
203
+ shapeType?: string;
204
+ kind?: string;
205
+ uri?: string;
206
+ thumbUri?: string;
207
+ previewUri?: string;
208
+ filename?: string;
209
+ vectorPath?: string;
210
+ width?: number;
211
+ height?: number;
212
+ duration?: string;
213
+ } & Record<string, unknown>;
214
+
215
+ /**
216
+ * Asset payload
217
+ * @public
218
+ */
219
+ export declare interface AssetPayload {
220
+ color?: AssetColor;
221
+ }
222
+
189
223
  /**
190
224
  * Defines a request for querying assets
191
225
  * @public
@@ -269,6 +303,17 @@ declare interface AssetResultUtm {
269
303
  medium: string;
270
304
  }
271
305
 
306
+ /**
307
+ * Asset Color payload RGB representation
308
+ * @public
309
+ */
310
+ export declare interface AssetRGBColor {
311
+ colorSpace: 'sRGB';
312
+ r: number;
313
+ g: number;
314
+ b: number;
315
+ }
316
+
272
317
  /**
273
318
  * A source of assets
274
319
  * @public
@@ -328,6 +373,17 @@ export declare interface AssetSource {
328
373
 
329
374
  declare type _AssetSource = AssetSource;
330
375
 
376
+ /**
377
+ * Asset Color payload SpotColor representation
378
+ * @public
379
+ */
380
+ export declare interface AssetSpotColor {
381
+ colorSpace: 'SpotColor';
382
+ name: string;
383
+ externalReference: string;
384
+ representation: AssetRGBColor | AssetCMYKColor;
385
+ }
386
+
331
387
  /**
332
388
  * Return type of a `findAssets` query.
333
389
  * @public
@@ -527,10 +583,10 @@ export declare class BlockAPI {
527
583
  findByType(type: DesignBlockType): DesignBlockId[];
528
584
  /**
529
585
  * Finds all blocks with the given kind.
530
- * @param type - The kind to search for.
586
+ * @param kind - The kind to search for.
531
587
  * @returns A list of block ids.
532
588
  */
533
- findByKind(kind: DesignBlockType): DesignBlockId[];
589
+ findByKind(kind: string): DesignBlockId[];
534
590
  /**
535
591
  * Return all blocks currently known to the engine.
536
592
  * @returns A list of block ids.
@@ -1054,6 +1110,20 @@ export declare class BlockAPI {
1054
1110
  * @returns The value of the property.
1055
1111
  */
1056
1112
  getString(id: DesignBlockId, property: string): string;
1113
+ /**
1114
+ * Set a color property of the given design block to the given value.
1115
+ * @param id - The block whose property should be set.
1116
+ * @param property - The name of the property to set.
1117
+ * @param value - The value to set.
1118
+ */
1119
+ setColor(id: DesignBlockId, property: string, value: Color): void;
1120
+ /**
1121
+ * Get the value of a color property of the given design block.
1122
+ * @param id - The block whose property should be queried.
1123
+ * @param property - The name of the property to query.
1124
+ * @returns The value of the property.
1125
+ */
1126
+ getColor(id: DesignBlockId, property: string): Color;
1057
1127
  /**
1058
1128
  * Set a color property of the given design block to the given value.
1059
1129
  * @param id - The block whose property should be set.
@@ -1062,6 +1132,7 @@ export declare class BlockAPI {
1062
1132
  * @param g - The green color component in the range of 0 to 1.
1063
1133
  * @param b - The blue color component in the range of 0 to 1.
1064
1134
  * @param a - The alpha color component in the range of 0 to 1.
1135
+ * @deprecated Use setColor() instead.
1065
1136
  */
1066
1137
  setColorRGBA(id: DesignBlockId, property: string, r: number, g: number, b: number, a?: number): void;
1067
1138
  /**
@@ -1069,6 +1140,7 @@ export declare class BlockAPI {
1069
1140
  * @param id - The block whose property should be queried.
1070
1141
  * @param property - The name of the property to query.
1071
1142
  * @returns A tuple of channels red, green, blue and alpha in the range of 0 to 1.
1143
+ * @deprecated Use getColor() instead.
1072
1144
  */
1073
1145
  getColorRGBA(id: DesignBlockId, property: string): RGBA;
1074
1146
  /**
@@ -1077,6 +1149,7 @@ export declare class BlockAPI {
1077
1149
  * @param property - The name of the property to set.
1078
1150
  * @param name - The name of the spot color.
1079
1151
  * @param tint - The tint factor in the range of 0 to 1.
1152
+ * @deprecated Use setColor() instead.
1080
1153
  */
1081
1154
  setColorSpot(id: DesignBlockId, property: string, name: string, tint?: number): void;
1082
1155
  /**
@@ -1084,6 +1157,7 @@ export declare class BlockAPI {
1084
1157
  * @param id - The block whose property should be queried.
1085
1158
  * @param property - The name of the property to query.
1086
1159
  * @returns The name of the spot color.
1160
+ * @deprecated Use getColor() instead.
1087
1161
  */
1088
1162
  getColorSpotName(id: DesignBlockId, property: string): string;
1089
1163
  /**
@@ -1091,6 +1165,7 @@ export declare class BlockAPI {
1091
1165
  * @param id - The block whose property should be queried.
1092
1166
  * @param property - The name of the property to query.
1093
1167
  * @returns The tint factor of the spot color.
1168
+ * @deprecated Use getColor() instead.
1094
1169
  */
1095
1170
  getColorSpotTint(id: DesignBlockId, property: string): number;
1096
1171
  /**
@@ -1659,7 +1734,7 @@ export declare class BlockAPI {
1659
1734
  * If the value is negative and the block is currently being edited, this will fall back to the end of the current cursor index / selected grapheme range.
1660
1735
  * If the value is negative and the block is not being edited, this will fall back to the end of the entire text range.
1661
1736
  */
1662
- setTextColor(id: DesignBlockId, color: RGBAColor | SpotColor, from?: number, to?: number): void;
1737
+ setTextColor(id: DesignBlockId, color: Color, from?: number, to?: number): void;
1663
1738
  /**
1664
1739
  * Returns the ordered unique list of colors of the text in the selected range.
1665
1740
  * @param block - The text block whose colors should be returned.
@@ -1670,7 +1745,7 @@ export declare class BlockAPI {
1670
1745
  * If the value is negative and the block is currently being edited, this will fall back to the end of the current cursor index / selected grapheme range.
1671
1746
  * If the value is negative and the block is not being edited, this will fall back to the end of the entire text range.
1672
1747
  */
1673
- getTextColors(id: DesignBlockId, from?: number, to?: number): Array<RGBAColor | SpotColor>;
1748
+ getTextColors(id: DesignBlockId, from?: number, to?: number): Array<Color>;
1674
1749
  /**
1675
1750
  * Returns the ordered unique list of font weights of the text in the selected range.
1676
1751
  * @param block - The text block whose font weights should be returned.
@@ -2240,17 +2315,39 @@ export declare interface BlockEvent {
2240
2315
  type: 'Created' | 'Updated' | 'Destroyed';
2241
2316
  }
2242
2317
 
2318
+ /**
2319
+ * @public
2320
+ */
2321
+ export declare type CMYK = [c: number, m: number, y: number, k: number];
2322
+
2243
2323
  /**
2244
2324
  * All components between 0 and 1
2245
2325
  * @public
2246
2326
  */
2247
2327
  export declare interface CMYKColor {
2328
+ /** Cyan */
2248
2329
  c: number;
2330
+ /** Magenta */
2249
2331
  m: number;
2332
+ /** Yellow */
2250
2333
  y: number;
2334
+ /** Black */
2251
2335
  k: number;
2336
+ /** The tint factor */
2337
+ tint: number;
2252
2338
  }
2253
2339
 
2340
+ /**
2341
+ * A type alias for all color types supported by the engine.
2342
+ * @public
2343
+ */
2344
+ export declare type Color = RGBAColor | CMYKColor | SpotColor;
2345
+
2346
+ /**
2347
+ * @public
2348
+ */
2349
+ export declare type ColorSpace = 'sRGB' | 'CMYK' | 'SpotColor';
2350
+
2254
2351
  /**
2255
2352
  * Asset results that are returned from the engine.
2256
2353
  *
@@ -2651,7 +2748,7 @@ export declare type CutoutType = 'Solid' | 'Dashed';
2651
2748
  /**
2652
2749
  * @public
2653
2750
  */
2654
- export declare type DefaultAssetSourceId = 'ly.img.sticker' | 'ly.img.vectorpath' | 'ly.img.filter.lut' | 'ly.img.filter.duotone';
2751
+ export declare type DefaultAssetSourceId = 'ly.img.sticker' | 'ly.img.vectorpath' | 'ly.img.filter.lut' | 'ly.img.filter.duotone' | 'ly.img.colors.defaultPalette';
2655
2752
 
2656
2753
  /**
2657
2754
  * @public
@@ -2955,6 +3052,13 @@ export declare class EditorAPI {
2955
3052
  * @returns A result holding a float array of the four color components.
2956
3053
  */
2957
3054
  getSpotColorRGBA(name: string): RGBA;
3055
+ /**
3056
+ * Queries the CMYK representation set for a spot color.
3057
+ * If the value of the queried spot color has not been set yet, returns the default CMYK representation (of magenta).
3058
+ * @param name - The name of a spot color.
3059
+ * @returns A result holding a float array of the four color components.
3060
+ */
3061
+ getSpotColorCMYK(name: string): CMYK;
2958
3062
  /**
2959
3063
  * Sets the RGB representation of a spot color.
2960
3064
  * Use this function to both create a new spot color or update an existing spot color.
@@ -2964,6 +3068,16 @@ export declare class EditorAPI {
2964
3068
  * @param b - The blue color component in the range of 0 to 1.
2965
3069
  */
2966
3070
  setSpotColorRGB(name: string, r: number, g: number, b: number): void;
3071
+ /**
3072
+ * Sets the CMYK representation of a spot color.
3073
+ * Use this function to both create a new spot color or update an existing spot color.
3074
+ * @param name - The name of a spot color.
3075
+ * @param c - The cyan color component in the range of 0 to 1.
3076
+ * @param m - The magenta color component in the range of 0 to 1.
3077
+ * @param y - The yellow color component in the range of 0 to 1.
3078
+ * @param k - The key color component in the range of 0 to 1.
3079
+ */
3080
+ setSpotColorCMYK(name: string, c: number, m: number, y: number, k: number): void;
2967
3081
  /**
2968
3082
  * Removes a spot color from the list of set spot colors.
2969
3083
  * @param name - The name of a spot color.
@@ -2983,6 +3097,15 @@ export declare class EditorAPI {
2983
3097
  * @returns The color spot name.
2984
3098
  */
2985
3099
  getSpotColorForCutoutType(type: CutoutType): string;
3100
+ /**
3101
+ * Converts a color to the given color space.
3102
+ * @param color - The color to convert.
3103
+ * @param colorSpace - The color space to convert to.
3104
+ * @returns The converted color.
3105
+ */
3106
+ convertColorToColorSpace(color: Color, colorSpace: 'sRGB'): RGBAColor;
3107
+ convertColorToColorSpace(color: Color, colorSpace: 'CMYK'): CMYKColor;
3108
+ convertColorToColorSpace(color: Color, colorSpace: ColorSpace): never;
2986
3109
  }
2987
3110
 
2988
3111
  /**
@@ -3093,7 +3216,7 @@ export declare type FontWeight = 'thin' | 'extraLight' | 'Light' | 'normal' | 'm
3093
3216
  /** @public */
3094
3217
  export declare interface GradientColorStop {
3095
3218
  /** A color value within a gradient. */
3096
- color: RGBAColor | SpotColor;
3219
+ color: Color;
3097
3220
  /** The relative position of the color within the gradient in the range [0, 1]. */
3098
3221
  stop: number;
3099
3222
  }
@@ -3230,9 +3353,13 @@ export declare type RGBA = [r: number, g: number, b: number, a: number];
3230
3353
  * @public
3231
3354
  */
3232
3355
  export declare interface RGBAColor {
3356
+ /** Red */
3233
3357
  r: number;
3358
+ /** Green */
3234
3359
  g: number;
3360
+ /** Blue */
3235
3361
  b: number;
3362
+ /** Alpha */
3236
3363
  a: number;
3237
3364
  }
3238
3365
 
@@ -3241,8 +3368,11 @@ export declare interface RGBAColor {
3241
3368
  * @public
3242
3369
  */
3243
3370
  export declare interface RGBColor {
3371
+ /** Red */
3244
3372
  r: number;
3373
+ /** Green */
3245
3374
  g: number;
3375
+ /** Blue */
3246
3376
  b: number;
3247
3377
  }
3248
3378
 
@@ -3355,20 +3485,22 @@ export declare class SceneAPI {
3355
3485
  */
3356
3486
  getPages(): DesignBlockId[];
3357
3487
  /**
3358
- * Sets the zoom level of the active scene.
3359
- * Only has an effect if the zoom level is not handled by the UI.
3488
+ * Set the zoom level of the scene, e.g., for headless versions.
3489
+ * This only shows an effect if the zoom level is not handled/overwritten by the UI.
3490
+ * Setting a zoom level of 2.0f results in one dot in the design to be two pixels on the screen.
3360
3491
  *
3361
3492
  * @param zoomLevel - The new zoom level.
3362
3493
  */
3363
3494
  setZoomLevel(zoomLevel?: number): void;
3364
3495
  /**
3365
- * Query a camera zoom level of the active scene.
3496
+ * Get the zoom level of the scene or for a camera in the scene in unit `dpx/dot`. A zoom level of 2.0 results in one pixel in the design to be two pixels
3497
+ * on the screen.
3366
3498
  * @returns The zoom level of the block's camera.
3367
3499
  */
3368
3500
  getZoomLevel(): number;
3369
3501
  /**
3370
3502
  * Sets the zoom and focus to show a block.
3371
- * Only has an effect if the zoom level is not handled by the UI.
3503
+ * This only shows an effect if the zoom level is not handled/overwritten by the UI.
3372
3504
  * Without padding, this results in a tight view on the block.
3373
3505
  *
3374
3506
  * @param id - The block that should be focused on.
@@ -3381,7 +3513,7 @@ export declare class SceneAPI {
3381
3513
  zoomToBlock(id: DesignBlockId, paddingLeft?: number, paddingTop?: number, paddingRight?: number, paddingBottom?: number): Promise<void>;
3382
3514
  /**
3383
3515
  * Continually adjusts the zoom level to fit the width or height of a block's axis-aligned bounding box.
3384
- * Only has an effect if the zoom level is not handled by the UI.
3516
+ * This only shows an effect if the zoom level is not handled/overwritten by the UI.
3385
3517
  * Without padding, this results in a tight view on the block.
3386
3518
  * No more than one block per scene can have zoom auto-fit enabled.
3387
3519
  * Calling `setZoomLevel` or `zoomToBlock` disables the continuous adjustment.
@@ -3394,7 +3526,7 @@ export declare class SceneAPI {
3394
3526
  enableZoomAutoFit(id: DesignBlockId, axis: 'Horizontal' | 'Vertical', paddingBefore?: number, paddingAfter?: number): void;
3395
3527
  /**
3396
3528
  * Continually adjusts the zoom level to fit the width or height of a block's axis-aligned bounding box.
3397
- * Only has an effect if the zoom level is not handled by the UI.
3529
+ * This only shows an effect if the zoom level is not handled/overwritten by the UI.
3398
3530
  * Without padding, this results in a tight view on the block.
3399
3531
  * Calling `setZoomLevel` or `zoomToBlock` disables the continuous adjustment.
3400
3532
  *
@@ -3409,17 +3541,69 @@ export declare class SceneAPI {
3409
3541
  /**
3410
3542
  * Disables any previously set zoom auto-fit.
3411
3543
  *
3412
- * @param blockOrScene - The scene or a block in the scene for which to disable a zoom auto-fit.
3544
+ * @param blockOrScene - The scene or a block in the scene for which to disable zoom auto-fit.
3413
3545
  */
3414
3546
  disableZoomAutoFit(blockOrScene: DesignBlockId): void;
3415
3547
  /**
3416
3548
  * Queries whether zoom auto-fit is enabled.
3417
3549
  *
3418
- * @param blockOrScene - The scene or a block in the scene for which to disable a zoom auto-fit.
3550
+ * @param blockOrScene - The scene or a block in the scene for which to query the zoom auto-fit.
3419
3551
  * @returns True if the given block has auto-fit set or the scene contains a block for which auto-fit is set, false
3420
3552
  * otherwise.
3421
3553
  */
3422
3554
  isZoomAutoFitEnabled(blockOrScene: DesignBlockId): boolean;
3555
+ /**
3556
+ * Continually ensures the camera position to be within the width and height of a block's axis-aligned bounding box.
3557
+ * Without padding, this results in a tight clamp on the block. With padding, the padded part of the
3558
+ * block is ensured to be visible. No more than one block per scene can have camera position clamping enabled.
3559
+ *
3560
+ * @param id - The block for which the camera position is adjusted to, usually, the scene or a page.
3561
+ * @param paddingLeft - Optional padding in screen pixels to the left of the block.
3562
+ * @param paddingTop - Optional padding in screen pixels to the top of the block.
3563
+ * @param paddingRight - Optional padding in screen pixels to the right of the block.
3564
+ * @param paddingBottom - Optional padding in screen pixels to the bottom of the block.
3565
+ * @param scaledPaddingLeft - Optional padding in pixels to the left of the block that scales with the zoom level.
3566
+ * @param scaledPaddingTop - Optional padding in pixels to the top of the block that scales with the zoom level.
3567
+ * @param scaledPaddingRight - Optional padding in pixels to the right of the block that scales with the zoom level.
3568
+ * @param scaledPaddingBottom - Optional padding in pixels to the bottom of the block that scales with the zoom level.
3569
+ */
3570
+ unstable_enableCameraPositionClamping(id: DesignBlockId, paddingLeft?: number, paddingTop?: number, paddingRight?: number, paddingBottom?: number, scaledPaddingLeft?: number, scaledPaddingTop?: number, scaledPaddingRight?: number, scaledPaddingBottom?: number): void;
3571
+ /**
3572
+ * Disables any previously set position clamping for the current scene.
3573
+ */
3574
+ unstable_disableCameraPositionClamping(): void;
3575
+ /**
3576
+ * Queries whether position clamping is enabled.
3577
+ *
3578
+ * @param blockOrScene - Optionally, the scene or a block in the scene for which to query the position clamping.
3579
+ * @returns True if the given block has position clamping set or the scene contains a block for which position clamping is set, false
3580
+ * otherwise.
3581
+ */
3582
+ unstable_isCameraPositionClampingEnabled(blockOrScene?: number | null): boolean;
3583
+ /**
3584
+ * Continually ensures the zoom level of the camera in the active scene to be in the given range.
3585
+ *
3586
+ * @param id - The block for which the camera zoom limits are adjusted to, usually, the scene or a page.
3587
+ * @param minZoomLimit - The minimum zoom level limit when zooming out, unlimited when negative.
3588
+ * @param maxZoomLimit - The maximum zoom level limit when zooming in, unlimited when negative.
3589
+ * @param paddingLeft - Optional padding in screen pixels to the left of the block. Only applied when the block is not a camera.
3590
+ * @param paddingTop - Optional padding in screen pixels to the top of the block. Only applied when the block is not a camera.
3591
+ * @param paddingRight - Optional padding in screen pixels to the right of the block. Only applied when the block is not a camera.
3592
+ * @param paddingBottom - Optional padding in screen pixels to the bottom of the block. Only applied when the block is not a camera.
3593
+ *
3594
+ */
3595
+ unstable_enableCameraZoomClamping(id: DesignBlockId, minZoomLimit?: number, maxZoomLimit?: number, paddingLeft?: number, paddingTop?: number, paddingRight?: number, paddingBottom?: number): void;
3596
+ /**
3597
+ * Disables any previously set zoom clamping for the current scene.
3598
+ */
3599
+ unstable_disableCameraZoomClamping(): void;
3600
+ /**
3601
+ * Queries whether zoom clamping is enabled.
3602
+ *
3603
+ * @param blockOrScene - Optionally, the scene or a block for which to query the zoom clamping.
3604
+ * @returns True if the given block has zoom clamping set or the scene contains a block for which zoom clamping is set, false otherwise.
3605
+ */
3606
+ unstable_isCameraZoomClampingEnabled(blockOrScene?: number | null): boolean;
3423
3607
  /**
3424
3608
  * Subscribe to changes to the zoom level.
3425
3609
  * @param callback - This function is called at the end of the engine update, if the zoom level has changed.
@@ -3457,6 +3641,8 @@ export declare type SettingsColorRGBA = 'clearColor' | 'errorStateColor' | 'high
3457
3641
  export declare type SettingsEnum = {
3458
3642
  role: RoleString;
3459
3643
  doubleClickSelectionMode: 'Direct' | 'Hierarchical';
3644
+ 'touch/pinchAction': 'None' | 'Zoom' | 'Scale';
3645
+ 'touch/rotateAction': 'None' | 'Rotate';
3460
3646
  [key: ArbitraryString]: string;
3461
3647
  };
3462
3648
 
@@ -3487,10 +3673,8 @@ export declare type SizeMode = 'Absolute' | 'Percent' | 'Auto';
3487
3673
  /** @public */
3488
3674
  export declare interface SpotColor {
3489
3675
  name: string;
3490
- }
3491
-
3492
- declare interface SpotColorLookup {
3493
- getSpotColorRGBA(name: string): [r: number, g: number, b: number, a: number];
3676
+ tint: number;
3677
+ externalReference: string;
3494
3678
  }
3495
3679
 
3496
3680
  /** @public */