@realsee/dnalogel 3.73.3 → 3.73.4
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/PanoTagPlugin/controller/Tag/PlaneTag.d.ts +14 -1
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +7 -0
- package/dist/index.cjs.js +51 -51
- package/dist/index.js +3494 -3387
- package/dist/index.umd.js +73 -73
- package/dist/shared-utils/five/getFloorMesh.d.ts +3 -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/PanoTagPlugin/Components/Tag/MarketingTag.js +232 -232
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.d.ts +14 -1
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +181 -121
- package/libs/PanoTagPlugin/controller/index.js +6 -5
- package/libs/PanoTagPlugin/index.js +12 -11
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +7 -0
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +167 -136
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +151 -150
- package/libs/shared-utils/five/getFloorMesh.d.ts +3 -0
- package/libs/shared-utils/five/getFloorMesh.js +11 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +151 -139
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,11 +6,24 @@ import type { Vector3 } from 'three';
|
|
|
6
6
|
import { Rectangle } from '../../../Sculpt/Objects/Rectangle';
|
|
7
7
|
export type PlaneTagInterface<C extends TagContentType = TagContentType> = TagInstance<C, 'Plane'>;
|
|
8
8
|
export declare class PlaneTag<C extends TagContentType = TagContentType> extends BaseTag<C, 'Plane'> {
|
|
9
|
-
constructor(plugin: PanoTagPluginController, tagData: TagData);
|
|
10
9
|
rectanglePlane?: Rectangle;
|
|
10
|
+
private _floorIndex?;
|
|
11
|
+
private _floorIndexDirty;
|
|
12
|
+
private _opacity?;
|
|
13
|
+
constructor(plugin: PanoTagPluginController, tagData: TagData);
|
|
14
|
+
/** 获取透明度 */
|
|
15
|
+
get opacity(): number;
|
|
16
|
+
/** 设置透明度 (0-1) */
|
|
17
|
+
set opacity(value: number);
|
|
18
|
+
/** 获取楼层索引(惰性计算 + 缓存) */
|
|
19
|
+
get floorIndex(): number | undefined;
|
|
20
|
+
/** 标记 floorIndex 需要重新计算(在位置等相关数据变化时调用) */
|
|
21
|
+
invalidateFloorIndex(): void;
|
|
11
22
|
applyVisible(): void;
|
|
12
23
|
set(tag: PartialObjectDeep<Tag<C, 'Plane'>>, deepMerge?: boolean): void;
|
|
13
24
|
setData(...data: Parameters<InstanceType<typeof BaseTag<C, 'Plane'>>['setData']>): void;
|
|
25
|
+
/** 计算楼层索引 */
|
|
26
|
+
private computeFloorIndex;
|
|
14
27
|
private loadModel;
|
|
15
28
|
private initialSculpt;
|
|
16
29
|
editorEnable(): void;
|
|
@@ -15,6 +15,10 @@ declare abstract class MediaPlane extends THREE.Mesh<THREE.BufferGeometry | THRE
|
|
|
15
15
|
name: string;
|
|
16
16
|
src?: string;
|
|
17
17
|
objectFit: ObjectFit;
|
|
18
|
+
/** 获取透明度 */
|
|
19
|
+
get opacity(): number;
|
|
20
|
+
/** 设置透明度 (0-1) */
|
|
21
|
+
set opacity(value: number);
|
|
18
22
|
removeFromParent(): this;
|
|
19
23
|
dispose(): void;
|
|
20
24
|
}
|
|
@@ -24,6 +28,7 @@ declare class ImagePlane extends MediaPlane {
|
|
|
24
28
|
constructor(imageSrc: string, cornerPoints: Vector3[], params?: {
|
|
25
29
|
objectFit?: ObjectFit;
|
|
26
30
|
resolveZFighting?: boolean;
|
|
31
|
+
opacity?: number;
|
|
27
32
|
});
|
|
28
33
|
changePointsOrParams(props: {
|
|
29
34
|
cornerPoints: Vector3[];
|
|
@@ -48,6 +53,7 @@ declare class VideoPlane extends MediaPlane {
|
|
|
48
53
|
private buttonMesh?;
|
|
49
54
|
private videoTextureMap;
|
|
50
55
|
private ImageTextureMap;
|
|
56
|
+
private initialOpacity;
|
|
51
57
|
constructor(videoSrc: string, cornerPoints: Vector3[], params?: {
|
|
52
58
|
paused?: boolean;
|
|
53
59
|
playButton?: 'withText' | 'withoutText' | string;
|
|
@@ -59,6 +65,7 @@ declare class VideoPlane extends MediaPlane {
|
|
|
59
65
|
transparent: boolean;
|
|
60
66
|
}>;
|
|
61
67
|
domEvents?: FiveDomEvents;
|
|
68
|
+
opacity?: number;
|
|
62
69
|
});
|
|
63
70
|
play(muted?: boolean): Promise<void>;
|
|
64
71
|
pause(): void;
|