@realsee/dnalogel 3.49.4 → 3.49.6

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 (39) hide show
  1. package/CHANGELOG.md +7 -1
  2. package/dist/Sculpt/Objects/Base/index.d.ts +4 -0
  3. package/dist/Sculpt/index.d.ts +3 -1
  4. package/dist/Sculpt/typings/index.d.ts +10 -11
  5. package/dist/Sculpt/utils/Modules/Cursor.d.ts +8 -0
  6. package/dist/index.cjs.js +153 -153
  7. package/dist/index.js +3258 -3232
  8. package/dist/index.umd.js +161 -161
  9. package/dist/shared-utils/five/FiveDomEvents.d.ts +2 -0
  10. package/libs/CruisePlugin/Move.js +3 -2
  11. package/libs/CruisePlugin/Work.js +3 -2
  12. package/libs/CruisePlugin/index.js +7 -6
  13. package/libs/GuideLinePlugin/Controller.js +5 -4
  14. package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
  15. package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
  16. package/libs/GuideLinePlugin/index.js +7 -6
  17. package/libs/ModelMakerPlugin/Controller.js +3 -2
  18. package/libs/ModelMakerPlugin/index.js +3 -2
  19. package/libs/ModelMakerPlugin/item/baseItem.js +6 -5
  20. package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
  21. package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
  22. package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
  23. package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +3 -2
  24. package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
  25. package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
  26. package/libs/PanoTagPlugin/controller/index.js +6 -5
  27. package/libs/PanoTagPlugin/index.js +12 -11
  28. package/libs/Sculpt/Objects/Base/index.d.ts +4 -0
  29. package/libs/Sculpt/Objects/Base/index.js +28 -20
  30. package/libs/Sculpt/index.d.ts +3 -1
  31. package/libs/Sculpt/index.js +74 -74
  32. package/libs/Sculpt/typings/index.d.ts +10 -11
  33. package/libs/Sculpt/utils/Modules/Cursor.d.ts +8 -0
  34. package/libs/Sculpt/utils/Modules/Cursor.js +24 -13
  35. package/libs/base/BasePlugin.js +1 -1
  36. package/libs/shared-utils/five/FiveDomEvents.d.ts +2 -0
  37. package/libs/shared-utils/five/FiveDomEvents.js +73 -65
  38. package/libs/shared-utils/logger.js +1 -1
  39. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # CHANGELOG
2
+ ## 3.49.6
3
+ - feat(Sculpt): 支持点击出现删除按钮。
4
+
5
+ ## 3.49.5
6
+ - chore(Sculpt): 优化 `Theme` 类型。
7
+
2
8
  ## 3.49.4
3
- - chore(Sculpt): 修改 `theme` 属性访问权限
9
+ - chore(Sculpt): 修改 `theme` 属性访问权限。
4
10
 
5
11
  ## 3.49.3
6
12
  - fix(PanoTagPlugin): 修复插件hide的情况下,在页面resize后可见状态错误的问题。
@@ -96,6 +96,10 @@ Config extends BaseObjectConfig = BaseObjectConfig> extends IObject3D {
96
96
  * @description 取消高亮当前物体
97
97
  */
98
98
  unhighlight(): void;
99
+ /**
100
+ * @description 显示删除按钮
101
+ */
102
+ showDeleteButton(clientX: number, clientY: number): void;
99
103
  protected applyObjectMatrixWorld<P extends THREE.Vector3 | THREE.Vector3[]>(point: P): P;
100
104
  protected applyObjectQuaternion<P extends THREE.Vector3 | THREE.Vector3[]>(point: P): P;
101
105
  abstract create(...args: any): Promise<void>;
@@ -20,10 +20,11 @@ interface Data {
20
20
  type Event = {
21
21
  /**
22
22
  * @description: 点击事件
23
+ * @param {MouseEvent} e 鼠标事件
23
24
  * @param {BuiltInItem} item 点击的物体
24
25
  * 返回 false 来禁用 Five 默认行为
25
26
  */
26
- click: (item: BuiltInItem) => void | false;
27
+ click: (e: MouseEvent, item: BuiltInItem) => void | false;
27
28
  };
28
29
  export declare class Sculpt extends Subscribe<Event> {
29
30
  static modules: {
@@ -69,6 +70,7 @@ export declare class Sculpt extends Subscribe<Event> {
69
70
  } | {
70
71
  readonly points: [number, number, number][]; /**
71
72
  * @description: 点击事件
73
+ * @param {MouseEvent} e 鼠标事件
72
74
  * @param {BuiltInItem} item 点击的物体
73
75
  * 返回 false 来禁用 Five 默认行为
74
76
  */
@@ -1,4 +1,3 @@
1
- import type { PartialDeep } from 'type-fest';
2
1
  import type { SimplifyDeep } from './utils.type';
3
2
  export type { SimplifyDeep };
4
3
  import type { Point, PointImportData } from '../Objects/Point';
@@ -49,14 +48,14 @@ export type { BoxStyle };
49
48
  export type { AreaStyle };
50
49
  export type BuiltInData = PolylineImportData | PointImportData | PolygonImportData | PrismImportData | RectangleImportData | CircleImportData | CylinderImportData | BoxImportData | LineImportData;
51
50
  export type BuiltInItem = Polyline | Point | Polygon | Prism | Rectangle | Circle | Cylinder | Box | Line;
52
- export type Theme = PartialDeep<{
53
- point: PointStyle;
54
- line: LineMeshStyle;
55
- polyline: PolylineStyle;
56
- polygon: AreaStyle;
57
- prism: PrismStyle;
58
- rectangle: RectangleStyle;
59
- circle: CircleStyle;
60
- cylinder: CylinderStyle;
61
- box: BoxStyle;
51
+ export type Theme = Partial<{
52
+ point: Partial<PointStyle>;
53
+ line: Partial<LineMeshStyle>;
54
+ polyline: Partial<PolylineStyle>;
55
+ polygon: Partial<AreaStyle>;
56
+ prism: Partial<PrismStyle>;
57
+ rectangle: Partial<RectangleStyle>;
58
+ circle: Partial<CircleStyle>;
59
+ cylinder: Partial<CylinderStyle>;
60
+ box: Partial<BoxStyle>;
62
61
  }>;
@@ -1,11 +1,19 @@
1
1
  type CursorType = 'auto' | 'pen' | 'pen-forbidden' | 'pen-crosshair' | 'pne-polygon' | 'pen-circle' | 'crosshair-rectangle' | 'crosshair-circle';
2
2
  export declare class Cursor {
3
3
  private container;
4
+ private deleteButton?;
4
5
  constructor(container: HTMLElement);
5
6
  /**
6
7
  * @param type - The type of the cursor.
7
8
  */
8
9
  setType(type: CursorType): void;
10
+ showDeleteButton(params: {
11
+ clientX: number;
12
+ clientY: number;
13
+ container: HTMLElement;
14
+ onClick: () => void;
15
+ }): HTMLElement;
16
+ removeDeleteButton(): void;
9
17
  tip(tip: string): () => void;
10
18
  closeTip(): void;
11
19
  reset(): void;