@cesdk/node 1.16.0-rc.0 → 1.16.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.
@@ -4,8 +4,8 @@
4
4
  "assets": [
5
5
  {
6
6
  "id": "ly.img.colors.defaultPalette-white",
7
- "label": { "en": "#FFFFFF" },
8
- "tags": { "en": ["white"] },
7
+ "label": { "en": "#FFFFFF", "de": "#FFFFFF" },
8
+ "tags": { "en": ["white"], "de": ["weiß"] },
9
9
  "payload": {
10
10
  "color": {
11
11
  "colorSpace": "sRGB",
@@ -17,8 +17,8 @@
17
17
  },
18
18
  {
19
19
  "id": "ly.img.colors.defaultPalette-black",
20
- "label": { "en": "#000000" },
21
- "tags": { "en": ["black"] },
20
+ "label": { "en": "#000000", "de": "#000000" },
21
+ "tags": { "en": ["black"], "de": ["schwarz"] },
22
22
  "payload": {
23
23
  "color": {
24
24
  "colorSpace": "sRGB",
@@ -30,8 +30,8 @@
30
30
  },
31
31
  {
32
32
  "id": "ly.img.colors.defaultPalette-cornflower-blue",
33
- "label": { "en": "#6686FF" },
34
- "tags": { "en": ["cornflower blue"] },
33
+ "label": { "en": "#6686FF", "de": "#6686FF" },
34
+ "tags": { "en": ["cornflower blue"], "de": ["Kornblumenblau"] },
35
35
  "payload": {
36
36
  "color": {
37
37
  "colorSpace": "sRGB",
@@ -43,8 +43,8 @@
43
43
  },
44
44
  {
45
45
  "id": "ly.img.colors.defaultPalette-light-blue",
46
- "label": { "en": "#66CCFF" },
47
- "tags": { "en": ["light blue"] },
46
+ "label": { "en": "#66CCFF", "de": "#66CCFF" },
47
+ "tags": { "en": ["light blue"], "de": ["hellblau"] },
48
48
  "payload": {
49
49
  "color": {
50
50
  "colorSpace": "sRGB",
@@ -56,8 +56,8 @@
56
56
  },
57
57
  {
58
58
  "id": "ly.img.colors.defaultPalette-turquoise",
59
- "label": { "en": "#54FFEA" },
60
- "tags": { "en": ["turquoise"] },
59
+ "label": { "en": "#54FFEA", "de": "#54FFEA" },
60
+ "tags": { "en": ["turquoise"], "de": ["türkis"] },
61
61
  "payload": {
62
62
  "color": {
63
63
  "colorSpace": "sRGB",
@@ -69,8 +69,8 @@
69
69
  },
70
70
  {
71
71
  "id": "ly.img.colors.defaultPalette-indian-red",
72
- "label": { "en": "#E75050" },
73
- "tags": { "en": ["indian red"] },
72
+ "label": { "en": "#E75050", "de": "#E75050" },
73
+ "tags": { "en": ["indian red"], "de": ["Nachsommerrot"] },
74
74
  "payload": {
75
75
  "color": {
76
76
  "colorSpace": "sRGB",
@@ -82,8 +82,8 @@
82
82
  },
83
83
  {
84
84
  "id": "ly.img.colors.defaultPalette-coral",
85
- "label": { "en": "#F28855" },
86
- "tags": { "en": ["coral"] },
85
+ "label": { "en": "#F28855", "de": "#F28855" },
86
+ "tags": { "en": ["coral"], "de": ["Koralle"] },
87
87
  "payload": {
88
88
  "color": {
89
89
  "colorSpace": "sRGB",
@@ -95,8 +95,8 @@
95
95
  },
96
96
  {
97
97
  "id": "ly.img.colors.defaultPalette-khaki",
98
- "label": { "en": "#FFF763" },
99
- "tags": { "en": ["khaki"] },
98
+ "label": { "en": "#FFF763", "de": "#FFF763" },
99
+ "tags": { "en": ["yellow"], "de": ["Gelb"] },
100
100
  "payload": {
101
101
  "color": {
102
102
  "colorSpace": "sRGB",
package/index.d.ts CHANGED
@@ -1480,12 +1480,14 @@ export declare class BlockAPI {
1480
1480
  * @param g - The green color component in the range of 0 to 1.
1481
1481
  * @param b - The blue color component in the range of 0 to 1.
1482
1482
  * @param a - The alpha color component in the range of 0 to 1.
1483
+ * @deprecated Use `Use setColor() with the key path 'backgroundColor/color' instead.`.
1483
1484
  */
1484
1485
  setBackgroundColorRGBA(id: DesignBlockId, r: number, g: number, b: number, a?: number): void;
1485
1486
  /**
1486
1487
  * Get the background color of the given design block.
1487
1488
  * @param id - The block whose background color should be queried.
1488
1489
  * @returns The background color.
1490
+ * @deprecated Use `Use getColor() with the key path 'backgroundColor/color' instead.`.
1489
1491
  */
1490
1492
  getBackgroundColorRGBA(id: DesignBlockId): RGBA;
1491
1493
  /**
@@ -1525,14 +1527,28 @@ export declare class BlockAPI {
1525
1527
  * @param g - The green color component in the range of 0 to 1.
1526
1528
  * @param b - The blue color component in the range of 0 to 1.
1527
1529
  * @param a - The alpha color component in the range of 0 to 1.
1530
+ * @deprecated Use setStrokeColor() instead.
1528
1531
  */
1529
1532
  setStrokeColorRGBA(id: DesignBlockId, r: number, g: number, b: number, a?: number): void;
1533
+ /**
1534
+ * Set the stroke color of the given design block.
1535
+ * @param id - The block whose stroke color should be set.
1536
+ * @param color - The color to set.
1537
+ */
1538
+ setStrokeColor(id: DesignBlockId, color: Color): void;
1530
1539
  /**
1531
1540
  * Get the stroke color of the given design block.
1532
- * @param id - The block whose background color should be queried.
1533
- * @returns The background color.
1541
+ * @param id - The block whose stroke color should be queried.
1542
+ * @returns The stroke color.
1543
+ * @deprecated Use getStrokeColor() instead.
1534
1544
  */
1535
1545
  getStrokeColorRGBA(id: DesignBlockId): RGBA;
1546
+ /**
1547
+ * Get the stroke color of the given design block.
1548
+ * @param id - The block whose stroke color should be queried.
1549
+ * @returns The stroke color.
1550
+ */
1551
+ getStrokeColor(id: DesignBlockId): Color;
1536
1552
  /**
1537
1553
  * Set the stroke width of the given design block.
1538
1554
  * @param id - The block whose stroke width should be set.
@@ -1606,14 +1622,28 @@ export declare class BlockAPI {
1606
1622
  * @param g - The green color component in the range of 0 to 1.
1607
1623
  * @param b - The blue color component in the range of 0 to 1.
1608
1624
  * @param a - The alpha color component in the range of 0 to 1.
1625
+ * @deprecated Use setDropShadowColor() instead.
1609
1626
  */
1610
1627
  setDropShadowColorRGBA(id: DesignBlockId, r: number, g: number, b: number, a?: number): void;
1628
+ /**
1629
+ * Set the drop shadow color of the given design block.
1630
+ * @param id - The block whose drop shadow color should be set.
1631
+ * @param color - The color to set.
1632
+ */
1633
+ setDropShadowColor(id: DesignBlockId, color: Color): void;
1611
1634
  /**
1612
1635
  * Get the drop shadow color of the given design block.
1613
- * @param id - The block whose background color should be queried.
1614
- * @returns The background color.
1636
+ * @param id - The block whose drop shadow color should be queried.
1637
+ * @returns The drop shadow color.
1638
+ * @deprecated Use getDropShadowColor() instead.
1615
1639
  */
1616
1640
  getDropShadowColorRGBA(id: DesignBlockId): RGBA;
1641
+ /**
1642
+ * Get the drop shadow color of the given design block.
1643
+ * @param id - The block whose drop shadow color should be queried.
1644
+ * @returns The drop shadow color.
1645
+ */
1646
+ getDropShadowColor(id: DesignBlockId): Color;
1617
1647
  /**
1618
1648
  * Set the drop shadow's X offset of the given design block.
1619
1649
  * @param id - The block whose drop shadow's X offset should be set.
@@ -2949,6 +2979,18 @@ export declare class EditorAPI {
2949
2979
  * @throws An error, if the keypath is invalid.
2950
2980
  */
2951
2981
  getSettingString(keypath: SettingsString): string;
2982
+ /**
2983
+ * Set a color setting.
2984
+ * @param keypath - The settings keypath, e.g. `highlightColor`.
2985
+ * @param value - The The value to set.
2986
+ */
2987
+ setSettingColor(keypath: SettingsColor, value: Color): void;
2988
+ /**
2989
+ * Get a color setting.
2990
+ * @param keypath - The settings keypath, e.g. `highlightColor`.
2991
+ * @throws An error, if the keypath is invalid.
2992
+ */
2993
+ getSettingColor(keypath: SettingsColor): Color;
2952
2994
  /**
2953
2995
  * Set a color setting.
2954
2996
  * @param keypath - The settings keypath, e.g. `highlightColor`.
@@ -2956,12 +2998,14 @@ export declare class EditorAPI {
2956
2998
  * @param g - The green color component in the range of 0 to 1.
2957
2999
  * @param b - The blue color component in the range of 0 to 1.
2958
3000
  * @param a - The alpha color component in the range of 0 to 1.
3001
+ * @deprecated Use setSettingColor() instead.
2959
3002
  */
2960
3003
  setSettingColorRGBA(keypath: SettingsColorRGBA, r: number, g: number, b: number, a?: number): void;
2961
3004
  /**
2962
3005
  * Get a color setting.
2963
3006
  * @param keypath - The settings keypath, e.g. `highlightColor`.
2964
3007
  * @returns A tuple of channels red, green, blue and alpha in the range of 0 to 1.
3008
+ * @deprecated Use getSettingColor() instead.
2965
3009
  */
2966
3010
  getSettingColorRGBA(keypath: SettingsColorRGBA): RGBA;
2967
3011
  /**
@@ -3634,8 +3678,14 @@ export declare type SceneMode = 'Design' | 'Video';
3634
3678
  /** @public */
3635
3679
  export declare type SettingsBool = 'doubleClickToCropEnabled' | 'features/effectsEnabled' | 'features/hspSelectiveAdjustmentsEnabled' | 'features/layerListEnabled' | 'features/singlePageModeEnabled' | 'features/templatingEnabled' | 'page/dimOutOfPageAreas' | 'page/title/show' | 'placeholderControls/showButton' | 'placeholderControls/showOverlay' | 'showBuildVersion' | 'touch/dragStartCanSelect' | 'touch/singlePointPanning' | 'trackActivePage' | ArbitraryString;
3636
3680
 
3637
- /** @public */
3638
- export declare type SettingsColorRGBA = 'clearColor' | 'errorStateColor' | 'highlightColor' | 'page/title/color' | 'placeholderHighlightColor' | 'progressColor' | ArbitraryString;
3681
+ /** @public
3682
+ */
3683
+ declare type SettingsColor = 'clearColor' | 'errorStateColor' | 'highlightColor' | 'page/title/color' | 'placeholderHighlightColor' | 'progressColor' | ArbitraryString;
3684
+
3685
+ /** @public
3686
+ * @deprecated Use SettingsColor instead.
3687
+ */
3688
+ export declare type SettingsColorRGBA = SettingsColor;
3639
3689
 
3640
3690
  /** @public */
3641
3691
  export declare type SettingsEnum = {