@realsee/dnalogel 3.72.4-alpha.2 → 3.72.5-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 +4 -0
- package/dist/PanoTagPlugin/controller/Tag/BaseTag.d.ts +8 -0
- package/dist/PanoTagPlugin/controller/Tag/PointTag.d.ts +13 -0
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +15 -0
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -0
- package/dist/index.cjs.js +71 -71
- package/dist/index.js +6803 -6690
- package/dist/index.umd.js +67 -67
- package/libs/ItemLabelPlugin/ItemLabelItem.js +85 -85
- package/libs/PanoMeasurePlugin/Components/Tip.js +51 -51
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +262 -262
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.d.ts +8 -0
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +351 -331
- package/libs/PanoTagPlugin/controller/Tag/PointTag.d.ts +13 -0
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +143 -42
- package/libs/PanoTagPlugin/tag.config.js +4 -0
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +15 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +44 -44
- package/libs/shared-utils/logger.js +1 -1
- package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +139 -151
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,7 @@ import type { PartialObjectDeep } from '../../../typings/typings';
|
|
|
12
12
|
import type { LiteralUnion } from 'type-fest';
|
|
13
13
|
import type { CSS3DObjectPlus } from '../../../shared-utils/CSS3DRender/CSS3DObject';
|
|
14
14
|
import type { Rectangle } from '../../../Sculpt/Objects/Rectangle';
|
|
15
|
+
import { Line } from '@realsee/five/line';
|
|
15
16
|
/**
|
|
16
17
|
* @description 标签实例
|
|
17
18
|
* @property `id` 标签id
|
|
@@ -62,9 +63,11 @@ export declare abstract class BaseTag<C extends TagContentType = TagContentType,
|
|
|
62
63
|
} | null;
|
|
63
64
|
normal: Tag<C, S>['normal'];
|
|
64
65
|
mediaPlane?: ImagePlane | VideoPlane;
|
|
66
|
+
tagNormalLine: Line;
|
|
65
67
|
hooks: Subscribe<TagEvents<C>>;
|
|
66
68
|
zIndex?: number;
|
|
67
69
|
manuallyOperated: boolean;
|
|
70
|
+
normalLineLength?: number;
|
|
68
71
|
play?: () => void;
|
|
69
72
|
pause?: () => void;
|
|
70
73
|
get five(): import("@realsee/five").Five;
|
|
@@ -114,6 +117,11 @@ export declare abstract class BaseTag<C extends TagContentType = TagContentType,
|
|
|
114
117
|
targetMode?: 'Panorama' | 'Mapview';
|
|
115
118
|
pointConfig?: Parameters<typeof lookPoint>[2];
|
|
116
119
|
}): Promise<this>;
|
|
120
|
+
/**
|
|
121
|
+
* @description 获取额外的闪烁目标(子类可以重写此方法添加额外的闪烁目标,如法线等)
|
|
122
|
+
* @returns 额外的闪烁目标或目标数组,返回 null/undefined 表示没有额外目标
|
|
123
|
+
*/
|
|
124
|
+
protected getAdditionalBlinkTargets(): any | any[] | null;
|
|
117
125
|
/**
|
|
118
126
|
* @description 闪烁
|
|
119
127
|
*/
|
|
@@ -7,7 +7,11 @@ export type PointTagInterface<C extends TagContentType = TagContentType> = TagIn
|
|
|
7
7
|
export declare class PointTag<C extends TagContentType = TagContentType> extends BaseTag<C, '2DPoint' | '3DPoint'> {
|
|
8
8
|
private __Object__;
|
|
9
9
|
private requestIdleCallbackId?;
|
|
10
|
+
private iconPixelGap;
|
|
11
|
+
private _temp;
|
|
12
|
+
private _lastUpdateCache;
|
|
10
13
|
constructor(plugin: PanoTagPluginController, tagData: TagData);
|
|
14
|
+
initialTagLine(): void;
|
|
11
15
|
/**
|
|
12
16
|
* @description 展开自己,收起其他标签
|
|
13
17
|
*/
|
|
@@ -22,6 +26,11 @@ export declare class PointTag<C extends TagContentType = TagContentType> extends
|
|
|
22
26
|
*/
|
|
23
27
|
setUnfold(unfolded: boolean): void;
|
|
24
28
|
setPosition(position: ArrayPosition): void;
|
|
29
|
+
/**
|
|
30
|
+
* 更新标签连线的位置,使其端点与icon保持固定像素距离
|
|
31
|
+
* 使用屏幕空间反投影方法,确保任意视角下都保持固定像素距离
|
|
32
|
+
*/
|
|
33
|
+
private updateTagNormalLinePosition;
|
|
25
34
|
updateScreenPosition(params?: {
|
|
26
35
|
force?: boolean;
|
|
27
36
|
}): void;
|
|
@@ -29,4 +38,8 @@ export declare class PointTag<C extends TagContentType = TagContentType> extends
|
|
|
29
38
|
setData(...data: Parameters<InstanceType<typeof BaseTag<C, '2DPoint' | '3DPoint'>>['setData']>): void;
|
|
30
39
|
updateUnfoldedByPanoIndex(): void;
|
|
31
40
|
computeNormal(): THREE.Vector3;
|
|
41
|
+
/**
|
|
42
|
+
* @description 获取额外的闪烁目标,包括法线(如果有)
|
|
43
|
+
*/
|
|
44
|
+
protected getAdditionalBlinkTargets(): any | any[] | null;
|
|
32
45
|
}
|
|
@@ -356,6 +356,21 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
|
|
|
356
356
|
*/
|
|
357
357
|
beforeOpen?: (tag?: TagInstance) => boolean | undefined;
|
|
358
358
|
};
|
|
359
|
+
/**
|
|
360
|
+
* @description 标签法线相关配置
|
|
361
|
+
*/
|
|
362
|
+
tagNormalLineConfig?: {
|
|
363
|
+
/**
|
|
364
|
+
* @description 是否启用标签法线
|
|
365
|
+
* @default true
|
|
366
|
+
*/
|
|
367
|
+
enabled?: boolean;
|
|
368
|
+
/**
|
|
369
|
+
* @description 标签法线宽度
|
|
370
|
+
* @default 1.2
|
|
371
|
+
*/
|
|
372
|
+
lineWidth?: number;
|
|
373
|
+
};
|
|
359
374
|
}
|
|
360
375
|
export declare const defaultGlobalConfig: TagConfig;
|
|
361
376
|
type ConfigFunction = (five: Five, tagState: {
|