@realsee/dnalogel 3.72.4-alpha.2 → 3.72.5-alpha.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.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
1
  # CHANGELOG
2
+ ## 3.72.5
3
+
4
+ - fix(*): 修复文本单词被截断换行问题,采用渐进降级策略(保持单词完整 → 连字符断词 → 省略号截断)
5
+
2
6
  ## 3.72.4
3
7
 
4
8
  - fix(ModelChassisCompassPlugin): 修复指南针重复load未清理资源导致内存泄漏
@@ -12,6 +12,7 @@ import type { PartialObjectDeep } from '../../../typings/typings';
12
12
  import type { LiteralUnion } from 'type-fest';
13
13
  import type { CSS3DObjectPlus } from '../../../shared-utils/CSS3DRender/CSS3DObject';
14
14
  import type { Rectangle } from '../../../Sculpt/Objects/Rectangle';
15
+ import { Line } from '@realsee/five/line';
15
16
  /**
16
17
  * @description 标签实例
17
18
  * @property `id` 标签id
@@ -62,9 +63,11 @@ export declare abstract class BaseTag<C extends TagContentType = TagContentType,
62
63
  } | null;
63
64
  normal: Tag<C, S>['normal'];
64
65
  mediaPlane?: ImagePlane | VideoPlane;
66
+ tagNormalLine: Line;
65
67
  hooks: Subscribe<TagEvents<C>>;
66
68
  zIndex?: number;
67
69
  manuallyOperated: boolean;
70
+ normalLineLength?: number;
68
71
  play?: () => void;
69
72
  pause?: () => void;
70
73
  get five(): import("@realsee/five").Five;
@@ -114,6 +117,11 @@ export declare abstract class BaseTag<C extends TagContentType = TagContentType,
114
117
  targetMode?: 'Panorama' | 'Mapview';
115
118
  pointConfig?: Parameters<typeof lookPoint>[2];
116
119
  }): Promise<this>;
120
+ /**
121
+ * @description 获取额外的闪烁目标(子类可以重写此方法添加额外的闪烁目标,如法线等)
122
+ * @returns 额外的闪烁目标或目标数组,返回 null/undefined 表示没有额外目标
123
+ */
124
+ protected getAdditionalBlinkTargets(): any | any[] | null;
117
125
  /**
118
126
  * @description 闪烁
119
127
  */
@@ -7,7 +7,11 @@ export type PointTagInterface<C extends TagContentType = TagContentType> = TagIn
7
7
  export declare class PointTag<C extends TagContentType = TagContentType> extends BaseTag<C, '2DPoint' | '3DPoint'> {
8
8
  private __Object__;
9
9
  private requestIdleCallbackId?;
10
+ private iconPixelGap;
11
+ private _temp;
12
+ private _lastUpdateCache;
10
13
  constructor(plugin: PanoTagPluginController, tagData: TagData);
14
+ initialTagLine(): void;
11
15
  /**
12
16
  * @description 展开自己,收起其他标签
13
17
  */
@@ -22,6 +26,11 @@ export declare class PointTag<C extends TagContentType = TagContentType> extends
22
26
  */
23
27
  setUnfold(unfolded: boolean): void;
24
28
  setPosition(position: ArrayPosition): void;
29
+ /**
30
+ * 更新标签连线的位置,使其端点与icon保持固定像素距离
31
+ * 使用屏幕空间反投影方法,确保任意视角下都保持固定像素距离
32
+ */
33
+ private updateTagNormalLinePosition;
25
34
  updateScreenPosition(params?: {
26
35
  force?: boolean;
27
36
  }): void;
@@ -29,4 +38,8 @@ export declare class PointTag<C extends TagContentType = TagContentType> extends
29
38
  setData(...data: Parameters<InstanceType<typeof BaseTag<C, '2DPoint' | '3DPoint'>>['setData']>): void;
30
39
  updateUnfoldedByPanoIndex(): void;
31
40
  computeNormal(): THREE.Vector3;
41
+ /**
42
+ * @description 获取额外的闪烁目标,包括法线(如果有)
43
+ */
44
+ protected getAdditionalBlinkTargets(): any | any[] | null;
32
45
  }
@@ -356,6 +356,21 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
356
356
  */
357
357
  beforeOpen?: (tag?: TagInstance) => boolean | undefined;
358
358
  };
359
+ /**
360
+ * @description 标签法线相关配置
361
+ */
362
+ tagNormalLineConfig?: {
363
+ /**
364
+ * @description 是否启用标签法线
365
+ * @default true
366
+ */
367
+ enabled?: boolean;
368
+ /**
369
+ * @description 标签法线宽度
370
+ * @default 1.2
371
+ */
372
+ lineWidth?: number;
373
+ };
359
374
  }
360
375
  export declare const defaultGlobalConfig: TagConfig;
361
376
  type ConfigFunction = (five: Five, tagState: {
@@ -55,6 +55,8 @@ export interface TagIconUrl {
55
55
  scale?: number;
56
56
  /** 帧动画配置 */
57
57
  animation?: TagIconAnimationConfig;
58
+ /** 标签法线长度 */
59
+ normalLen?: number;
58
60
  }
59
61
  export interface TagStyle {
60
62
  /** 小圆点样式 */