@cesdk/node 1.18.1-rc.0 → 1.18.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.18.1-rc.0-fdb32d93de6584857fbc.wasm → cesdk-v1.18.1-95dc4e17509cb83875b3.wasm} +0 -0
- package/index.d.ts +8 -146
- package/index.js +1 -1
- package/package.json +1 -1
- /package/assets/core/{cesdk-v1.18.1-rc.0-d92fadafda0b5129818d.data → cesdk-v1.18.1-d92fadafda0b5129818d.data} +0 -0
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -463,19 +463,19 @@ export declare class BlockAPI {
|
|
|
463
463
|
* @param type - The type of the block that shall be created.
|
|
464
464
|
* @returns The created blocks handle.
|
|
465
465
|
*/
|
|
466
|
-
create(type:
|
|
466
|
+
create(type: DesignBlockType): DesignBlockId;
|
|
467
467
|
/**
|
|
468
468
|
* Create a new fill, fails if type is unknown.
|
|
469
469
|
* @param type - The type of the fill object that shall be created.
|
|
470
470
|
* @returns The created fill's handle.
|
|
471
471
|
*/
|
|
472
|
-
createFill(type:
|
|
472
|
+
createFill(type: string): DesignBlockId;
|
|
473
473
|
/**
|
|
474
474
|
* Get the type of the given block, fails if the block is invalid.
|
|
475
475
|
* @param id - The block to query.
|
|
476
476
|
* @returns The blocks type.
|
|
477
477
|
*/
|
|
478
|
-
getType(id: DesignBlockId):
|
|
478
|
+
getType(id: DesignBlockId): DesignBlockType;
|
|
479
479
|
/**
|
|
480
480
|
* Get the kind of the given block, fails if the block is invalid.
|
|
481
481
|
* @param id - The block to query.
|
|
@@ -580,7 +580,7 @@ export declare class BlockAPI {
|
|
|
580
580
|
* @param type - The type to search for.
|
|
581
581
|
* @returns A list of block ids.
|
|
582
582
|
*/
|
|
583
|
-
findByType(type:
|
|
583
|
+
findByType(type: DesignBlockType): DesignBlockId[];
|
|
584
584
|
/**
|
|
585
585
|
* Finds all blocks with the given kind.
|
|
586
586
|
* @param kind - The kind to search for.
|
|
@@ -602,7 +602,7 @@ export declare class BlockAPI {
|
|
|
602
602
|
* @param type - The type of the shape object that shall be created.
|
|
603
603
|
* @returns The created shape's handle.
|
|
604
604
|
*/
|
|
605
|
-
createShape(type:
|
|
605
|
+
createShape(type: string): DesignBlockId;
|
|
606
606
|
/**
|
|
607
607
|
* Query if the given block has a shape property.
|
|
608
608
|
* @param id - The block to query.
|
|
@@ -1399,7 +1399,7 @@ export declare class BlockAPI {
|
|
|
1399
1399
|
* @param type - The type id of the effect.
|
|
1400
1400
|
* @returns The created effects handle.
|
|
1401
1401
|
*/
|
|
1402
|
-
createEffect(type:
|
|
1402
|
+
createEffect(type: string): DesignBlockId;
|
|
1403
1403
|
/**
|
|
1404
1404
|
* Queries whether the block supports effects.
|
|
1405
1405
|
* @param id - The block to query.
|
|
@@ -1456,7 +1456,7 @@ export declare class BlockAPI {
|
|
|
1456
1456
|
* @param type - The type id of the block.
|
|
1457
1457
|
* @returns The handle of the newly created blur.
|
|
1458
1458
|
*/
|
|
1459
|
-
createBlur(type:
|
|
1459
|
+
createBlur(type: string): DesignBlockId;
|
|
1460
1460
|
/**
|
|
1461
1461
|
* Checks whether the block supports blur.
|
|
1462
1462
|
* @param id - The block to query.
|
|
@@ -2263,48 +2263,6 @@ export declare interface BlockEvent {
|
|
|
2263
2263
|
type: 'Created' | 'Updated' | 'Destroyed';
|
|
2264
2264
|
}
|
|
2265
2265
|
|
|
2266
|
-
/**
|
|
2267
|
-
* The block type IDs for all blocks types in the Creative Engine. Those are the types that can be
|
|
2268
|
-
* passed to `cesdk.engine.block.findByType(type)` for example.
|
|
2269
|
-
* @public
|
|
2270
|
-
*/
|
|
2271
|
-
export declare type BlockTypes = BlockTypesShorthand | BlockTypesLonghand;
|
|
2272
|
-
|
|
2273
|
-
/**
|
|
2274
|
-
* The longhand block type IDs for all blocks types in the Creative Engine. Those are the Types returned by the
|
|
2275
|
-
* engine when calling `cesdk.engine.block.getType(blockId)` for example.
|
|
2276
|
-
* @public
|
|
2277
|
-
*/
|
|
2278
|
-
export declare type BlockTypesLonghand = DesignBlockTypesLonghand | ShapeTypesLonghand | FillTypesLonghand | EffectTypesLonghand | BlurTypesLonghand;
|
|
2279
|
-
|
|
2280
|
-
/**
|
|
2281
|
-
* The shorthand block type IDs for all blocks types in the Creative Engine. Those are the types that can be
|
|
2282
|
-
* passed to `cesdk.engine.block.findByType(type)` for example.
|
|
2283
|
-
* @public
|
|
2284
|
-
*/
|
|
2285
|
-
export declare type BlockTypesShorthand = DesignBlockTypesShorthand | `shape/${ShapeTypesShorthand}` | `fill/${FillTypesShorthand}` | `effect/${EffectTypesShorthand}` | `blur/${BlurTypesShorthand}`;
|
|
2286
|
-
|
|
2287
|
-
/**
|
|
2288
|
-
* The block type IDs for the blur blocks. These are the IDs used to create new blurs
|
|
2289
|
-
* using `cesdk.engine.editor.createBlur(id)`.
|
|
2290
|
-
* @public
|
|
2291
|
-
*/
|
|
2292
|
-
export declare type BlurTypes = BlurTypesShorthand | BlurTypesLonghand;
|
|
2293
|
-
|
|
2294
|
-
/**
|
|
2295
|
-
* The longhand block type IDs for the blur blocks. These are the IDs used to create new blurs
|
|
2296
|
-
* using `cesdk.engine.editor.createBlur(id)`.
|
|
2297
|
-
* @public
|
|
2298
|
-
*/
|
|
2299
|
-
export declare type BlurTypesLonghand = `//ly.img.ubq/blur/${BlurTypesShorthand}`;
|
|
2300
|
-
|
|
2301
|
-
/**
|
|
2302
|
-
* The shorthand block type IDs for the blur blocks. These are the IDs used to create new blurs
|
|
2303
|
-
* using `cesdk.engine.editor.createBlur(id)`.
|
|
2304
|
-
* @public
|
|
2305
|
-
*/
|
|
2306
|
-
export declare type BlurTypesShorthand = 'uniform' | 'linear' | 'mirrored' | 'radial';
|
|
2307
|
-
|
|
2308
2266
|
/**
|
|
2309
2267
|
* @public
|
|
2310
2268
|
*/
|
|
@@ -2579,9 +2537,6 @@ export declare interface Configuration {
|
|
|
2579
2537
|
featureFlags?: {
|
|
2580
2538
|
[flag: string]: boolean | string;
|
|
2581
2539
|
};
|
|
2582
|
-
/**
|
|
2583
|
-
* @deprecated Extensions have been superseded by AssetSources and should no longer be used.
|
|
2584
|
-
*/
|
|
2585
2540
|
extensions: {
|
|
2586
2541
|
baseURL: string;
|
|
2587
2542
|
entries: string[];
|
|
@@ -2753,7 +2708,6 @@ export declare type DesignBlockId = number;
|
|
|
2753
2708
|
|
|
2754
2709
|
/**
|
|
2755
2710
|
* @public
|
|
2756
|
-
* @deprecated The DesignBlockType enum is deprecated and replaced with string literals. See `BlockTypes`, `ShapeTypes`, and `FillTypes`.
|
|
2757
2711
|
*/
|
|
2758
2712
|
export declare enum DesignBlockType {
|
|
2759
2713
|
Scene = "//ly.img.ubq/scene",
|
|
@@ -2782,27 +2736,6 @@ export declare enum DesignBlockType {
|
|
|
2782
2736
|
ConicalGradientFill = "//ly.img.ubq/fill/gradient/conical"
|
|
2783
2737
|
}
|
|
2784
2738
|
|
|
2785
|
-
/**
|
|
2786
|
-
* The block type IDs for the top-level design blocks. These are the IDs used to create new blocks
|
|
2787
|
-
* using `cesdk.engine.editor.cerate(id)`.
|
|
2788
|
-
* @public
|
|
2789
|
-
*/
|
|
2790
|
-
export declare type DesignBlockTypes = DesignBlockTypesShorthand | DesignBlockTypesLonghand;
|
|
2791
|
-
|
|
2792
|
-
/**
|
|
2793
|
-
* The longhand block type IDs for the top-level design blocks. These are the IDs used to create new blocks
|
|
2794
|
-
* using `cesdk.engine.editor.cerate(id)`.
|
|
2795
|
-
* @public
|
|
2796
|
-
*/
|
|
2797
|
-
export declare type DesignBlockTypesLonghand = `//ly.img.ubq/${DesignBlockTypesShorthand}`;
|
|
2798
|
-
|
|
2799
|
-
/**
|
|
2800
|
-
* The shorthand block type IDs for the top-level design blocks. These are the IDs used to create new blocks
|
|
2801
|
-
* using `cesdk.engine.editor.cerate(id)`.
|
|
2802
|
-
* @public
|
|
2803
|
-
*/
|
|
2804
|
-
export declare type DesignBlockTypesShorthand = 'scene' | 'stack' | 'camera' | 'page' | 'graphic' | 'audio' | 'text' | 'group' | 'cutout' | LegacyDesignBlockTypesShorthand;
|
|
2805
|
-
|
|
2806
2739
|
/**
|
|
2807
2740
|
* The unit type in which the page values (size, distances, etc.) are defined.
|
|
2808
2741
|
* @public
|
|
@@ -3138,27 +3071,6 @@ export declare class EditorAPI {
|
|
|
3138
3071
|
convertColorToColorSpace(color: Color, colorSpace: ColorSpace): never;
|
|
3139
3072
|
}
|
|
3140
3073
|
|
|
3141
|
-
/**
|
|
3142
|
-
* The block type IDs for the effect blocks. These are the IDs used to create new effects
|
|
3143
|
-
* using `cesdk.engine.editor.createEffect(id)`.
|
|
3144
|
-
* @public
|
|
3145
|
-
*/
|
|
3146
|
-
export declare type EffectTypes = EffectTypesShorthand | EffectTypesLonghand;
|
|
3147
|
-
|
|
3148
|
-
/**
|
|
3149
|
-
* The longhand block type IDs for the effect blocks. These are the IDs used to create new effects
|
|
3150
|
-
* using `cesdk.engine.editor.createEffect(id)`.
|
|
3151
|
-
* @public
|
|
3152
|
-
*/
|
|
3153
|
-
export declare type EffectTypesLonghand = `//ly.img.ubq/effect/${EffectTypesShorthand}`;
|
|
3154
|
-
|
|
3155
|
-
/**
|
|
3156
|
-
* The shorthand block type IDs for the effect blocks. These are the IDs used to create new effects
|
|
3157
|
-
* using `cesdk.engine.editor.createEffect(id)`.
|
|
3158
|
-
* @public
|
|
3159
|
-
*/
|
|
3160
|
-
export declare type EffectTypesShorthand = 'pixelize' | 'radial_pixel' | 'cross_cut' | 'liquid' | 'outliner' | 'dot_pattern' | 'posterize' | 'tv_glitch' | 'half_tone' | 'linocut' | 'shifter' | 'mirror' | 'glow' | 'vignette' | 'tilt_shift' | 'extrude_blur' | 'sharpie' | 'lut_filter' | 'duotone_filter' | 'adjustments';
|
|
3161
|
-
|
|
3162
3074
|
/**
|
|
3163
3075
|
* @public
|
|
3164
3076
|
*/
|
|
@@ -3243,27 +3155,6 @@ declare interface ExportVideoOptions {
|
|
|
3243
3155
|
targetHeight: number;
|
|
3244
3156
|
}
|
|
3245
3157
|
|
|
3246
|
-
/**
|
|
3247
|
-
* The block type IDs for the fill blocks. These are the IDs used to create new fills
|
|
3248
|
-
* using `cesdk.engine.editor.createFill(id)`.
|
|
3249
|
-
* @public
|
|
3250
|
-
*/
|
|
3251
|
-
export declare type FillTypes = FillTypesShorthand | FillTypesLonghand;
|
|
3252
|
-
|
|
3253
|
-
/**
|
|
3254
|
-
* The longhand block type IDs for the fill blocks. These are the IDs used to create new fills
|
|
3255
|
-
* using `cesdk.engine.editor.createFill(id)`.
|
|
3256
|
-
* @public
|
|
3257
|
-
*/
|
|
3258
|
-
export declare type FillTypesLonghand = `//ly.img.ubq/fill/${FillTypesShorthand}`;
|
|
3259
|
-
|
|
3260
|
-
/**
|
|
3261
|
-
* The shorthand block type IDs for the fill blocks. These are the IDs used to create new fills
|
|
3262
|
-
* using `cesdk.engine.editor.createFill(id)`.
|
|
3263
|
-
* @public
|
|
3264
|
-
*/
|
|
3265
|
-
export declare type FillTypesShorthand = 'video' | 'image' | 'color' | 'gradient/linear' | 'gradient/radial' | 'gradient/conical' | 'pixelStream';
|
|
3266
|
-
|
|
3267
3158
|
/** @public */
|
|
3268
3159
|
declare interface FindAssetsQuery {
|
|
3269
3160
|
perPage: number;
|
|
@@ -3330,14 +3221,6 @@ export declare type HistoryId = number;
|
|
|
3330
3221
|
*/
|
|
3331
3222
|
export declare type HorizontalBlockAlignment = 'Left' | 'Right' | 'Center';
|
|
3332
3223
|
|
|
3333
|
-
/**
|
|
3334
|
-
* The shorthand block type IDs for legacy design blocks.
|
|
3335
|
-
* @public
|
|
3336
|
-
* @deprecated These design block IDs are deprecated, you should migrate to using the new graphic design block
|
|
3337
|
-
* instead by setting `cesdk.engine.editor.setSettingBool('features/unifiedBlocksEnabled', true)`
|
|
3338
|
-
*/
|
|
3339
|
-
export declare type LegacyDesignBlockTypesShorthand = 'image' | 'video' | 'sticker' | 'vector_path' | 'shapes/rect' | 'shapes/line' | 'shapes/star' | 'shapes/polygon' | 'shapes/ellipse';
|
|
3340
|
-
|
|
3341
3224
|
/**
|
|
3342
3225
|
* e.g. `en`, `de`, etc.
|
|
3343
3226
|
* @public
|
|
@@ -3567,7 +3450,7 @@ export declare class SceneAPI {
|
|
|
3567
3450
|
* @param type - The type to search for.
|
|
3568
3451
|
* @returns A list of block ids sorted by distance to view port center.
|
|
3569
3452
|
*/
|
|
3570
|
-
findNearestToViewPortCenterByType(type:
|
|
3453
|
+
findNearestToViewPortCenterByType(type: DesignBlockType): DesignBlockId[];
|
|
3571
3454
|
/**
|
|
3572
3455
|
* Find all blocks with the given kind sorted by the distance to view port center.
|
|
3573
3456
|
* @param kind - The kind to search for.
|
|
@@ -3753,27 +3636,6 @@ export declare type SettingsString = 'basePath' | 'license' | 'page/title/fontFi
|
|
|
3753
3636
|
/** @public */
|
|
3754
3637
|
export declare type SettingType = 'Bool' | 'Int' | 'Float' | 'String' | 'Color' | 'Enum';
|
|
3755
3638
|
|
|
3756
|
-
/**
|
|
3757
|
-
* The block type IDs for the shape blocks. These are the IDs used to create new shapes
|
|
3758
|
-
* using `cesdk.engine.editor.createShape(id)`.
|
|
3759
|
-
* @public
|
|
3760
|
-
*/
|
|
3761
|
-
export declare type ShapeTypes = ShapeTypesShorthand | ShapeTypesLonghand;
|
|
3762
|
-
|
|
3763
|
-
/**
|
|
3764
|
-
* The longhand block type IDs for the blocks. These are the IDs used to create new shapes
|
|
3765
|
-
* using `cesdk.engine.editor.createShape(id)`.
|
|
3766
|
-
* @public
|
|
3767
|
-
*/
|
|
3768
|
-
export declare type ShapeTypesLonghand = `//ly.img.ubq/shape/${ShapeTypesShorthand}`;
|
|
3769
|
-
|
|
3770
|
-
/**
|
|
3771
|
-
* The shorthand block type IDs for the shape blocks. These are the IDs used to create new shapes
|
|
3772
|
-
* using `cesdk.engine.editor.createShape(id)`.
|
|
3773
|
-
* @public
|
|
3774
|
-
*/
|
|
3775
|
-
export declare type ShapeTypesShorthand = 'vector_path' | 'rect' | 'line' | 'star' | 'polygon' | 'ellipse';
|
|
3776
|
-
|
|
3777
3639
|
/** @public */
|
|
3778
3640
|
export declare interface Size2 {
|
|
3779
3641
|
width: number;
|