@cesdk/engine 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-1590a3bd4a5562ec284b.wasm → cesdk-v1.18.1-d3e0acb895f4d9e31459.wasm} +0 -0
- package/index.d.ts +8 -146
- package/index.js +1 -1
- package/integrations/react.d.ts +43 -0
- package/integrations/react.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,27 +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
2266
|
/**
|
|
2288
2267
|
* Dispatched on the engine canvas when the text input has been blurred.
|
|
2289
2268
|
* Call `preventDefault()` to disallow this and refocus the engine text input.
|
|
@@ -2297,27 +2276,6 @@ export declare interface BlurEvent extends CustomEvent<EventTarget | null> {
|
|
|
2297
2276
|
preventDefault(): void;
|
|
2298
2277
|
}
|
|
2299
2278
|
|
|
2300
|
-
/**
|
|
2301
|
-
* The block type IDs for the blur blocks. These are the IDs used to create new blurs
|
|
2302
|
-
* using `cesdk.engine.editor.createBlur(id)`.
|
|
2303
|
-
* @public
|
|
2304
|
-
*/
|
|
2305
|
-
export declare type BlurTypes = BlurTypesShorthand | BlurTypesLonghand;
|
|
2306
|
-
|
|
2307
|
-
/**
|
|
2308
|
-
* The longhand block type IDs for the blur blocks. These are the IDs used to create new blurs
|
|
2309
|
-
* using `cesdk.engine.editor.createBlur(id)`.
|
|
2310
|
-
* @public
|
|
2311
|
-
*/
|
|
2312
|
-
export declare type BlurTypesLonghand = `//ly.img.ubq/blur/${BlurTypesShorthand}`;
|
|
2313
|
-
|
|
2314
|
-
/**
|
|
2315
|
-
* The shorthand block type IDs for the blur blocks. These are the IDs used to create new blurs
|
|
2316
|
-
* using `cesdk.engine.editor.createBlur(id)`.
|
|
2317
|
-
* @public
|
|
2318
|
-
*/
|
|
2319
|
-
export declare type BlurTypesShorthand = 'uniform' | 'linear' | 'mirrored' | 'radial';
|
|
2320
|
-
|
|
2321
2279
|
declare type CameraSettings = {
|
|
2322
2280
|
/** Horizontal resolution in physical pixels */
|
|
2323
2281
|
width: number;
|
|
@@ -2633,9 +2591,6 @@ export declare interface Configuration {
|
|
|
2633
2591
|
featureFlags?: {
|
|
2634
2592
|
[flag: string]: boolean | string;
|
|
2635
2593
|
};
|
|
2636
|
-
/**
|
|
2637
|
-
* @deprecated Extensions have been superseded by AssetSources and should no longer be used.
|
|
2638
|
-
*/
|
|
2639
2594
|
extensions: {
|
|
2640
2595
|
baseURL: string;
|
|
2641
2596
|
entries: string[];
|
|
@@ -2864,7 +2819,6 @@ export declare type DesignBlockId = number;
|
|
|
2864
2819
|
|
|
2865
2820
|
/**
|
|
2866
2821
|
* @public
|
|
2867
|
-
* @deprecated The DesignBlockType enum is deprecated and replaced with string literals. See `BlockTypes`, `ShapeTypes`, and `FillTypes`.
|
|
2868
2822
|
*/
|
|
2869
2823
|
export declare enum DesignBlockType {
|
|
2870
2824
|
Scene = "//ly.img.ubq/scene",
|
|
@@ -2893,27 +2847,6 @@ export declare enum DesignBlockType {
|
|
|
2893
2847
|
ConicalGradientFill = "//ly.img.ubq/fill/gradient/conical"
|
|
2894
2848
|
}
|
|
2895
2849
|
|
|
2896
|
-
/**
|
|
2897
|
-
* The block type IDs for the top-level design blocks. These are the IDs used to create new blocks
|
|
2898
|
-
* using `cesdk.engine.editor.cerate(id)`.
|
|
2899
|
-
* @public
|
|
2900
|
-
*/
|
|
2901
|
-
export declare type DesignBlockTypes = DesignBlockTypesShorthand | DesignBlockTypesLonghand;
|
|
2902
|
-
|
|
2903
|
-
/**
|
|
2904
|
-
* The longhand block type IDs for the top-level design blocks. These are the IDs used to create new blocks
|
|
2905
|
-
* using `cesdk.engine.editor.cerate(id)`.
|
|
2906
|
-
* @public
|
|
2907
|
-
*/
|
|
2908
|
-
export declare type DesignBlockTypesLonghand = `//ly.img.ubq/${DesignBlockTypesShorthand}`;
|
|
2909
|
-
|
|
2910
|
-
/**
|
|
2911
|
-
* The shorthand block type IDs for the top-level design blocks. These are the IDs used to create new blocks
|
|
2912
|
-
* using `cesdk.engine.editor.cerate(id)`.
|
|
2913
|
-
* @public
|
|
2914
|
-
*/
|
|
2915
|
-
export declare type DesignBlockTypesShorthand = 'scene' | 'stack' | 'camera' | 'page' | 'graphic' | 'audio' | 'text' | 'group' | 'cutout' | LegacyDesignBlockTypesShorthand;
|
|
2916
|
-
|
|
2917
2850
|
/**
|
|
2918
2851
|
* The unit type in which the page values (size, distances, etc.) are defined.
|
|
2919
2852
|
* @public
|
|
@@ -3249,27 +3182,6 @@ export declare class EditorAPI {
|
|
|
3249
3182
|
convertColorToColorSpace(color: Color, colorSpace: ColorSpace): never;
|
|
3250
3183
|
}
|
|
3251
3184
|
|
|
3252
|
-
/**
|
|
3253
|
-
* The block type IDs for the effect blocks. These are the IDs used to create new effects
|
|
3254
|
-
* using `cesdk.engine.editor.createEffect(id)`.
|
|
3255
|
-
* @public
|
|
3256
|
-
*/
|
|
3257
|
-
export declare type EffectTypes = EffectTypesShorthand | EffectTypesLonghand;
|
|
3258
|
-
|
|
3259
|
-
/**
|
|
3260
|
-
* The longhand block type IDs for the effect blocks. These are the IDs used to create new effects
|
|
3261
|
-
* using `cesdk.engine.editor.createEffect(id)`.
|
|
3262
|
-
* @public
|
|
3263
|
-
*/
|
|
3264
|
-
export declare type EffectTypesLonghand = `//ly.img.ubq/effect/${EffectTypesShorthand}`;
|
|
3265
|
-
|
|
3266
|
-
/**
|
|
3267
|
-
* The shorthand block type IDs for the effect blocks. These are the IDs used to create new effects
|
|
3268
|
-
* using `cesdk.engine.editor.createEffect(id)`.
|
|
3269
|
-
* @public
|
|
3270
|
-
*/
|
|
3271
|
-
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';
|
|
3272
|
-
|
|
3273
3185
|
/**
|
|
3274
3186
|
* @public
|
|
3275
3187
|
*/
|
|
@@ -3354,27 +3266,6 @@ declare interface ExportVideoOptions {
|
|
|
3354
3266
|
targetHeight: number;
|
|
3355
3267
|
}
|
|
3356
3268
|
|
|
3357
|
-
/**
|
|
3358
|
-
* The block type IDs for the fill blocks. These are the IDs used to create new fills
|
|
3359
|
-
* using `cesdk.engine.editor.createFill(id)`.
|
|
3360
|
-
* @public
|
|
3361
|
-
*/
|
|
3362
|
-
export declare type FillTypes = FillTypesShorthand | FillTypesLonghand;
|
|
3363
|
-
|
|
3364
|
-
/**
|
|
3365
|
-
* The longhand block type IDs for the fill blocks. These are the IDs used to create new fills
|
|
3366
|
-
* using `cesdk.engine.editor.createFill(id)`.
|
|
3367
|
-
* @public
|
|
3368
|
-
*/
|
|
3369
|
-
export declare type FillTypesLonghand = `//ly.img.ubq/fill/${FillTypesShorthand}`;
|
|
3370
|
-
|
|
3371
|
-
/**
|
|
3372
|
-
* The shorthand block type IDs for the fill blocks. These are the IDs used to create new fills
|
|
3373
|
-
* using `cesdk.engine.editor.createFill(id)`.
|
|
3374
|
-
* @public
|
|
3375
|
-
*/
|
|
3376
|
-
export declare type FillTypesShorthand = 'video' | 'image' | 'color' | 'gradient/linear' | 'gradient/radial' | 'gradient/conical' | 'pixelStream';
|
|
3377
|
-
|
|
3378
3269
|
/** @public */
|
|
3379
3270
|
declare interface FindAssetsQuery {
|
|
3380
3271
|
perPage: number;
|
|
@@ -3480,14 +3371,6 @@ export declare interface HTMLCreativeEngineCanvasElement extends HTMLElement {
|
|
|
3480
3371
|
clear(): void;
|
|
3481
3372
|
}
|
|
3482
3373
|
|
|
3483
|
-
/**
|
|
3484
|
-
* The shorthand block type IDs for legacy design blocks.
|
|
3485
|
-
* @public
|
|
3486
|
-
* @deprecated These design block IDs are deprecated, you should migrate to using the new graphic design block
|
|
3487
|
-
* instead by setting `cesdk.engine.editor.setSettingBool('features/unifiedBlocksEnabled', true)`
|
|
3488
|
-
*/
|
|
3489
|
-
export declare type LegacyDesignBlockTypesShorthand = 'image' | 'video' | 'sticker' | 'vector_path' | 'shapes/rect' | 'shapes/line' | 'shapes/star' | 'shapes/polygon' | 'shapes/ellipse';
|
|
3490
|
-
|
|
3491
3374
|
/**
|
|
3492
3375
|
* e.g. `en`, `de`, etc.
|
|
3493
3376
|
* @public
|
|
@@ -3778,7 +3661,7 @@ export declare class SceneAPI {
|
|
|
3778
3661
|
* @param type - The type to search for.
|
|
3779
3662
|
* @returns A list of block ids sorted by distance to view port center.
|
|
3780
3663
|
*/
|
|
3781
|
-
findNearestToViewPortCenterByType(type:
|
|
3664
|
+
findNearestToViewPortCenterByType(type: DesignBlockType): DesignBlockId[];
|
|
3782
3665
|
/**
|
|
3783
3666
|
* Find all blocks with the given kind sorted by the distance to view port center.
|
|
3784
3667
|
* @param kind - The kind to search for.
|
|
@@ -3964,27 +3847,6 @@ export declare type SettingsString = 'basePath' | 'license' | 'page/title/fontFi
|
|
|
3964
3847
|
/** @public */
|
|
3965
3848
|
export declare type SettingType = 'Bool' | 'Int' | 'Float' | 'String' | 'Color' | 'Enum';
|
|
3966
3849
|
|
|
3967
|
-
/**
|
|
3968
|
-
* The block type IDs for the shape blocks. These are the IDs used to create new shapes
|
|
3969
|
-
* using `cesdk.engine.editor.createShape(id)`.
|
|
3970
|
-
* @public
|
|
3971
|
-
*/
|
|
3972
|
-
export declare type ShapeTypes = ShapeTypesShorthand | ShapeTypesLonghand;
|
|
3973
|
-
|
|
3974
|
-
/**
|
|
3975
|
-
* The longhand block type IDs for the blocks. These are the IDs used to create new shapes
|
|
3976
|
-
* using `cesdk.engine.editor.createShape(id)`.
|
|
3977
|
-
* @public
|
|
3978
|
-
*/
|
|
3979
|
-
export declare type ShapeTypesLonghand = `//ly.img.ubq/shape/${ShapeTypesShorthand}`;
|
|
3980
|
-
|
|
3981
|
-
/**
|
|
3982
|
-
* The shorthand block type IDs for the shape blocks. These are the IDs used to create new shapes
|
|
3983
|
-
* using `cesdk.engine.editor.createShape(id)`.
|
|
3984
|
-
* @public
|
|
3985
|
-
*/
|
|
3986
|
-
export declare type ShapeTypesShorthand = 'vector_path' | 'rect' | 'line' | 'star' | 'polygon' | 'ellipse';
|
|
3987
|
-
|
|
3988
3850
|
/** @public */
|
|
3989
3851
|
export declare interface Size2 {
|
|
3990
3852
|
width: number;
|