@cesdk/node 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.
|
File without changes
|
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -789,6 +789,18 @@ export declare class BlockAPI {
|
|
|
789
789
|
* @returns A list of the property names.
|
|
790
790
|
*/
|
|
791
791
|
findAllProperties(id: DesignBlockId): string[];
|
|
792
|
+
/**
|
|
793
|
+
* Check if a property with a given name is readable
|
|
794
|
+
* @param property - The name of the property whose type should be queried.
|
|
795
|
+
* @returns Whether the property is readable or not. Will return false for unknown properties
|
|
796
|
+
*/
|
|
797
|
+
isPropertyReadable(property: string): boolean;
|
|
798
|
+
/**
|
|
799
|
+
* Check if a property with a given name is writable
|
|
800
|
+
* @param property - The name of the property whose type should be queried.
|
|
801
|
+
* @returns Whether the property is writable or not. Will return false for unknown properties
|
|
802
|
+
*/
|
|
803
|
+
isPropertyWritable(property: string): boolean;
|
|
792
804
|
/**
|
|
793
805
|
* Get the type of a property given its name.
|
|
794
806
|
* @param property - The name of the property whose type should be queried.
|
|
@@ -2595,6 +2607,13 @@ export declare class SceneAPI {
|
|
|
2595
2607
|
* @returns A promise that resolves once the zoom was set or rejects with an error otherwise.
|
|
2596
2608
|
*/
|
|
2597
2609
|
zoomToBlock(id: DesignBlockId, paddingLeft?: number, paddingTop?: number, paddingRight?: number, paddingBottom?: number): Promise<void>;
|
|
2610
|
+
/**
|
|
2611
|
+
* Subscribe to changes to the zoom level.
|
|
2612
|
+
* @param callback - This function is called at the end of the engine update, if the zoom level has changed.
|
|
2613
|
+
* @returns A method to unsubscribe.
|
|
2614
|
+
* @privateRemarks This will currently fire on _all_ changes to camera properties
|
|
2615
|
+
*/
|
|
2616
|
+
onZoomLevelChanged(callback: (zoomLevel: number) => void): () => void;
|
|
2598
2617
|
/**
|
|
2599
2618
|
* Converts all values of the current scene into the given design unit.
|
|
2600
2619
|
* @param designUnit - The new design unit of the scene
|