@realsee/dnalogel 3.49.5 → 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.
- package/CHANGELOG.md +3 -0
- package/dist/Sculpt/Objects/Base/index.d.ts +4 -0
- package/dist/Sculpt/index.d.ts +3 -1
- package/dist/Sculpt/utils/Modules/Cursor.d.ts +8 -0
- package/dist/index.cjs.js +153 -153
- package/dist/index.js +3258 -3232
- package/dist/index.umd.js +161 -161
- package/dist/shared-utils/five/FiveDomEvents.d.ts +2 -0
- package/libs/CruisePlugin/Move.js +3 -2
- package/libs/CruisePlugin/Work.js +3 -2
- package/libs/CruisePlugin/index.js +7 -6
- package/libs/GuideLinePlugin/Controller.js +5 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
- package/libs/GuideLinePlugin/index.js +7 -6
- package/libs/ModelMakerPlugin/Controller.js +3 -2
- package/libs/ModelMakerPlugin/index.js +3 -2
- package/libs/ModelMakerPlugin/item/baseItem.js +6 -5
- package/libs/ModelMakerPlugin/item/boxItem.js +3 -2
- package/libs/ModelMakerPlugin/item/polygonItem.js +3 -2
- package/libs/ModelMakerPlugin/item/prismItem.js +3 -2
- package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +3 -2
- package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
- package/libs/PanoTagPlugin/controller/index.js +6 -5
- package/libs/PanoTagPlugin/index.js +12 -11
- package/libs/Sculpt/Objects/Base/index.d.ts +4 -0
- package/libs/Sculpt/Objects/Base/index.js +28 -20
- package/libs/Sculpt/index.d.ts +3 -1
- package/libs/Sculpt/index.js +74 -74
- package/libs/Sculpt/utils/Modules/Cursor.d.ts +8 -0
- package/libs/Sculpt/utils/Modules/Cursor.js +24 -13
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/five/FiveDomEvents.d.ts +2 -0
- package/libs/shared-utils/five/FiveDomEvents.js +73 -65
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -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>;
|
package/dist/Sculpt/index.d.ts
CHANGED
|
@@ -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,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;
|