@cesdk/engine 1.8.0-alpha.5 → 1.9.0-preview.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/ThirdPartyLicenses.md +619 -13
- package/assets/core/cesdk-v1.9.0-preview.0.data +0 -0
- package/assets/core/{cesdk-v1.8.0-alpha.5.wasm → cesdk-v1.9.0-preview.0.wasm} +0 -0
- package/index.d.ts +59 -12
- package/index.js +2 -1
- package/package.json +1 -1
- package/assets/core/cesdk-v1.8.0-alpha.5.data +1 -4854
package/index.d.ts
CHANGED
|
@@ -367,6 +367,13 @@ export declare type BlendMode = 'PassThrough' | 'Normal' | 'Darken' | 'Multiply'
|
|
|
367
367
|
*/
|
|
368
368
|
export declare class Block extends Entity {
|
|
369
369
|
effects: ReadWriteChannelSync<number[]>;
|
|
370
|
+
soloPlaybackEnabled: ReadWriteChannelSync<boolean>;
|
|
371
|
+
trimOffset: ReadWriteChannelSync<number>;
|
|
372
|
+
trimLength: ReadWriteChannelSync<number>;
|
|
373
|
+
playing: ReadWriteChannelSync<boolean>;
|
|
374
|
+
playbackTime: ReadWriteChannelSync<number>;
|
|
375
|
+
selection: ReadWriteChannelSync<boolean>;
|
|
376
|
+
videoMode: ReadWriteChannelSync<boolean>;
|
|
370
377
|
|
|
371
378
|
}
|
|
372
379
|
|
|
@@ -1708,23 +1715,26 @@ export declare class BlockAPI {
|
|
|
1708
1715
|
hasTrim(id: DesignBlockId): boolean;
|
|
1709
1716
|
/**
|
|
1710
1717
|
* Set the trim offset of the given block or fill.
|
|
1711
|
-
* Sets the
|
|
1712
|
-
* This
|
|
1718
|
+
* Sets the time in seconds within the fill at which playback of the audio or video clip should begin.
|
|
1719
|
+
* This requires the video or audio clip to be loaded.
|
|
1713
1720
|
* @param id - The block whose trim should be updated.
|
|
1714
1721
|
* @param offset - The new trim offset.
|
|
1715
1722
|
*/
|
|
1716
1723
|
setTrimOffset(id: DesignBlockId, offset: number): void;
|
|
1717
1724
|
/**
|
|
1718
1725
|
* Get the trim offset of this block.
|
|
1726
|
+
* * This requires the video or audio clip to be loaded.
|
|
1719
1727
|
* @param id - The block whose trim offset should be queried.
|
|
1720
|
-
* @returns the trim offset.
|
|
1728
|
+
* @returns the trim offset in seconds.
|
|
1721
1729
|
*/
|
|
1722
1730
|
getTrimOffset(id: DesignBlockId): number;
|
|
1723
1731
|
/**
|
|
1724
1732
|
* Set the trim length of the given block or fill.
|
|
1725
|
-
* The trim length is the
|
|
1733
|
+
* The trim length is the duration of the audio or video clip that should be used for playback.
|
|
1734
|
+
* After reaching this value during playback, the trim region will loop.
|
|
1735
|
+
* This requires the video or audio clip to be loaded.
|
|
1726
1736
|
* @param id - The object whose trim length should be updated.
|
|
1727
|
-
* @param length - The new trim length
|
|
1737
|
+
* @param length - The new trim length in seconds.
|
|
1728
1738
|
*/
|
|
1729
1739
|
setTrimLength(id: DesignBlockId, length: number): void;
|
|
1730
1740
|
/**
|
|
@@ -1786,6 +1796,30 @@ export declare class BlockAPI {
|
|
|
1786
1796
|
* @returns Whether solo playback is enabled for this block.
|
|
1787
1797
|
*/
|
|
1788
1798
|
isSoloPlaybackEnabled(id: DesignBlockId): boolean;
|
|
1799
|
+
/**
|
|
1800
|
+
* Begins loading the required audio and video resource for the given video fill or audio block.
|
|
1801
|
+
* @param id - The video fill or audio block whose resource should be loaded.
|
|
1802
|
+
* @returns A Promise that resolves once the resource has finished loading.
|
|
1803
|
+
*/
|
|
1804
|
+
forceLoadAVResource(id: DesignBlockId): Promise<void>;
|
|
1805
|
+
/**
|
|
1806
|
+
* Get the duration in seconds of the video or audio resource that is attached to the given block.
|
|
1807
|
+
* @param id - The video fill or audio block.
|
|
1808
|
+
* @returns The video or audio file duration
|
|
1809
|
+
*/
|
|
1810
|
+
getAVResourceTotalDuration(id: DesignBlockId): number;
|
|
1811
|
+
/**
|
|
1812
|
+
* Generate a thumbnail for the given video fill.
|
|
1813
|
+
* @param id - The video fill.
|
|
1814
|
+
* @returns A thumbnail encoded as PNG with a height of 128px.
|
|
1815
|
+
*/
|
|
1816
|
+
getVideoFillThumbnail(id: DesignBlockId): Promise<Blob>;
|
|
1817
|
+
/**
|
|
1818
|
+
* Generate an 8x8 thumbnail atlas for the given video fill.
|
|
1819
|
+
* @param id - The video fill.
|
|
1820
|
+
* @returns A thumbnail atlas of the video as PNG.
|
|
1821
|
+
*/
|
|
1822
|
+
getVideoFillThumbnailAtlas(id: DesignBlockId): Promise<Blob>;
|
|
1789
1823
|
}
|
|
1790
1824
|
|
|
1791
1825
|
/**
|
|
@@ -2420,11 +2454,7 @@ declare type HexColorString = string;
|
|
|
2420
2454
|
*
|
|
2421
2455
|
* @public
|
|
2422
2456
|
*/
|
|
2423
|
-
export declare
|
|
2424
|
-
#private;
|
|
2425
|
-
constructor();
|
|
2426
|
-
connectedCallback(): void;
|
|
2427
|
-
disconnectedCallback(): void;
|
|
2457
|
+
export declare interface HTMLCreativeEngineCanvasElement extends HTMLElement {
|
|
2428
2458
|
|
|
2429
2459
|
|
|
2430
2460
|
}
|
|
@@ -2674,10 +2704,15 @@ export declare class SceneAPI {
|
|
|
2674
2704
|
*/
|
|
2675
2705
|
saveToArchive(): Promise<Blob>;
|
|
2676
2706
|
/**
|
|
2677
|
-
* Create a new scene, along with its own camera.
|
|
2678
|
-
* @returns The
|
|
2707
|
+
* Create a new design scene, along with its own camera.
|
|
2708
|
+
* @returns The scene's handle.
|
|
2679
2709
|
*/
|
|
2680
2710
|
create(): DesignBlockId;
|
|
2711
|
+
/**
|
|
2712
|
+
* Create a new scene in video mode, along with its own camera and page stack.
|
|
2713
|
+
* @returns The scene's handle.
|
|
2714
|
+
*/
|
|
2715
|
+
createVideo(): DesignBlockId;
|
|
2681
2716
|
/**
|
|
2682
2717
|
* Loads the given image and creates a scene with a single page showing the image.
|
|
2683
2718
|
* Fetching the image may take an arbitrary amount of time, so the scene isn't immediately
|
|
@@ -2793,6 +2828,18 @@ export declare type StrokeStyle = 'Dashed' | 'DashedRound' | 'Dotted' | 'LongDas
|
|
|
2793
2828
|
/** @public */
|
|
2794
2829
|
declare type Subscription = number;
|
|
2795
2830
|
|
|
2831
|
+
/**
|
|
2832
|
+
* Checks if the current browser supports video editing
|
|
2833
|
+
* @public
|
|
2834
|
+
*/
|
|
2835
|
+
export declare function supportsVideo(): boolean;
|
|
2836
|
+
|
|
2837
|
+
/**
|
|
2838
|
+
* Checks if the current browser supports web assembly
|
|
2839
|
+
* @public
|
|
2840
|
+
*/
|
|
2841
|
+
export declare function supportsWasm(): boolean;
|
|
2842
|
+
|
|
2796
2843
|
/** @public */
|
|
2797
2844
|
declare type TemplateDefinition = Preset & {
|
|
2798
2845
|
label: string;
|