@manycore/custom-sdk 3.0.0 → 3.0.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.
Files changed (3) hide show
  1. package/index.d.ts +19 -0
  2. package/index.js +22 -22
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -3883,6 +3883,25 @@ export declare class FittingDesignService extends BaseService {
3883
3883
  * @ignore
3884
3884
  */
3885
3885
  updateCameraType(type: CameraType): void;
3886
+ /**
3887
+ * 切换相机的焦点
3888
+ * @param params.modelId 焦点对准的模型
3889
+ * @param params.keepView 是否保持原有的视野 默认true
3890
+ */
3891
+ lookAt(params: {
3892
+ modelId: string;
3893
+ keepView?: boolean;
3894
+ }): Promise<void>;
3895
+ /**
3896
+ * 适配场景中对象比例
3897
+ * @param params.modelId 适配的对象
3898
+ * @param params.scale 比例,单位%,100表示将对象撑满屏幕,50表示将对象放置到屏幕的一半位置
3899
+ * @warning 该方法不稳定,存在未来升级下线的可能
3900
+ */
3901
+ unstable__adaptViewer(params: {
3902
+ modelId: string;
3903
+ scale: number;
3904
+ }): Promise<void>;
3886
3905
  }
3887
3906
 
3888
3907
  /**