@cesdk/engine 1.12.0 → 1.13.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.
package/index.d.ts CHANGED
@@ -1014,23 +1014,35 @@ export declare class BlockAPI {
1014
1014
  * @param property - The name of the property to set.
1015
1015
  * @param name - The name of the spot color.
1016
1016
  * @param tint - The tint factor in the range of 0 to 1.
1017
- * @returns An empty result on success, an error otherwise.
1018
1017
  */
1019
1018
  setColorSpot(id: DesignBlockId, property: string, name: string, tint?: number): void;
1020
1019
  /**
1021
1020
  * Get the spot color name of a color property of the given design block.
1022
1021
  * @param id - The block whose property should be queried.
1023
1022
  * @param property - The name of the property to query.
1024
- * @returns A result holding the name of the spot color or an error.
1023
+ * @returns The name of the spot color.
1025
1024
  */
1026
1025
  getColorSpotName(id: DesignBlockId, property: string): string;
1027
1026
  /**
1028
1027
  * Get the spot color tint factor of a color property of the given design block.
1029
1028
  * @param id - The block whose property should be queried.
1030
1029
  * @param property - The name of the property to query.
1031
- * @returns A result holding the tint factor of the spot color or an error.
1030
+ * @returns The tint factor of the spot color.
1032
1031
  */
1033
1032
  getColorSpotTint(id: DesignBlockId, property: string): number;
1033
+ /**
1034
+ * Set a gradient color stops property of the given design block.
1035
+ * @param id - The block whose property should be set.
1036
+ * @param property - The name of the property to set.
1037
+ */
1038
+ setGradientColorStops(id: DesignBlockId, property: string, colors: GradientColorStop[]): void;
1039
+ /**
1040
+ * Get the gradient color stops property of the given design block.
1041
+ * @param id - The block whose property should be queried.
1042
+ * @param property - The name of the property to query.
1043
+ * @returns The gradient colors.
1044
+ */
1045
+ getGradientColorStops(id: DesignBlockId, property: string): GradientColorStop[];
1034
1046
  /**
1035
1047
  * Set an enum property of the given design block to the given value.
1036
1048
  * @param id - The block whose property should be set.
@@ -2006,17 +2018,17 @@ export declare class BlockAPI {
2006
2018
  */
2007
2019
  hasTimeOffset(id: DesignBlockId): boolean;
2008
2020
  /**
2009
- * Set the time offset of the given block in the scene.
2010
- * The time offset defines the point in time at which this block is first active in the scene.
2011
- * The time offset is not supported for page block or their children.
2021
+ * Set the time offset of the given block relative to its parent.
2022
+ * The time offset controls when the block is first active in the scene.
2023
+ * The time offset is not supported by the page block.
2012
2024
  * @param id - The block whose time offset should be changed.
2013
2025
  * @param offset - The new time offset in seconds.
2014
2026
  */
2015
2027
  setTimeOffset(id: DesignBlockId, offset: number): void;
2016
2028
  /**
2017
- * Get the time offset of the given block in the scene.
2029
+ * Get the time offset of the given block relative to its parent.
2018
2030
  * @param id - The block whose time offset should be queried.
2019
- * @returns the time offset of the block in the scene.
2031
+ * @returns the time offset of the block.
2020
2032
  */
2021
2033
  getTimeOffset(id: DesignBlockId): number;
2022
2034
  /**
@@ -2521,11 +2533,6 @@ export declare interface Configuration {
2521
2533
  * If not configured the fallback value is 'auto'.
2522
2534
  */
2523
2535
  audioOutput?: 'auto' | 'none';
2524
- /**
2525
- * @deprecated This config key is not used anymore.
2526
- * You can configure a role via `setSettingEnum('role', role)` in the
2527
- * EditorAPI.
2528
- */
2529
2536
  role?: RoleString;
2530
2537
  /**
2531
2538
  * @deprecated This config key is not used anymore.
@@ -2699,6 +2706,7 @@ export declare enum DesignBlockType {
2699
2706
  Camera = "//ly.img.ubq/camera",
2700
2707
  Page = "//ly.img.ubq/page",
2701
2708
  Image = "//ly.img.ubq/image",
2709
+ Design = "//ly.img.ubq/design",
2702
2710
  Video = "//ly.img.ubq/video",
2703
2711
  VideoFill = "//ly.img.ubq/fill/video",
2704
2712
  ImageFill = "//ly.img.ubq/fill/image",
@@ -3098,6 +3106,14 @@ export declare type FontStyle = 'normal' | 'italic';
3098
3106
  /** @public */
3099
3107
  export declare type FontWeight = 'thin' | 'extraLight' | 'Light' | 'normal' | 'medium' | 'semiBold' | 'bold' | 'extraBold' | 'heavy';
3100
3108
 
3109
+ /** @public */
3110
+ export declare interface GradientColorStop {
3111
+ /** A color value within a gradient. */
3112
+ color: RGBAColor | SpotColor;
3113
+ /** The relative position of the color within the gradient in the range [0, 1]. */
3114
+ stop: number;
3115
+ }
3116
+
3101
3117
  /**
3102
3118
  * @public
3103
3119
  */
package/index.html CHANGED
@@ -1,7 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en">
3
3
  <head>
4
- <title>CESDK Headless</title>
4
+ <title>CE.SDK Headless</title>
5
5
  <meta charset="UTF-8" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <meta http-equiv="X-UA-Compatible" content="ie=edge" />