@realsee/dnalogel 3.78.0-alpha.4 → 3.78.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 +40 -10
- package/dist/DigitalPerformancePlugin/controller/index.d.ts +224 -0
- package/dist/DigitalPerformancePlugin/core/DigitalHuman.d.ts +55 -0
- package/dist/DigitalPerformancePlugin/core/DigitalPlayground.d.ts +40 -0
- package/dist/DigitalPerformancePlugin/core/DigitalStateMachine.d.ts +150 -0
- package/dist/DigitalPerformancePlugin/core/Trace.d.ts +9 -0
- package/dist/DigitalPerformancePlugin/index.d.ts +11 -0
- package/dist/DigitalPerformancePlugin/mock.d.ts +76 -0
- package/dist/DigitalPerformancePlugin/typings/index.d.ts +79 -0
- package/dist/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +0 -6
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +20 -2
- package/dist/Sculpt/Meshes/Line.d.ts +4 -0
- package/dist/Sculpt/Objects/Base/Editor.d.ts +9 -2
- package/dist/index.cjs.js +95 -82
- package/dist/index.d.ts +1 -0
- package/dist/index.js +14187 -12436
- package/dist/index.umd.js +87 -74
- package/dist/shared-utils/five/getFiveFromParentChain.d.ts +8 -0
- package/libs/AreaMakerPlugin/Controller.js +3 -2
- package/libs/AreaMakerPlugin/index.js +3 -2
- package/libs/AreaMakerPlugin/utils/Item.js +3 -2
- package/libs/CSS3DRenderPlugin/Controller.js +3 -2
- package/libs/CSS3DRenderPlugin/index.js +6 -5
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +39 -38
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +10 -9
- package/libs/CruisePlugin/BaseController.js +5 -4
- package/libs/CruisePlugin/Move.js +3 -2
- package/libs/CruisePlugin/Work.js +3 -2
- package/libs/CruisePlugin/index.js +7 -6
- package/libs/CurrentPanoImagePlugin/Controller.js +15 -14
- package/libs/CurrentPanoImagePlugin/index.js +4 -3
- package/libs/DigitalPerformancePlugin/controller/index.d.ts +2 -2
- package/libs/DigitalPerformancePlugin/controller/index.js +164 -173
- package/libs/DigitalPerformancePlugin/core/DigitalHuman.d.ts +16 -6
- package/libs/DigitalPerformancePlugin/core/DigitalHuman.js +128 -102
- package/libs/DigitalPerformancePlugin/core/DigitalPlayground.d.ts +11 -5
- package/libs/DigitalPerformancePlugin/core/DigitalPlayground.js +84 -74
- package/libs/DigitalPerformancePlugin/core/DigitalStateMachine.d.ts +7 -0
- package/libs/DigitalPerformancePlugin/mock.d.ts +6 -0
- package/libs/DigitalPerformancePlugin/mock.js +272 -274
- package/libs/GuideLinePlugin/Controller.js +7 -6
- package/libs/GuideLinePlugin/GuideLineItem.js +5 -4
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +51 -48
- package/libs/GuideLinePlugin/GuideLineModeItem.js +5 -2
- package/libs/GuideLinePlugin/index.js +7 -6
- package/libs/MeasurePlugin/Controller.js +11 -10
- package/libs/MeasurePlugin/index.js +5 -4
- package/libs/MeasurePlugin/utils/MeasureMesh.js +3 -2
- package/libs/ModelChassisCompassPlugin/Plugin.js +4 -3
- package/libs/ModelChassisCompassPlugin/index.js +1 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +6 -5
- package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
- package/libs/ModelMakerPlugin/Controller.js +3 -2
- package/libs/ModelMakerPlugin/index.js +3 -2
- package/libs/ModelMakerPlugin/item/baseItem.js +3 -2
- 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/ModelTVVideoPlugin/Plugin.js +4 -3
- package/libs/ModelTVVideoPlugin/index.js +3 -2
- package/libs/ModelViewPlugin/Plugin.js +20 -19
- package/libs/ModelViewPlugin/index.js +1 -0
- package/libs/Object3DHelperPlugin/Controller.js +3 -2
- package/libs/Object3DHelperPlugin/index.js +6 -5
- package/libs/PanoCompassPlugin/Controller.js +3 -2
- package/libs/PanoCompassPlugin/index.js +4 -3
- package/libs/PanoDoorLabelPlugin/Controller.js +24 -23
- package/libs/PanoDoorLabelPlugin/index.js +4 -3
- package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
- package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/index.js +3 -2
- package/libs/PanoMeasurePlugin/Model/area.js +3 -2
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +16 -15
- package/libs/PanoMeasurePlugin/index.js +14 -13
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -2
- package/libs/PanoRulerProPlugin/Controller.js +3 -2
- package/libs/PanoRulerProPlugin/RulerItems.js +42 -41
- package/libs/PanoRulerProPlugin/index.js +4 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +34 -33
- package/libs/PanoSpatialTagPlugin/index.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +141 -138
- package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopoverToolBar.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/TagPopover/index.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
- package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
- package/libs/PanoTagPlugin/Components/TagItem.js +131 -122
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/BoxTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.js +1 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +0 -6
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.js +2 -90
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PolygonTag.js +31 -29
- package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +3 -2
- package/libs/PanoTagPlugin/controller/index.js +30 -29
- package/libs/PanoTagPlugin/index.js +12 -11
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +20 -2
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +3 -2
- package/libs/PanoTagPlugin/utils/tag/format.js +3 -2
- package/libs/PanoVideoPlugin/Controller.js +9 -8
- package/libs/PanoVideoPlugin/VideoMeshController.js +3 -2
- package/libs/PanoVideoPlugin/index.js +6 -5
- package/libs/PipelinePlugin/Controller.js +3 -2
- package/libs/PipelinePlugin/index.js +4 -3
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +3 -2
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -2
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +1 -0
- package/libs/Sculpt/Meshes/Line.d.ts +4 -0
- package/libs/Sculpt/Meshes/Line.js +85 -76
- package/libs/Sculpt/Meshes/Point.js +28 -28
- package/libs/Sculpt/Meshes/Polygon.js +43 -43
- package/libs/Sculpt/Objects/Base/Editor.d.ts +9 -2
- package/libs/Sculpt/Objects/Base/Editor.js +72 -63
- package/libs/Sculpt/index.js +1 -1
- package/libs/Sculpt/utils/Modules/Cursor.js +7 -7
- package/libs/base/BasePlugin.js +5 -5
- package/libs/floorplan/FloorplanGuidePlugin/Controller.js +3 -2
- package/libs/floorplan/FloorplanGuidePlugin/index.js +4 -3
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +4 -3
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/ModelFloorplanPlugin/index.js +4 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +3 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +4 -3
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +3 -2
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +4 -3
- package/libs/index.d.ts +1 -0
- package/libs/index.js +162 -150
- package/libs/shared-utils/five/getFiveFromParentChain.d.ts +8 -0
- package/libs/shared-utils/five/getFiveFromParentChain.js +20 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/utils/PointHelper2.js +1 -0
- package/libs/shared-utils/url/replace-static-prefix.js +12 -7
- package/package.json +3 -3
- package/libs/PanoTagPlugin/controller/Tag/MaskTag1.d.ts +0 -202
- package/libs/PanoTagPlugin/controller/Tag/MaskTag1.js +0 -617
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@realsee/dnalogel",
|
|
3
|
-
"version": "3.78.0
|
|
3
|
+
"version": "3.78.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./libs/index.js",
|
|
6
6
|
"types": "./libs/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"postpublish": "cnpm sync @realsee/dnalogel",
|
|
30
30
|
"lint": "eslint . --ext .ts,.tsx,.js,.jsx,.svelte",
|
|
31
31
|
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,svelte,scss,css,md,json}\"",
|
|
32
|
-
"test": "
|
|
32
|
+
"test": "vitest run --config vitest.config.ts"
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
35
|
"libs",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@babel/core": "^7.22.9",
|
|
49
|
-
"@realsee/five": "6.6.
|
|
49
|
+
"@realsee/five": "6.6.18",
|
|
50
50
|
"@sveltejs/vite-plugin-svelte": "^2.4.2",
|
|
51
51
|
"@tsconfig/svelte": "^4.0.1",
|
|
52
52
|
"@tweenjs/tween.js": "^23.1.1",
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import type PanoTagPluginController from '..';
|
|
2
|
-
import type { TagContentType, Tag as TagData, TagInstance, TagClickParams } from '../..';
|
|
3
|
-
import { BaseTag } from './BaseTag';
|
|
4
|
-
import * as THREE from 'three';
|
|
5
|
-
import type { PartialObjectDeep } from '../../../typings/typings';
|
|
6
|
-
import type { Tag } from '../..';
|
|
7
|
-
import type { State as FiveState } from '@realsee/five';
|
|
8
|
-
export type MaskTagInterface<C extends TagContentType = TagContentType> = TagInstance<C, 'Mask'>;
|
|
9
|
-
/**
|
|
10
|
-
* Mask 类型的标签
|
|
11
|
-
* 基于全景图 mask 和颜色区域进行物体标记
|
|
12
|
-
*/
|
|
13
|
-
export declare class MaskTag<C extends TagContentType = TagContentType> extends BaseTag<C, 'Mask'> {
|
|
14
|
-
/**
|
|
15
|
-
* Mask 纹理缓存(静态,所有 MaskTag 实例共享)
|
|
16
|
-
* key: mask URL 或 canvas 的 symbol, value: { texture: THREE.Texture, refCount: number, abortController?: AbortController }
|
|
17
|
-
*/
|
|
18
|
-
private static maskTextureCache;
|
|
19
|
-
/**
|
|
20
|
-
* Canvas 到 Symbol 的映射(用于缓存 canvas 纹理)
|
|
21
|
-
*/
|
|
22
|
-
private static canvasSymbolMap;
|
|
23
|
-
/**
|
|
24
|
-
* mask 图片 URL 或 Canvas 元素(2:1 全景图格式)
|
|
25
|
-
*/
|
|
26
|
-
maskUrl: string | HTMLCanvasElement;
|
|
27
|
-
/**
|
|
28
|
-
* 目标颜色(RGB 格式)
|
|
29
|
-
*/
|
|
30
|
-
targetColor: [number, number, number];
|
|
31
|
-
/**
|
|
32
|
-
* mask 渲染的 mesh 对象(使用 Sphere)
|
|
33
|
-
*/
|
|
34
|
-
maskMesh?: THREE.Mesh;
|
|
35
|
-
/**
|
|
36
|
-
* mask 纹理对象
|
|
37
|
-
*/
|
|
38
|
-
private maskTexture?;
|
|
39
|
-
/**
|
|
40
|
-
* 是否正在加载 mask
|
|
41
|
-
*/
|
|
42
|
-
private loadingMask;
|
|
43
|
-
/**
|
|
44
|
-
* 资源是否已释放
|
|
45
|
-
*/
|
|
46
|
-
private _disposed;
|
|
47
|
-
/**
|
|
48
|
-
* 标签样式配置
|
|
49
|
-
*/
|
|
50
|
-
private tagStyle?;
|
|
51
|
-
/**
|
|
52
|
-
* 点击事件清理函数
|
|
53
|
-
*/
|
|
54
|
-
private clickEventDispose?;
|
|
55
|
-
constructor(plugin: PanoTagPluginController, tagData: TagData);
|
|
56
|
-
/**
|
|
57
|
-
* 计算法向量
|
|
58
|
-
* Mask 标签返回向上的法向量(因为是贴在 cube 面上)
|
|
59
|
-
*/
|
|
60
|
-
computeNormal(): THREE.Vector3;
|
|
61
|
-
/**
|
|
62
|
-
* 获取额外的闪烁目标
|
|
63
|
-
* 返回 maskMesh 用于 blink 动画
|
|
64
|
-
*/
|
|
65
|
-
protected getAdditionalBlinkTargets(): any | any[] | null;
|
|
66
|
-
/**
|
|
67
|
-
* 更新标签数据
|
|
68
|
-
*/
|
|
69
|
-
set(tag: PartialObjectDeep<Tag<C, 'Mask'>>, deepMerge?: boolean): void;
|
|
70
|
-
/**
|
|
71
|
-
* 重写 getVisible 方法
|
|
72
|
-
* Mask 标签仅在当前点位可见
|
|
73
|
-
*/
|
|
74
|
-
getVisible(fiveState?: Partial<FiveState>): boolean;
|
|
75
|
-
/**
|
|
76
|
-
* 重写 computeVisible 方法
|
|
77
|
-
* 增加 Mask 特有的可见性检查逻辑,用于 whyHide 功能
|
|
78
|
-
*/
|
|
79
|
-
protected computeVisible(_fiveState?: Partial<FiveState>): {
|
|
80
|
-
value: boolean;
|
|
81
|
-
reason?: any;
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* 点击事件处理
|
|
85
|
-
*/
|
|
86
|
-
onClick(params: Pick<TagClickParams, 'target'>): void;
|
|
87
|
-
/**
|
|
88
|
-
* 展开自己,收起其他标签
|
|
89
|
-
*/
|
|
90
|
-
unfoldAndFoldOthers(): void;
|
|
91
|
-
/**
|
|
92
|
-
* 展开标签详情
|
|
93
|
-
*/
|
|
94
|
-
unfold(): void;
|
|
95
|
-
/**
|
|
96
|
-
* 折叠标签详情
|
|
97
|
-
*/
|
|
98
|
-
fold(): void;
|
|
99
|
-
/**
|
|
100
|
-
* 设置展开/折叠状态
|
|
101
|
-
*/
|
|
102
|
-
setUnfold(unfolded: boolean): void;
|
|
103
|
-
/**
|
|
104
|
-
* 更新屏幕位置
|
|
105
|
-
*/
|
|
106
|
-
updateScreenPosition(): void;
|
|
107
|
-
/**
|
|
108
|
-
* 应用可见性变化
|
|
109
|
-
*/
|
|
110
|
-
applyVisible(): void;
|
|
111
|
-
/**
|
|
112
|
-
* 更新 mesh 的位置和旋转(跟随观察者)
|
|
113
|
-
* 参考 itemMask 实现
|
|
114
|
-
*/
|
|
115
|
-
private updateMeshTransform;
|
|
116
|
-
/**
|
|
117
|
-
* 初始化 Mask Mesh(使用 Sphere)
|
|
118
|
-
*/
|
|
119
|
-
private initializeMaskMesh;
|
|
120
|
-
/**
|
|
121
|
-
* 创建 Sphere mesh(参考 itemMask 实现)
|
|
122
|
-
*/
|
|
123
|
-
private createSphereMesh;
|
|
124
|
-
/**
|
|
125
|
-
* 获取 Mask 样式配置(合并用户配置和默认值)
|
|
126
|
-
*/
|
|
127
|
-
private getMaskStyle;
|
|
128
|
-
/**
|
|
129
|
-
* 设置点击事件
|
|
130
|
-
*/
|
|
131
|
-
private setupClickEvents;
|
|
132
|
-
/**
|
|
133
|
-
* 清理点击事件
|
|
134
|
-
*/
|
|
135
|
-
private cleanupClickEvents;
|
|
136
|
-
/**
|
|
137
|
-
* 重新加载 mask 图
|
|
138
|
-
* @param oldMaskUrl 旧的 mask 源,用于正确释放纹理缓存(调用 set 时已更新 this.maskUrl,需传入旧值)
|
|
139
|
-
*/
|
|
140
|
-
private reloadMask;
|
|
141
|
-
/**
|
|
142
|
-
* 更新 mask 样式
|
|
143
|
-
*/
|
|
144
|
-
private updateMaskStyle;
|
|
145
|
-
/**
|
|
146
|
-
* 更新 Canvas 纹理(仅当 maskUrl 为 Canvas 时有效)
|
|
147
|
-
* 当 canvas 内容发生变化时,调用此方法更新渲染
|
|
148
|
-
*/
|
|
149
|
-
updateCanvasTexture(): void;
|
|
150
|
-
/**
|
|
151
|
-
* 清理 MaskTag 特有的资源(内部方法,避免重复调用)
|
|
152
|
-
*/
|
|
153
|
-
private disposeMaskResources;
|
|
154
|
-
/**
|
|
155
|
-
* 清理 MaskTag 特有的资源(公开方法)
|
|
156
|
-
*/
|
|
157
|
-
dispose(): void;
|
|
158
|
-
/**
|
|
159
|
-
* 禁用标签(重写父类方法)
|
|
160
|
-
*/
|
|
161
|
-
disable(): void;
|
|
162
|
-
/**
|
|
163
|
-
* 销毁标签(重写父类方法)
|
|
164
|
-
*/
|
|
165
|
-
destroy(): void;
|
|
166
|
-
/**
|
|
167
|
-
* 获取 mask 的缓存 key
|
|
168
|
-
* @param maskSource mask URL 或 Canvas
|
|
169
|
-
* @returns 缓存 key
|
|
170
|
-
*/
|
|
171
|
-
private static getMaskCacheKey;
|
|
172
|
-
/**
|
|
173
|
-
* 加载 Mask 纹理(静态方法,支持缓存和引用计数)
|
|
174
|
-
* @param maskSource mask 图片 URL 或 Canvas 元素
|
|
175
|
-
* @returns Promise<THREE.Texture>
|
|
176
|
-
*/
|
|
177
|
-
private static loadMaskTexture;
|
|
178
|
-
/**
|
|
179
|
-
* 释放 Mask 纹理(静态方法)
|
|
180
|
-
* @param maskSource mask 图片 URL 或 Canvas 元素
|
|
181
|
-
*/
|
|
182
|
-
private static releaseMaskTexture;
|
|
183
|
-
/**
|
|
184
|
-
* 获取当前缓存的纹理统计信息(用于性能监控和调试)
|
|
185
|
-
* @returns 缓存统计信息
|
|
186
|
-
*/
|
|
187
|
-
static getCacheStats(): {
|
|
188
|
-
totalCached: number;
|
|
189
|
-
totalRefCount: number;
|
|
190
|
-
estimatedMemoryMB: number;
|
|
191
|
-
cacheEntries: Array<{
|
|
192
|
-
source: string;
|
|
193
|
-
refCount: number;
|
|
194
|
-
sizeMB: number;
|
|
195
|
-
}>;
|
|
196
|
-
};
|
|
197
|
-
/**
|
|
198
|
-
* 强制清理所有缓存的纹理(用于内存管理,谨慎使用)
|
|
199
|
-
* 注意:这会释放所有纹理,即使它们仍在使用中
|
|
200
|
-
*/
|
|
201
|
-
static clearAllCache(): void;
|
|
202
|
-
}
|