@cesdk/node 1.12.1 → 1.13.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.
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -1012,23 +1012,35 @@ export declare class BlockAPI {
|
|
|
1012
1012
|
* @param property - The name of the property to set.
|
|
1013
1013
|
* @param name - The name of the spot color.
|
|
1014
1014
|
* @param tint - The tint factor in the range of 0 to 1.
|
|
1015
|
-
* @returns An empty result on success, an error otherwise.
|
|
1016
1015
|
*/
|
|
1017
1016
|
setColorSpot(id: DesignBlockId, property: string, name: string, tint?: number): void;
|
|
1018
1017
|
/**
|
|
1019
1018
|
* Get the spot color name of a color property of the given design block.
|
|
1020
1019
|
* @param id - The block whose property should be queried.
|
|
1021
1020
|
* @param property - The name of the property to query.
|
|
1022
|
-
* @returns
|
|
1021
|
+
* @returns The name of the spot color.
|
|
1023
1022
|
*/
|
|
1024
1023
|
getColorSpotName(id: DesignBlockId, property: string): string;
|
|
1025
1024
|
/**
|
|
1026
1025
|
* Get the spot color tint factor of a color property of the given design block.
|
|
1027
1026
|
* @param id - The block whose property should be queried.
|
|
1028
1027
|
* @param property - The name of the property to query.
|
|
1029
|
-
* @returns
|
|
1028
|
+
* @returns The tint factor of the spot color.
|
|
1030
1029
|
*/
|
|
1031
1030
|
getColorSpotTint(id: DesignBlockId, property: string): number;
|
|
1031
|
+
/**
|
|
1032
|
+
* Set a gradient color stops property of the given design block.
|
|
1033
|
+
* @param id - The block whose property should be set.
|
|
1034
|
+
* @param property - The name of the property to set.
|
|
1035
|
+
*/
|
|
1036
|
+
setGradientColorStops(id: DesignBlockId, property: string, colors: GradientColorStop[]): void;
|
|
1037
|
+
/**
|
|
1038
|
+
* Get the gradient color stops property of the given design block.
|
|
1039
|
+
* @param id - The block whose property should be queried.
|
|
1040
|
+
* @param property - The name of the property to query.
|
|
1041
|
+
* @returns The gradient colors.
|
|
1042
|
+
*/
|
|
1043
|
+
getGradientColorStops(id: DesignBlockId, property: string): GradientColorStop[];
|
|
1032
1044
|
/**
|
|
1033
1045
|
* Set an enum property of the given design block to the given value.
|
|
1034
1046
|
* @param id - The block whose property should be set.
|
|
@@ -2004,17 +2016,17 @@ export declare class BlockAPI {
|
|
|
2004
2016
|
*/
|
|
2005
2017
|
hasTimeOffset(id: DesignBlockId): boolean;
|
|
2006
2018
|
/**
|
|
2007
|
-
* Set the time offset of the given block
|
|
2008
|
-
* The time offset
|
|
2009
|
-
* The time offset is not supported
|
|
2019
|
+
* Set the time offset of the given block relative to its parent.
|
|
2020
|
+
* The time offset controls when the block is first active in the scene.
|
|
2021
|
+
* The time offset is not supported by the page block.
|
|
2010
2022
|
* @param id - The block whose time offset should be changed.
|
|
2011
2023
|
* @param offset - The new time offset in seconds.
|
|
2012
2024
|
*/
|
|
2013
2025
|
setTimeOffset(id: DesignBlockId, offset: number): void;
|
|
2014
2026
|
/**
|
|
2015
|
-
* Get the time offset of the given block
|
|
2027
|
+
* Get the time offset of the given block relative to its parent.
|
|
2016
2028
|
* @param id - The block whose time offset should be queried.
|
|
2017
|
-
* @returns the time offset of the block
|
|
2029
|
+
* @returns the time offset of the block.
|
|
2018
2030
|
*/
|
|
2019
2031
|
getTimeOffset(id: DesignBlockId): number;
|
|
2020
2032
|
/**
|
|
@@ -2471,11 +2483,6 @@ export declare interface Configuration {
|
|
|
2471
2483
|
* If not configured the fallback value is 'auto'.
|
|
2472
2484
|
*/
|
|
2473
2485
|
audioOutput?: 'auto' | 'none';
|
|
2474
|
-
/**
|
|
2475
|
-
* @deprecated This config key is not used anymore.
|
|
2476
|
-
* You can configure a role via `setSettingEnum('role', role)` in the
|
|
2477
|
-
* EditorAPI.
|
|
2478
|
-
*/
|
|
2479
2486
|
role?: RoleString;
|
|
2480
2487
|
/**
|
|
2481
2488
|
* @deprecated This config key is not used anymore.
|
|
@@ -2631,6 +2638,7 @@ export declare enum DesignBlockType {
|
|
|
2631
2638
|
Camera = "//ly.img.ubq/camera",
|
|
2632
2639
|
Page = "//ly.img.ubq/page",
|
|
2633
2640
|
Image = "//ly.img.ubq/image",
|
|
2641
|
+
Design = "//ly.img.ubq/design",
|
|
2634
2642
|
Video = "//ly.img.ubq/video",
|
|
2635
2643
|
VideoFill = "//ly.img.ubq/fill/video",
|
|
2636
2644
|
ImageFill = "//ly.img.ubq/fill/image",
|
|
@@ -3030,6 +3038,14 @@ export declare type FontStyle = 'normal' | 'italic';
|
|
|
3030
3038
|
/** @public */
|
|
3031
3039
|
export declare type FontWeight = 'thin' | 'extraLight' | 'Light' | 'normal' | 'medium' | 'semiBold' | 'bold' | 'extraBold' | 'heavy';
|
|
3032
3040
|
|
|
3041
|
+
/** @public */
|
|
3042
|
+
export declare interface GradientColorStop {
|
|
3043
|
+
/** A color value within a gradient. */
|
|
3044
|
+
color: RGBAColor | SpotColor;
|
|
3045
|
+
/** The relative position of the color within the gradient in the range [0, 1]. */
|
|
3046
|
+
stop: number;
|
|
3047
|
+
}
|
|
3048
|
+
|
|
3033
3049
|
/**
|
|
3034
3050
|
* @public
|
|
3035
3051
|
*/
|