@cesdk/cesdk-js 1.5.0 → 1.5.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.data +0 -0
- package/assets/core/cesdk.wasm +0 -0
- package/cesdk-engine.umd.d.ts +9 -4
- package/cesdk-engine.umd.js +1 -1
- package/cesdk.umd.js +1 -1
- package/index.d.ts +19 -13
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -189,14 +189,14 @@ export declare class BlockAPI {
|
|
|
189
189
|
* @param type - The type of the block that shall be created.
|
|
190
190
|
* @returns The created blocks handle.
|
|
191
191
|
*/
|
|
192
|
-
create(type:
|
|
192
|
+
create(type: DesignBlockType): DesignElementId;
|
|
193
193
|
/**
|
|
194
194
|
|
|
195
195
|
* Get the type of the given block, fails if the block is invalid.
|
|
196
196
|
* @param id - The block to query.
|
|
197
197
|
* @returns The blocks type.
|
|
198
198
|
*/
|
|
199
|
-
getType(id: DesignElementId):
|
|
199
|
+
getType(id: DesignElementId): DesignBlockType;
|
|
200
200
|
/**
|
|
201
201
|
* Update the selection state of a block.
|
|
202
202
|
* Fails for invalid blocks.
|
|
@@ -266,7 +266,7 @@ export declare class BlockAPI {
|
|
|
266
266
|
* @param type - The type to search for.
|
|
267
267
|
* @returns A list of block ids.
|
|
268
268
|
*/
|
|
269
|
-
findByType(type:
|
|
269
|
+
findByType(type: DesignBlockType): DesignElementId[];
|
|
270
270
|
/**
|
|
271
271
|
* Return all blocks currently known to the engine.
|
|
272
272
|
* @returns A list of block ids.
|
|
@@ -1049,6 +1049,11 @@ declare class CreativeEditorSDK {
|
|
|
1049
1049
|
static PositionMode: typeof PositionMode;
|
|
1050
1050
|
static SizeMode: typeof SizeMode;
|
|
1051
1051
|
static PropertyType: typeof PropertyType;
|
|
1052
|
+
static DesignBlockType: typeof DesignBlockType;
|
|
1053
|
+
static MimeType: typeof MimeType_2;
|
|
1054
|
+
static StrokePosition: typeof StrokePosition;
|
|
1055
|
+
static StrokeCornerGeometry: typeof StrokeCornerGeometry;
|
|
1056
|
+
static StrokeStyle: typeof StrokeStyle;
|
|
1052
1057
|
engine: API;
|
|
1053
1058
|
/**
|
|
1054
1059
|
* Exports one or multiple page(s) as an file in the given mimeType
|
|
@@ -1157,16 +1162,10 @@ declare type DeepPartial<T> = {
|
|
|
1157
1162
|
[P in keyof T]?: DeepPartial<T[P]>;
|
|
1158
1163
|
};
|
|
1159
1164
|
|
|
1160
|
-
/**
|
|
1161
|
-
* A numerical identifier for a design block
|
|
1162
|
-
* @public
|
|
1163
|
-
*/
|
|
1164
|
-
declare type DesignElementId = number;
|
|
1165
|
-
|
|
1166
1165
|
/**
|
|
1167
1166
|
* @public
|
|
1168
1167
|
*/
|
|
1169
|
-
declare enum
|
|
1168
|
+
export declare enum DesignBlockType {
|
|
1170
1169
|
Scene = "//ly.img.ubq/scene",
|
|
1171
1170
|
Camera = "//ly.img.ubq/camera",
|
|
1172
1171
|
Page = "//ly.img.ubq/page",
|
|
@@ -1183,6 +1182,12 @@ declare enum DesignElementType {
|
|
|
1183
1182
|
Group = "//ly.img.ubq/group"
|
|
1184
1183
|
}
|
|
1185
1184
|
|
|
1185
|
+
/**
|
|
1186
|
+
* A numerical identifier for a design block
|
|
1187
|
+
* @public
|
|
1188
|
+
*/
|
|
1189
|
+
declare type DesignElementId = number;
|
|
1190
|
+
|
|
1186
1191
|
declare enum DesignUnit {
|
|
1187
1192
|
Pixel = "px",
|
|
1188
1193
|
Millimeter = "mm",
|
|
@@ -1305,6 +1310,7 @@ declare enum MimeType_2 {
|
|
|
1305
1310
|
Pdf = "application/pdf",
|
|
1306
1311
|
Zip = "application/zip"
|
|
1307
1312
|
}
|
|
1313
|
+
export { MimeType_2 as MimeType }
|
|
1308
1314
|
|
|
1309
1315
|
declare enum NavigationPosition {
|
|
1310
1316
|
Top = "top",
|
|
@@ -1585,7 +1591,7 @@ declare type SpotColor = {
|
|
|
1585
1591
|
/**
|
|
1586
1592
|
* @public
|
|
1587
1593
|
*/
|
|
1588
|
-
declare enum StrokeCornerGeometry {
|
|
1594
|
+
export declare enum StrokeCornerGeometry {
|
|
1589
1595
|
Bevel = "Bevel",
|
|
1590
1596
|
Miter = "Miter",
|
|
1591
1597
|
Round = "Round"
|
|
@@ -1594,7 +1600,7 @@ declare enum StrokeCornerGeometry {
|
|
|
1594
1600
|
/**
|
|
1595
1601
|
* @public
|
|
1596
1602
|
*/
|
|
1597
|
-
declare enum StrokePosition {
|
|
1603
|
+
export declare enum StrokePosition {
|
|
1598
1604
|
Center = "Center",
|
|
1599
1605
|
Inner = "Inner",
|
|
1600
1606
|
Outer = "Outer"
|
|
@@ -1603,7 +1609,7 @@ declare enum StrokePosition {
|
|
|
1603
1609
|
/**
|
|
1604
1610
|
* @public
|
|
1605
1611
|
*/
|
|
1606
|
-
declare enum StrokeStyle {
|
|
1612
|
+
export declare enum StrokeStyle {
|
|
1607
1613
|
Dashed = "Dashed",
|
|
1608
1614
|
DashedRound = "DashedRound",
|
|
1609
1615
|
Dotted = "Dotted",
|