@realsee/dnalogel 3.73.4 → 3.74.0-alpha.0

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,14 +1,25 @@
1
1
  # CHANGELOG
2
+
3
+ ## 3.74.0-alpha.0
4
+
5
+ - feat(Sculpt): 多边形添加事件 `polygon.experimental_self_intersect` 和 `polygon.experimental_point_will_add`
6
+ - feat(Sculpt): 多边形添加 `experimental_max_point_count` 控制最多能绘制的点数
7
+
8
+ ## 3.73.5
9
+
10
+ - fix(Object3DHelper): 修复垂直拖拽位置不准
11
+
2
12
  ## 3.73.4
3
13
 
4
- - fix(MapviewFloorplanPlugin): 新增虚拟屏幕所属楼层,更新planeTag可设置opacity属性
14
+ - fix(MapviewFloorplanPlugin): 新增虚拟屏幕所属楼层,更新 planeTag 可设置 opacity 属性
15
+
5
16
  ## 3.73.3
6
17
 
7
18
  - fix(MeasurePlugin): 修复测量事件修改不生效的问题
8
19
 
9
20
  ## 3.73.2
10
21
 
11
- - feat(MeasurePlugin): 测量完成时,在发送的measureEnd事件中添加当次的所有points
22
+ - feat(MeasurePlugin): 测量完成时,在发送的 measureEnd 事件中添加当次的所有 points
12
23
 
13
24
  ## 3.73.1
14
25
 
@@ -20,11 +31,11 @@
20
31
 
21
32
  ## 3.72.5
22
33
 
23
- - fix(*): 修复文本单词被截断换行问题,采用渐进降级策略(保持单词完整 → 连字符断词 → 省略号截断)
34
+ - fix(): 修复文本单词被截断换行问题,采用渐进降级策略(保持单词完整 → 连字符断词 → 省略号截断)
24
35
 
25
36
  ## 3.72.4
26
37
 
27
- - fix(ModelChassisCompassPlugin): 修复指南针重复load未清理资源导致内存泄漏
38
+ - fix(ModelChassisCompassPlugin): 修复指南针重复 load 未清理资源导致内存泄漏
28
39
 
29
40
  ## 3.72.3
30
41
 
@@ -14,11 +14,24 @@ export type PolygonCreateConfig = Partial<PolygonStyle & CreateLimitConfig & Pol
14
14
  onPointPlaced?: (points: THREE.Vector3[]) => void;
15
15
  onUndo?: () => void;
16
16
  onRedo?: () => void;
17
+ /**
18
+ * @description 检测到自相交时的回调
19
+ * @param point 尝试添加但被拒绝的点坐标
20
+ */
21
+ __onSelfIntersect?: (point: THREE.Vector3) => void;
22
+ /**
23
+ * @description 将要添加的下一个点
24
+ */
25
+ __onWillAddPoint?: (point: THREE.Vector3) => void;
17
26
  /**
18
27
  * @description 检测是否自相交,如果自交,禁止添加下一个点
19
28
  * @default false
20
29
  */
21
30
  experimental_self_intersect_check?: boolean;
31
+ /**
32
+ * 最多允许能添加的点数
33
+ */
34
+ experimental_max_point_count?: number;
22
35
  };
23
36
  export declare class Polygon extends BaseObject<PolygonImportData> {
24
37
  readonly type = "Polygon";
@@ -53,6 +53,18 @@ type Event = {
53
53
  * 返回 false 来禁用 Five 默认行为
54
54
  */
55
55
  click: (e: MouseEvent, item: BuiltInItem) => void | false;
56
+ /**
57
+ * @description 当 Polygon 创建时检测到自相交时触发(需开启 experimental_self_intersect_check)
58
+ * @param item Polygon 实例
59
+ * @param point 尝试添加但被拒绝的点坐标
60
+ */
61
+ 'polygon.experimental_self_intersect': (item: Polygon, point: THREE.Vector3) => void;
62
+ /**
63
+ * @description polygon 将要添加到下一个点
64
+ * @param item Polygon 实例
65
+ * @param point polygon 将要添加到下一个点到坐标
66
+ */
67
+ 'polygon.experimental_point_will_add': (item: Polygon, point: THREE.Vector3) => void;
56
68
  };
57
69
  export declare class Sculpt extends Subscribe<Event> {
58
70
  static modules: {