@cesdk/node 1.18.1-rc.1 → 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/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: DesignBlockTypes): DesignBlockId;
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: FillTypes): DesignBlockId;
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): BlockTypesLonghand;
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: BlockTypes): DesignBlockId[];
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: ShapeTypes): DesignBlockId;
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: EffectTypes): DesignBlockId;
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: BlurTypes): DesignBlockId;
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
  */
@@ -2750,7 +2708,6 @@ export declare type DesignBlockId = number;
2750
2708
 
2751
2709
  /**
2752
2710
  * @public
2753
- * @deprecated The DesignBlockType enum is deprecated and replaced with string literals. See `BlockTypes`, `ShapeTypes`, and `FillTypes`.
2754
2711
  */
2755
2712
  export declare enum DesignBlockType {
2756
2713
  Scene = "//ly.img.ubq/scene",
@@ -2779,27 +2736,6 @@ export declare enum DesignBlockType {
2779
2736
  ConicalGradientFill = "//ly.img.ubq/fill/gradient/conical"
2780
2737
  }
2781
2738
 
2782
- /**
2783
- * The block type IDs for the top-level design blocks. These are the IDs used to create new blocks
2784
- * using `cesdk.engine.editor.cerate(id)`.
2785
- * @public
2786
- */
2787
- export declare type DesignBlockTypes = DesignBlockTypesShorthand | DesignBlockTypesLonghand;
2788
-
2789
- /**
2790
- * The longhand block type IDs for the top-level design blocks. These are the IDs used to create new blocks
2791
- * using `cesdk.engine.editor.cerate(id)`.
2792
- * @public
2793
- */
2794
- export declare type DesignBlockTypesLonghand = `//ly.img.ubq/${DesignBlockTypesShorthand}`;
2795
-
2796
- /**
2797
- * The shorthand block type IDs for the top-level design blocks. These are the IDs used to create new blocks
2798
- * using `cesdk.engine.editor.cerate(id)`.
2799
- * @public
2800
- */
2801
- export declare type DesignBlockTypesShorthand = 'scene' | 'stack' | 'camera' | 'page' | 'graphic' | 'audio' | 'text' | 'group' | 'cutout' | LegacyDesignBlockTypesShorthand;
2802
-
2803
2739
  /**
2804
2740
  * The unit type in which the page values (size, distances, etc.) are defined.
2805
2741
  * @public
@@ -3135,27 +3071,6 @@ export declare class EditorAPI {
3135
3071
  convertColorToColorSpace(color: Color, colorSpace: ColorSpace): never;
3136
3072
  }
3137
3073
 
3138
- /**
3139
- * The block type IDs for the effect blocks. These are the IDs used to create new effects
3140
- * using `cesdk.engine.editor.createEffect(id)`.
3141
- * @public
3142
- */
3143
- export declare type EffectTypes = EffectTypesShorthand | EffectTypesLonghand;
3144
-
3145
- /**
3146
- * The longhand block type IDs for the effect blocks. These are the IDs used to create new effects
3147
- * using `cesdk.engine.editor.createEffect(id)`.
3148
- * @public
3149
- */
3150
- export declare type EffectTypesLonghand = `//ly.img.ubq/effect/${EffectTypesShorthand}`;
3151
-
3152
- /**
3153
- * The shorthand block type IDs for the effect blocks. These are the IDs used to create new effects
3154
- * using `cesdk.engine.editor.createEffect(id)`.
3155
- * @public
3156
- */
3157
- 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';
3158
-
3159
3074
  /**
3160
3075
  * @public
3161
3076
  */
@@ -3240,27 +3155,6 @@ declare interface ExportVideoOptions {
3240
3155
  targetHeight: number;
3241
3156
  }
3242
3157
 
3243
- /**
3244
- * The block type IDs for the fill blocks. These are the IDs used to create new fills
3245
- * using `cesdk.engine.editor.createFill(id)`.
3246
- * @public
3247
- */
3248
- export declare type FillTypes = FillTypesShorthand | FillTypesLonghand;
3249
-
3250
- /**
3251
- * The longhand block type IDs for the fill blocks. These are the IDs used to create new fills
3252
- * using `cesdk.engine.editor.createFill(id)`.
3253
- * @public
3254
- */
3255
- export declare type FillTypesLonghand = `//ly.img.ubq/fill/${FillTypesShorthand}`;
3256
-
3257
- /**
3258
- * The shorthand block type IDs for the fill blocks. These are the IDs used to create new fills
3259
- * using `cesdk.engine.editor.createFill(id)`.
3260
- * @public
3261
- */
3262
- export declare type FillTypesShorthand = 'video' | 'image' | 'color' | 'gradient/linear' | 'gradient/radial' | 'gradient/conical' | 'pixelStream';
3263
-
3264
3158
  /** @public */
3265
3159
  declare interface FindAssetsQuery {
3266
3160
  perPage: number;
@@ -3327,14 +3221,6 @@ export declare type HistoryId = number;
3327
3221
  */
3328
3222
  export declare type HorizontalBlockAlignment = 'Left' | 'Right' | 'Center';
3329
3223
 
3330
- /**
3331
- * The shorthand block type IDs for legacy design blocks.
3332
- * @public
3333
- * @deprecated These design block IDs are deprecated, you should migrate to using the new graphic design block
3334
- * instead by setting `cesdk.engine.editor.setSettingBool('features/unifiedBlocksEnabled', true)`
3335
- */
3336
- export declare type LegacyDesignBlockTypesShorthand = 'image' | 'video' | 'sticker' | 'vector_path' | 'shapes/rect' | 'shapes/line' | 'shapes/star' | 'shapes/polygon' | 'shapes/ellipse';
3337
-
3338
3224
  /**
3339
3225
  * e.g. `en`, `de`, etc.
3340
3226
  * @public
@@ -3564,7 +3450,7 @@ export declare class SceneAPI {
3564
3450
  * @param type - The type to search for.
3565
3451
  * @returns A list of block ids sorted by distance to view port center.
3566
3452
  */
3567
- findNearestToViewPortCenterByType(type: DesignBlockTypes): DesignBlockId[];
3453
+ findNearestToViewPortCenterByType(type: DesignBlockType): DesignBlockId[];
3568
3454
  /**
3569
3455
  * Find all blocks with the given kind sorted by the distance to view port center.
3570
3456
  * @param kind - The kind to search for.
@@ -3750,27 +3636,6 @@ export declare type SettingsString = 'basePath' | 'license' | 'page/title/fontFi
3750
3636
  /** @public */
3751
3637
  export declare type SettingType = 'Bool' | 'Int' | 'Float' | 'String' | 'Color' | 'Enum';
3752
3638
 
3753
- /**
3754
- * The block type IDs for the shape blocks. These are the IDs used to create new shapes
3755
- * using `cesdk.engine.editor.createShape(id)`.
3756
- * @public
3757
- */
3758
- export declare type ShapeTypes = ShapeTypesShorthand | ShapeTypesLonghand;
3759
-
3760
- /**
3761
- * The longhand block type IDs for the blocks. These are the IDs used to create new shapes
3762
- * using `cesdk.engine.editor.createShape(id)`.
3763
- * @public
3764
- */
3765
- export declare type ShapeTypesLonghand = `//ly.img.ubq/shape/${ShapeTypesShorthand}`;
3766
-
3767
- /**
3768
- * The shorthand block type IDs for the shape blocks. These are the IDs used to create new shapes
3769
- * using `cesdk.engine.editor.createShape(id)`.
3770
- * @public
3771
- */
3772
- export declare type ShapeTypesShorthand = 'vector_path' | 'rect' | 'line' | 'star' | 'polygon' | 'ellipse';
3773
-
3774
3639
  /** @public */
3775
3640
  export declare interface Size2 {
3776
3641
  width: number;