@realsee/dnalogel 3.75.1 → 3.76.0-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.76.0
3
+
4
+ - feat(Sculpt): 添加 hitFilter 配置,支持自定义拾取点过滤函数
5
+
2
6
  ## 3.75.1
3
7
 
4
8
  - fix(panoTagPlugins): 1.roomlabel在隐藏时仍会选中。2.分间名称在重复创建,未销毁
@@ -32,7 +32,7 @@ export interface SculptConfig {
32
32
  /**
33
33
  * @description 放大镜配置
34
34
  * 设置为 null 或 false 可禁用放大镜功能
35
- * @default { width: 190, height: 190, scale: 2, dragEnabled: true }
35
+ * @default *{ width: 190, height: 190, scale: 2, dragEnabled: true }*
36
36
  */
37
37
  magnifier?: MagnifierParameter | null | false;
38
38
  /**
@@ -41,6 +41,11 @@ export interface SculptConfig {
41
41
  * @default false
42
42
  */
43
43
  hideCursorCircle?: boolean;
44
+ /**
45
+ * @description 是否自定义拾取点过滤函数
46
+ * @default false
47
+ */
48
+ hitFilter?: (intersect: THREE.Intersection) => boolean;
44
49
  }
45
50
  interface Data {
46
51
  items: Array<BuiltInData>;
@@ -236,7 +241,11 @@ export declare const SculptPlugin: (five: Five, themeOrParams?: Partial<{
236
241
  polyline: Partial<import("./typings").LineMeshStyle>;
237
242
  polygon: Partial<import("./typings").AreaStyle>;
238
243
  prism: Partial<import("./typings").PrismStyle>;
239
- rectangle: Partial<import("./typings").RectangleStyle>;
244
+ rectangle: Partial<import("./typings").RectangleStyle>; /**
245
+ * @description prism 检测到自相交时的回调
246
+ * @param item Prism 实例
247
+ * @param point 尝试添加但被拒绝的点坐标
248
+ */
240
249
  circle: Partial<import("./typings").CircleStyle>;
241
250
  cylinder: Partial<import("./typings").CircleStyle>;
242
251
  box: Partial<import("./typings").BoxStyle>;