@realsee/dnalogel 3.77.4 → 3.77.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 +20 -11
- 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/BaseTag.d.ts +5 -1
- package/dist/PanoTagPlugin/controller/Tag/BoxTag.d.ts +119 -0
- package/dist/PanoTagPlugin/controller/Tag/MaskTag.d.ts +257 -0
- package/dist/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +10 -0
- package/dist/PanoTagPlugin/controller/Tag/PolygonTag.d.ts +112 -0
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/index.d.ts +55 -2
- package/dist/PanoTagPlugin/typings/controller.d.ts +10 -0
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +8 -3
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +50 -1
- package/dist/PanoTagPlugin/utils/sculptDataToBoxPosition.d.ts +6 -0
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +6 -0
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +12 -3
- package/dist/index.cjs.js +188 -92
- package/dist/index.d.ts +1 -0
- package/dist/index.js +17508 -14249
- package/dist/index.umd.js +184 -88
- package/libs/CruisePlugin/Move.js +7 -2
- package/libs/CruisePlugin/Work.js +7 -2
- package/libs/CruisePlugin/index.js +11 -6
- 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 +9 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +7 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +7 -2
- package/libs/GuideLinePlugin/index.js +11 -6
- package/libs/PanoTagPlugin/Components/TagItem.js +122 -122
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +5 -1
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +320 -289
- package/libs/PanoTagPlugin/controller/Tag/BoxTag.d.ts +119 -0
- package/libs/PanoTagPlugin/controller/Tag/BoxTag.js +515 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.d.ts +257 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.js +815 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.d.ts +10 -0
- package/libs/PanoTagPlugin/controller/Tag/MaskTag.shaders.js +94 -0
- package/libs/PanoTagPlugin/controller/Tag/PolygonTag.d.ts +112 -0
- package/libs/PanoTagPlugin/controller/Tag/PolygonTag.js +478 -0
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/TagUtil.js +19 -17
- package/libs/PanoTagPlugin/controller/index.d.ts +55 -2
- package/libs/PanoTagPlugin/controller/index.js +261 -148
- package/libs/PanoTagPlugin/index.js +16 -11
- package/libs/PanoTagPlugin/typings/controller.d.ts +10 -0
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +8 -3
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +50 -1
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +27 -13
- package/libs/PanoTagPlugin/utils/index.js +29 -26
- package/libs/PanoTagPlugin/utils/sculptDataToBoxPosition.d.ts +6 -0
- package/libs/PanoTagPlugin/utils/sculptDataToBoxPosition.js +18 -0
- package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +6 -0
- package/libs/PanoTagPlugin/utils/tag/tagCheck.js +26 -14
- package/libs/PanoTagPlugin/utils/tagPosition.d.ts +12 -3
- package/libs/PanoTagPlugin/utils/tagPosition.js +49 -16
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.d.ts +1 -0
- package/libs/index.js +166 -150
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Tag, TagId, Tags, State, ContentTypeConfigKey } from '../typings';
|
|
2
2
|
import type { TagClickParams, TagConfigByKey, TagContentType } from '..';
|
|
3
3
|
import type { ArrayPosition } from '../typings';
|
|
4
|
-
import {
|
|
4
|
+
import type { Five } from '@realsee/five';
|
|
5
5
|
import { TagRender } from './TagRender';
|
|
6
6
|
import type { PartialObjectDeep } from '../../typings/typings';
|
|
7
7
|
export declare const pluginFlag: (name: string) => string;
|
|
@@ -28,8 +28,13 @@ declare class PanoTagPluginController extends TagRender {
|
|
|
28
28
|
load(data: Tags): Promise<void>;
|
|
29
29
|
/**
|
|
30
30
|
* @description 添加标签
|
|
31
|
+
* @param tag 标签或标签数组
|
|
32
|
+
* @param options 可选配置
|
|
33
|
+
* @param options.updateMaskUrl 是否更新 mask。若为 true 且该 panoIndex 已有 Mask 标签,仅更新其 maskUrl(不变 color、style),并添加新标签
|
|
31
34
|
*/
|
|
32
|
-
addTag(tag: Tag | Tag[]
|
|
35
|
+
addTag(tag: Tag | Tag[], options?: {
|
|
36
|
+
updateMaskUrl?: boolean;
|
|
37
|
+
}): Promise<void>;
|
|
33
38
|
/**
|
|
34
39
|
* @description 改变配置
|
|
35
40
|
*/
|
|
@@ -103,6 +108,19 @@ declare class PanoTagPluginController extends TagRender {
|
|
|
103
108
|
* @description 改变tag任意属性
|
|
104
109
|
*/
|
|
105
110
|
changeTagById<C extends TagContentType = TagContentType>(id: TagId, tag: PartialObjectDeep<Tag<C>>, deepMerge?: boolean): void;
|
|
111
|
+
/**
|
|
112
|
+
* @description 批量更新指定点位的 Mask 图
|
|
113
|
+
* @param maskUpdates 包含点位索引和对应 mask 的数组
|
|
114
|
+
* @example
|
|
115
|
+
* changeMask([
|
|
116
|
+
* { index: 0, mask: 'https://example.com/mask1.png' },
|
|
117
|
+
* { index: 1, mask: canvasElement }
|
|
118
|
+
* ])
|
|
119
|
+
*/
|
|
120
|
+
changeMask(maskUpdates: Array<{
|
|
121
|
+
index: number;
|
|
122
|
+
mask: string | HTMLCanvasElement;
|
|
123
|
+
}>): void;
|
|
106
124
|
/**
|
|
107
125
|
* @description 销毁tag
|
|
108
126
|
*/
|
|
@@ -166,6 +184,41 @@ declare class PanoTagPluginController extends TagRender {
|
|
|
166
184
|
* @returns 是否为有效的 ArrayPosition
|
|
167
185
|
*/
|
|
168
186
|
private isValidArrayPosition;
|
|
187
|
+
/**
|
|
188
|
+
* 更新当前点位的 Mask 标签
|
|
189
|
+
* Mask 标签仅在当前点位可见
|
|
190
|
+
*/
|
|
191
|
+
private updateMaskTagsForCurrentPano;
|
|
192
|
+
/**
|
|
193
|
+
* 获取所有 Mask 类型的标签
|
|
194
|
+
*/
|
|
195
|
+
get filterMaskTag(): (import("./Tag/BaseTag").BaseTag<"Panorama" | "Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", import("..").StickType> & {
|
|
196
|
+
[key: string]: any;
|
|
197
|
+
})[];
|
|
198
|
+
/**
|
|
199
|
+
* 获取 MaskTag 性能统计信息(用于性能监控和调试)
|
|
200
|
+
* @returns 性能统计信息
|
|
201
|
+
*/
|
|
202
|
+
getMaskTagPerformanceStats(): {
|
|
203
|
+
totalMaskTags: number;
|
|
204
|
+
visibleMaskTags: number;
|
|
205
|
+
textureCache: {
|
|
206
|
+
totalCached: number;
|
|
207
|
+
totalRefCount: number;
|
|
208
|
+
estimatedMemoryMB: number;
|
|
209
|
+
cacheEntries: {
|
|
210
|
+
source: string;
|
|
211
|
+
refCount: number;
|
|
212
|
+
sizeMB: number;
|
|
213
|
+
}[];
|
|
214
|
+
};
|
|
215
|
+
currentPanoIndex: number;
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* 清理所有 MaskTag 纹理缓存(用于内存管理)
|
|
219
|
+
* 注意:这会释放所有纹理缓存,谨慎使用
|
|
220
|
+
*/
|
|
221
|
+
clearMaskTagCache(): void;
|
|
169
222
|
}
|
|
170
223
|
export default PanoTagPluginController;
|
|
171
224
|
export { PanoTagPluginController };
|