@realsee/dnalogel 2.28.1 → 2.28.3

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.
@@ -14,6 +14,8 @@ export declare class Controller extends BasePlugin.Controller<PluginType.State,
14
14
  data?: PluginType.PluginData;
15
15
  /** tag 容器 */
16
16
  tagDomContainer: HTMLDivElement;
17
+ /** 用于监听容器尺寸变化的 iframe */
18
+ resizeIframe: HTMLIFrameElement;
17
19
  /** 插件配置项 */
18
20
  get config(): {
19
21
  modelDepthTest: boolean;
@@ -1,4 +1,4 @@
1
1
  import type { Five } from '@realsee/five';
2
2
  import type * as AreaMakerPluginType from './typing';
3
- export declare const AreaMakerPlugin: (five: Five) => AreaMakerPluginType.AreaMakerController;
3
+ export declare const AreaMakerPlugin: (five: Five, params?: AreaMakerPluginType.Params) => AreaMakerPluginType.AreaMakerController;
4
4
  export type { AreaMakerPluginType };
@@ -56,11 +56,16 @@ export declare class AreaMakerItem {
56
56
  };
57
57
  /** 标注标签的显示层级 */
58
58
  tagZIndex: number;
59
+ /** 标注实例的事件处理器 */
59
60
  hooks: Subscribe<PluginType.AreaMakerItemEventMap>;
60
61
  /** Plugin 实例 */
61
62
  private plugin;
62
63
  /** 标注透明度动画 */
63
64
  private opacityAnime?;
65
+ /** 是否在容器 resize 动画中 */
66
+ private isInContainerResizeAnimation;
67
+ /** 监听容器 resize 的计时器 id,用于判断 resize 过程是否结束 */
68
+ private containerResizeTimeoutID;
64
69
  constructor(plugin: Controller, data: PluginType.ServerAreaMakerItem);
65
70
  /** 挂载标注 */
66
71
  mount(): void;
@@ -94,6 +99,8 @@ export declare class AreaMakerItem {
94
99
  private doOpacityAnime;
95
100
  /** 插件 Config 变化时更新自身 depthTest */
96
101
  private onPluginConfigChange;
102
+ /** 插件整体可见性变化时,需要更新自身可见性 */
103
+ private onPluginStateChange;
97
104
  /** 更新标注可见性 */
98
105
  private updateVisible;
99
106
  /** 检测标注是否可见 */
@@ -110,5 +117,7 @@ export declare class AreaMakerItem {
110
117
  private checkTagVisible;
111
118
  /** 相机位姿发生变化时,更新标签 */
112
119
  private onFiveCameraUpdate;
120
+ /** tag container DOM 发生 resize */
121
+ private onContainerResize;
113
122
  }
114
123
  export {};