@cesdk/engine 1.16.0-rc.0 → 1.16.0-rc.1
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.16.0-rc.0-a821882f38d24e1bf85a.wasm → cesdk-v1.16.0-rc.1-cefd99db0340d54cbd0d.wasm} +0 -0
- package/index.d.ts +56 -6
- package/index.js +1 -1
- package/package.json +1 -1
- /package/assets/core/{cesdk-v1.16.0-rc.0-7a4b44a70a18a86d7978.data → cesdk-v1.16.0-rc.1-7a4b44a70a18a86d7978.data} +0 -0
|
Binary file
|
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
|
|
1533
|
-
* @returns The
|
|
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
|
|
1614
|
-
* @returns The
|
|
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.
|
|
@@ -3026,6 +3056,18 @@ export declare class EditorAPI {
|
|
|
3026
3056
|
* @throws An error, if the keypath is invalid.
|
|
3027
3057
|
*/
|
|
3028
3058
|
getSettingString(keypath: SettingsString): string;
|
|
3059
|
+
/**
|
|
3060
|
+
* Set a color setting.
|
|
3061
|
+
* @param keypath - The settings keypath, e.g. `highlightColor`.
|
|
3062
|
+
* @param value - The The value to set.
|
|
3063
|
+
*/
|
|
3064
|
+
setSettingColor(keypath: SettingsColor, value: Color): void;
|
|
3065
|
+
/**
|
|
3066
|
+
* Get a color setting.
|
|
3067
|
+
* @param keypath - The settings keypath, e.g. `highlightColor`.
|
|
3068
|
+
* @throws An error, if the keypath is invalid.
|
|
3069
|
+
*/
|
|
3070
|
+
getSettingColor(keypath: SettingsColor): Color;
|
|
3029
3071
|
/**
|
|
3030
3072
|
* Set a color setting.
|
|
3031
3073
|
* @param keypath - The settings keypath, e.g. `highlightColor`.
|
|
@@ -3033,12 +3075,14 @@ export declare class EditorAPI {
|
|
|
3033
3075
|
* @param g - The green color component in the range of 0 to 1.
|
|
3034
3076
|
* @param b - The blue color component in the range of 0 to 1.
|
|
3035
3077
|
* @param a - The alpha color component in the range of 0 to 1.
|
|
3078
|
+
* @deprecated Use setSettingColor() instead.
|
|
3036
3079
|
*/
|
|
3037
3080
|
setSettingColorRGBA(keypath: SettingsColorRGBA, r: number, g: number, b: number, a?: number): void;
|
|
3038
3081
|
/**
|
|
3039
3082
|
* Get a color setting.
|
|
3040
3083
|
* @param keypath - The settings keypath, e.g. `highlightColor`.
|
|
3041
3084
|
* @returns A tuple of channels red, green, blue and alpha in the range of 0 to 1.
|
|
3085
|
+
* @deprecated Use getSettingColor() instead.
|
|
3042
3086
|
*/
|
|
3043
3087
|
getSettingColorRGBA(keypath: SettingsColorRGBA): RGBA;
|
|
3044
3088
|
/**
|
|
@@ -3811,8 +3855,14 @@ export declare type SceneMode = 'Design' | 'Video';
|
|
|
3811
3855
|
/** @public */
|
|
3812
3856
|
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;
|
|
3813
3857
|
|
|
3814
|
-
/** @public
|
|
3815
|
-
|
|
3858
|
+
/** @public
|
|
3859
|
+
*/
|
|
3860
|
+
declare type SettingsColor = 'clearColor' | 'errorStateColor' | 'highlightColor' | 'page/title/color' | 'placeholderHighlightColor' | 'progressColor' | ArbitraryString;
|
|
3861
|
+
|
|
3862
|
+
/** @public
|
|
3863
|
+
* @deprecated Use SettingsColor instead.
|
|
3864
|
+
*/
|
|
3865
|
+
export declare type SettingsColorRGBA = SettingsColor;
|
|
3816
3866
|
|
|
3817
3867
|
/** @public */
|
|
3818
3868
|
export declare type SettingsEnum = {
|