@cesdk/node 1.22.0 → 1.23.0-rc.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/assets/core/{cesdk-v1.22.0-2WWYSH4W.wasm → cesdk-v1.23.0-rc.0-FJIBMOMO.wasm} +0 -0
- package/assets/extensions/ly.img.cesdk.effects/thumbnails/imgly_effect_29.jpeg +0 -0
- package/assets/extensions/ly.img.cesdk.effects/thumbnails/imgly_effect_30.jpeg +0 -0
- package/example.js +3 -1
- package/index.d.ts +17 -1
- package/index.js +1 -1
- package/package.json +1 -1
- /package/assets/core/{cesdk-v1.22.0-GD242ZBP.data → cesdk-v1.23.0-rc.0-GD242ZBP.data} +0 -0
|
Binary file
|
package/example.js
CHANGED
|
@@ -5,7 +5,9 @@ const CreativeEngine = require('./index.js');
|
|
|
5
5
|
|
|
6
6
|
const { MimeType } = CreativeEngine;
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
const license = process.env.CESDK_LICENSE;
|
|
9
|
+
|
|
10
|
+
CreativeEngine.init({ license }).then(async (engine) => {
|
|
9
11
|
await engine.addDefaultAssetSources();
|
|
10
12
|
console.log('Loading scene');
|
|
11
13
|
engine.scene
|
package/index.d.ts
CHANGED
|
@@ -2280,6 +2280,19 @@ export declare class BlockAPI {
|
|
|
2280
2280
|
* @returns A method that will cancel any thumbnail generation request in progress for this block.
|
|
2281
2281
|
*/
|
|
2282
2282
|
generateVideoThumbnailSequence(id: DesignBlockId, thumbnailHeight: number, timeBegin: number, timeEnd: number, numberOfFrames: number, onFrame: (frameIndex: number, result: ImageData | Error) => void): () => void;
|
|
2283
|
+
/**
|
|
2284
|
+
* Generate a thumbnail sequence for the given audio block or video fill.
|
|
2285
|
+
* A thumbnail in this case is a chunk of samples in the range of 0 to 1.
|
|
2286
|
+
* In case stereo data is requested, the samples are interleaved, starting with the left channel.
|
|
2287
|
+
* @param id - The audio block or video fill.
|
|
2288
|
+
* @param samplesPerChunk - The number of samples per chunk. `onChunk` is called when this many samples are ready.
|
|
2289
|
+
* @param timeBegin - The time in seconds at which the thumbnail sequence should start.
|
|
2290
|
+
* @param timeEnd - The time in seconds at which the thumbnail sequence should end.
|
|
2291
|
+
* @param numberOfSamples - The total number of samples to generate.
|
|
2292
|
+
* @param numberOfChannels - The number of channels in the output. 1 for mono, 2 for stereo.
|
|
2293
|
+
* @param onChunk - This gets passed an index and a chunk of samples whenever it's ready, or an error.
|
|
2294
|
+
*/
|
|
2295
|
+
generateAudioThumbnailSequence(id: DesignBlockId, samplesPerChunk: number, timeBegin: number, timeEnd: number, numberOfSamples: number, numberOfChannels: number, onChunk: (chunkIndex: number, result: Float32Array | Error) => void): () => void;
|
|
2283
2296
|
/**
|
|
2284
2297
|
* Generate a thumbnail for the given video fill.
|
|
2285
2298
|
* @param id - The video fill.
|
|
@@ -2833,6 +2846,9 @@ export declare class EditorAPI {
|
|
|
2833
2846
|
|
|
2834
2847
|
|
|
2835
2848
|
|
|
2849
|
+
|
|
2850
|
+
|
|
2851
|
+
|
|
2836
2852
|
/**
|
|
2837
2853
|
* Subscribe to changes to the editor state.
|
|
2838
2854
|
* @param callback - This function is called at the end of the engine update, if the editor state has changed.
|
|
@@ -3210,7 +3226,7 @@ export declare type EffectTypeLonghand = `//ly.img.ubq/effect/${EffectTypeShorth
|
|
|
3210
3226
|
* using `cesdk.engine.editor.createEffect(id)`.
|
|
3211
3227
|
* @public
|
|
3212
3228
|
*/
|
|
3213
|
-
export declare type EffectTypeShorthand = 'adjustments' | 'cross_cut' | 'dot_pattern' | 'duotone_filter' | 'extrude_blur' | 'glow' | 'half_tone' | 'linocut' | 'liquid' | 'lut_filter' | 'mirror' | 'outliner' | 'pixelize' | 'posterize' | 'radial_pixel' | 'sharpie' | 'shifter' | 'tilt_shift' | 'tv_glitch' | 'vignette';
|
|
3229
|
+
export declare type EffectTypeShorthand = 'adjustments' | 'cross_cut' | 'dot_pattern' | 'duotone_filter' | 'extrude_blur' | 'glow' | 'green_screen' | 'half_tone' | 'linocut' | 'liquid' | 'lut_filter' | 'mirror' | 'outliner' | 'pixelize' | 'posterize' | 'radial_pixel' | 'recolor' | 'sharpie' | 'shifter' | 'tilt_shift' | 'tv_glitch' | 'vignette';
|
|
3214
3230
|
|
|
3215
3231
|
/**
|
|
3216
3232
|
* @public
|