@cesdk/engine 1.9.0-preview.1 → 1.9.0-preview.2
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.
|
Binary file
|
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -366,6 +366,7 @@ export declare type BlendMode = 'PassThrough' | 'Normal' | 'Darken' | 'Multiply'
|
|
|
366
366
|
* @public
|
|
367
367
|
*/
|
|
368
368
|
export declare class Block extends Entity {
|
|
369
|
+
#private;
|
|
369
370
|
effects: ReadWriteChannelSync<number[]>;
|
|
370
371
|
soloPlaybackEnabled: ReadWriteChannelSync<boolean>;
|
|
371
372
|
trimOffset: ReadWriteChannelSync<number>;
|
|
@@ -375,8 +376,11 @@ export declare class Block extends Entity {
|
|
|
375
376
|
selection: ReadWriteChannelSync<boolean>;
|
|
376
377
|
videoMode: ReadWriteChannelSync<boolean>;
|
|
377
378
|
duration: ReadWriteChannelSync<number>;
|
|
379
|
+
name: ReadWriteChannelSync<string>;
|
|
378
380
|
muted: ReadWriteChannelSync<boolean>;
|
|
379
381
|
avResourceTotalDuration: ReadWriteChannelSync<number>;
|
|
382
|
+
timeOffset: ReadWriteChannelSync<number>;
|
|
383
|
+
|
|
380
384
|
|
|
381
385
|
}
|
|
382
386
|
|
|
@@ -811,6 +815,18 @@ export declare class BlockAPI {
|
|
|
811
815
|
* @returns A list of the property names.
|
|
812
816
|
*/
|
|
813
817
|
findAllProperties(id: DesignBlockId): string[];
|
|
818
|
+
/**
|
|
819
|
+
* Check if a property with a given name is readable
|
|
820
|
+
* @param property - The name of the property whose type should be queried.
|
|
821
|
+
* @returns Whether the property is readable or not. Will return false for unknown properties
|
|
822
|
+
*/
|
|
823
|
+
isPropertyReadable(property: string): boolean;
|
|
824
|
+
/**
|
|
825
|
+
* Check if a property with a given name is writable
|
|
826
|
+
* @param property - The name of the property whose type should be queried.
|
|
827
|
+
* @returns Whether the property is writable or not. Will return false for unknown properties
|
|
828
|
+
*/
|
|
829
|
+
isPropertyWritable(property: string): boolean;
|
|
814
830
|
/**
|
|
815
831
|
* Get the type of a property given its name.
|
|
816
832
|
* @param property - The name of the property whose type should be queried.
|
|
@@ -2777,6 +2793,13 @@ export declare class SceneAPI {
|
|
|
2777
2793
|
* @returns A promise that resolves once the zoom was set or rejects with an error otherwise.
|
|
2778
2794
|
*/
|
|
2779
2795
|
zoomToBlock(id: DesignBlockId, paddingLeft?: number, paddingTop?: number, paddingRight?: number, paddingBottom?: number): Promise<void>;
|
|
2796
|
+
/**
|
|
2797
|
+
* Subscribe to changes to the zoom level.
|
|
2798
|
+
* @param callback - This function is called at the end of the engine update, if the zoom level has changed.
|
|
2799
|
+
* @returns A method to unsubscribe.
|
|
2800
|
+
* @privateRemarks This will currently fire on _all_ changes to camera properties
|
|
2801
|
+
*/
|
|
2802
|
+
onZoomLevelChanged(callback: (zoomLevel: number) => void): () => void;
|
|
2780
2803
|
/**
|
|
2781
2804
|
* Converts all values of the current scene into the given design unit.
|
|
2782
2805
|
* @param designUnit - The new design unit of the scene
|