@cesdk/engine 1.15.0-rc.1 → 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.
@@ -2294,17 +2369,39 @@ declare interface ChannelSync<Out, In = Out> extends Channel<Out, In> {
2294
2369
  value: () => Out;
2295
2370
  }
2296
2371
 
2372
+ /**
2373
+ * @public
2374
+ */
2375
+ export declare type CMYK = [c: number, m: number, y: number, k: number];
2376
+
2297
2377
  /**
2298
2378
  * All components between 0 and 1
2299
2379
  * @public
2300
2380
  */
2301
2381
  export declare interface CMYKColor {
2382
+ /** Cyan */
2302
2383
  c: number;
2384
+ /** Magenta */
2303
2385
  m: number;
2386
+ /** Yellow */
2304
2387
  y: number;
2388
+ /** Black */
2305
2389
  k: number;
2390
+ /** The tint factor */
2391
+ tint: number;
2306
2392
  }
2307
2393
 
2394
+ /**
2395
+ * A type alias for all color types supported by the engine.
2396
+ * @public
2397
+ */
2398
+ export declare type Color = RGBAColor | CMYKColor | SpotColor;
2399
+
2400
+ /**
2401
+ * @public
2402
+ */
2403
+ export declare type ColorSpace = 'sRGB' | 'CMYK' | 'SpotColor';
2404
+
2308
2405
  /**
2309
2406
  * Asset results that are returned from the engine.
2310
2407
  *
@@ -2728,7 +2825,7 @@ export declare type CutoutType = 'Solid' | 'Dashed';
2728
2825
  /**
2729
2826
  * @public
2730
2827
  */
2731
- export declare type DefaultAssetSourceId = 'ly.img.sticker' | 'ly.img.vectorpath' | 'ly.img.filter.lut' | 'ly.img.filter.duotone';
2828
+ export declare type DefaultAssetSourceId = 'ly.img.sticker' | 'ly.img.vectorpath' | 'ly.img.filter.lut' | 'ly.img.filter.duotone' | 'ly.img.colors.defaultPalette';
2732
2829
 
2733
2830
  /**
2734
2831
  * @public
@@ -3032,6 +3129,13 @@ export declare class EditorAPI {
3032
3129
  * @returns A result holding a float array of the four color components.
3033
3130
  */
3034
3131
  getSpotColorRGBA(name: string): RGBA;
3132
+ /**
3133
+ * Queries the CMYK representation set for a spot color.
3134
+ * If the value of the queried spot color has not been set yet, returns the default CMYK representation (of magenta).
3135
+ * @param name - The name of a spot color.
3136
+ * @returns A result holding a float array of the four color components.
3137
+ */
3138
+ getSpotColorCMYK(name: string): CMYK;
3035
3139
  /**
3036
3140
  * Sets the RGB representation of a spot color.
3037
3141
  * Use this function to both create a new spot color or update an existing spot color.
@@ -3041,6 +3145,16 @@ export declare class EditorAPI {
3041
3145
  * @param b - The blue color component in the range of 0 to 1.
3042
3146
  */
3043
3147
  setSpotColorRGB(name: string, r: number, g: number, b: number): void;
3148
+ /**
3149
+ * Sets the CMYK representation of a spot color.
3150
+ * Use this function to both create a new spot color or update an existing spot color.
3151
+ * @param name - The name of a spot color.
3152
+ * @param c - The cyan color component in the range of 0 to 1.
3153
+ * @param m - The magenta color component in the range of 0 to 1.
3154
+ * @param y - The yellow color component in the range of 0 to 1.
3155
+ * @param k - The key color component in the range of 0 to 1.
3156
+ */
3157
+ setSpotColorCMYK(name: string, c: number, m: number, y: number, k: number): void;
3044
3158
  /**
3045
3159
  * Removes a spot color from the list of set spot colors.
3046
3160
  * @param name - The name of a spot color.
@@ -3060,6 +3174,15 @@ export declare class EditorAPI {
3060
3174
  * @returns The color spot name.
3061
3175
  */
3062
3176
  getSpotColorForCutoutType(type: CutoutType): string;
3177
+ /**
3178
+ * Converts a color to the given color space.
3179
+ * @param color - The color to convert.
3180
+ * @param colorSpace - The color space to convert to.
3181
+ * @returns The converted color.
3182
+ */
3183
+ convertColorToColorSpace(color: Color, colorSpace: 'sRGB'): RGBAColor;
3184
+ convertColorToColorSpace(color: Color, colorSpace: 'CMYK'): CMYKColor;
3185
+ convertColorToColorSpace(color: Color, colorSpace: ColorSpace): never;
3063
3186
  }
3064
3187
 
3065
3188
  /**
@@ -3170,7 +3293,7 @@ export declare type FontWeight = 'thin' | 'extraLight' | 'Light' | 'normal' | 'm
3170
3293
  /** @public */
3171
3294
  export declare interface GradientColorStop {
3172
3295
  /** A color value within a gradient. */
3173
- color: RGBAColor | SpotColor;
3296
+ color: Color;
3174
3297
  /** The relative position of the color within the gradient in the range [0, 1]. */
3175
3298
  stop: number;
3176
3299
  }
@@ -3407,9 +3530,13 @@ export declare type RGBA = [r: number, g: number, b: number, a: number];
3407
3530
  * @public
3408
3531
  */
3409
3532
  export declare interface RGBAColor {
3533
+ /** Red */
3410
3534
  r: number;
3535
+ /** Green */
3411
3536
  g: number;
3537
+ /** Blue */
3412
3538
  b: number;
3539
+ /** Alpha */
3413
3540
  a: number;
3414
3541
  }
3415
3542
 
@@ -3418,8 +3545,11 @@ export declare interface RGBAColor {
3418
3545
  * @public
3419
3546
  */
3420
3547
  export declare interface RGBColor {
3548
+ /** Red */
3421
3549
  r: number;
3550
+ /** Green */
3422
3551
  g: number;
3552
+ /** Blue */
3423
3553
  b: number;
3424
3554
  }
3425
3555
 
@@ -3532,20 +3662,22 @@ export declare class SceneAPI {
3532
3662
  */
3533
3663
  getPages(): DesignBlockId[];
3534
3664
  /**
3535
- * Sets the zoom level of the active scene.
3536
- * Only has an effect if the zoom level is not handled by the UI.
3665
+ * Set the zoom level of the scene, e.g., for headless versions.
3666
+ * This only shows an effect if the zoom level is not handled/overwritten by the UI.
3667
+ * Setting a zoom level of 2.0f results in one dot in the design to be two pixels on the screen.
3537
3668
  *
3538
3669
  * @param zoomLevel - The new zoom level.
3539
3670
  */
3540
3671
  setZoomLevel(zoomLevel?: number): void;
3541
3672
  /**
3542
- * Query a camera zoom level of the active scene.
3673
+ * 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
3674
+ * on the screen.
3543
3675
  * @returns The zoom level of the block's camera.
3544
3676
  */
3545
3677
  getZoomLevel(): number;
3546
3678
  /**
3547
3679
  * Sets the zoom and focus to show a block.
3548
- * Only has an effect if the zoom level is not handled by the UI.
3680
+ * This only shows an effect if the zoom level is not handled/overwritten by the UI.
3549
3681
  * Without padding, this results in a tight view on the block.
3550
3682
  *
3551
3683
  * @param id - The block that should be focused on.
@@ -3558,7 +3690,7 @@ export declare class SceneAPI {
3558
3690
  zoomToBlock(id: DesignBlockId, paddingLeft?: number, paddingTop?: number, paddingRight?: number, paddingBottom?: number): Promise<void>;
3559
3691
  /**
3560
3692
  * Continually adjusts the zoom level to fit the width or height of a block's axis-aligned bounding box.
3561
- * Only has an effect if the zoom level is not handled by the UI.
3693
+ * This only shows an effect if the zoom level is not handled/overwritten by the UI.
3562
3694
  * Without padding, this results in a tight view on the block.
3563
3695
  * No more than one block per scene can have zoom auto-fit enabled.
3564
3696
  * Calling `setZoomLevel` or `zoomToBlock` disables the continuous adjustment.
@@ -3571,7 +3703,7 @@ export declare class SceneAPI {
3571
3703
  enableZoomAutoFit(id: DesignBlockId, axis: 'Horizontal' | 'Vertical', paddingBefore?: number, paddingAfter?: number): void;
3572
3704
  /**
3573
3705
  * Continually adjusts the zoom level to fit the width or height of a block's axis-aligned bounding box.
3574
- * Only has an effect if the zoom level is not handled by the UI.
3706
+ * This only shows an effect if the zoom level is not handled/overwritten by the UI.
3575
3707
  * Without padding, this results in a tight view on the block.
3576
3708
  * Calling `setZoomLevel` or `zoomToBlock` disables the continuous adjustment.
3577
3709
  *
@@ -3586,17 +3718,69 @@ export declare class SceneAPI {
3586
3718
  /**
3587
3719
  * Disables any previously set zoom auto-fit.
3588
3720
  *
3589
- * @param blockOrScene - The scene or a block in the scene for which to disable a zoom auto-fit.
3721
+ * @param blockOrScene - The scene or a block in the scene for which to disable zoom auto-fit.
3590
3722
  */
3591
3723
  disableZoomAutoFit(blockOrScene: DesignBlockId): void;
3592
3724
  /**
3593
3725
  * Queries whether zoom auto-fit is enabled.
3594
3726
  *
3595
- * @param blockOrScene - The scene or a block in the scene for which to disable a zoom auto-fit.
3727
+ * @param blockOrScene - The scene or a block in the scene for which to query the zoom auto-fit.
3596
3728
  * @returns True if the given block has auto-fit set or the scene contains a block for which auto-fit is set, false
3597
3729
  * otherwise.
3598
3730
  */
3599
3731
  isZoomAutoFitEnabled(blockOrScene: DesignBlockId): boolean;
3732
+ /**
3733
+ * Continually ensures the camera position to be within the width and height of a block's axis-aligned bounding box.
3734
+ * Without padding, this results in a tight clamp on the block. With padding, the padded part of the
3735
+ * block is ensured to be visible. No more than one block per scene can have camera position clamping enabled.
3736
+ *
3737
+ * @param id - The block for which the camera position is adjusted to, usually, the scene or a page.
3738
+ * @param paddingLeft - Optional padding in screen pixels to the left of the block.
3739
+ * @param paddingTop - Optional padding in screen pixels to the top of the block.
3740
+ * @param paddingRight - Optional padding in screen pixels to the right of the block.
3741
+ * @param paddingBottom - Optional padding in screen pixels to the bottom of the block.
3742
+ * @param scaledPaddingLeft - Optional padding in pixels to the left of the block that scales with the zoom level.
3743
+ * @param scaledPaddingTop - Optional padding in pixels to the top of the block that scales with the zoom level.
3744
+ * @param scaledPaddingRight - Optional padding in pixels to the right of the block that scales with the zoom level.
3745
+ * @param scaledPaddingBottom - Optional padding in pixels to the bottom of the block that scales with the zoom level.
3746
+ */
3747
+ unstable_enableCameraPositionClamping(id: DesignBlockId, paddingLeft?: number, paddingTop?: number, paddingRight?: number, paddingBottom?: number, scaledPaddingLeft?: number, scaledPaddingTop?: number, scaledPaddingRight?: number, scaledPaddingBottom?: number): void;
3748
+ /**
3749
+ * Disables any previously set position clamping for the current scene.
3750
+ */
3751
+ unstable_disableCameraPositionClamping(): void;
3752
+ /**
3753
+ * Queries whether position clamping is enabled.
3754
+ *
3755
+ * @param blockOrScene - Optionally, the scene or a block in the scene for which to query the position clamping.
3756
+ * @returns True if the given block has position clamping set or the scene contains a block for which position clamping is set, false
3757
+ * otherwise.
3758
+ */
3759
+ unstable_isCameraPositionClampingEnabled(blockOrScene?: number | null): boolean;
3760
+ /**
3761
+ * Continually ensures the zoom level of the camera in the active scene to be in the given range.
3762
+ *
3763
+ * @param id - The block for which the camera zoom limits are adjusted to, usually, the scene or a page.
3764
+ * @param minZoomLimit - The minimum zoom level limit when zooming out, unlimited when negative.
3765
+ * @param maxZoomLimit - The maximum zoom level limit when zooming in, unlimited when negative.
3766
+ * @param paddingLeft - Optional padding in screen pixels to the left of the block. Only applied when the block is not a camera.
3767
+ * @param paddingTop - Optional padding in screen pixels to the top of the block. Only applied when the block is not a camera.
3768
+ * @param paddingRight - Optional padding in screen pixels to the right of the block. Only applied when the block is not a camera.
3769
+ * @param paddingBottom - Optional padding in screen pixels to the bottom of the block. Only applied when the block is not a camera.
3770
+ *
3771
+ */
3772
+ unstable_enableCameraZoomClamping(id: DesignBlockId, minZoomLimit?: number, maxZoomLimit?: number, paddingLeft?: number, paddingTop?: number, paddingRight?: number, paddingBottom?: number): void;
3773
+ /**
3774
+ * Disables any previously set zoom clamping for the current scene.
3775
+ */
3776
+ unstable_disableCameraZoomClamping(): void;
3777
+ /**
3778
+ * Queries whether zoom clamping is enabled.
3779
+ *
3780
+ * @param blockOrScene - Optionally, the scene or a block for which to query the zoom clamping.
3781
+ * @returns True if the given block has zoom clamping set or the scene contains a block for which zoom clamping is set, false otherwise.
3782
+ */
3783
+ unstable_isCameraZoomClampingEnabled(blockOrScene?: number | null): boolean;
3600
3784
  /**
3601
3785
  * Subscribe to changes to the zoom level.
3602
3786
  * @param callback - This function is called at the end of the engine update, if the zoom level has changed.
@@ -3634,6 +3818,8 @@ export declare type SettingsColorRGBA = 'clearColor' | 'errorStateColor' | 'high
3634
3818
  export declare type SettingsEnum = {
3635
3819
  role: RoleString;
3636
3820
  doubleClickSelectionMode: 'Direct' | 'Hierarchical';
3821
+ 'touch/pinchAction': 'None' | 'Zoom' | 'Scale';
3822
+ 'touch/rotateAction': 'None' | 'Rotate';
3637
3823
  [key: ArbitraryString]: string;
3638
3824
  };
3639
3825
 
@@ -3675,10 +3861,8 @@ declare type Source<T> = (handler: Handler<T>) => UnsubscribeFn;
3675
3861
  /** @public */
3676
3862
  export declare interface SpotColor {
3677
3863
  name: string;
3678
- }
3679
-
3680
- declare interface SpotColorLookup {
3681
- getSpotColorRGBA(name: string): [r: number, g: number, b: number, a: number];
3864
+ tint: number;
3865
+ externalReference: string;
3682
3866
  }
3683
3867
 
3684
3868
  /** @public */