@realsee/dnalogel 2.0.0-alpha.11 → 2.0.0-alpha.12
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/ModelItemLabelPlugin/events.type.d.ts +9 -0
- package/dist/ModelItemLabelPlugin/index.d.ts +4 -0
- package/dist/ModelItemLabelPlugin/index.js +678 -0
- package/dist/ModelItemLabelPlugin/typings.d.ts +55 -0
- package/dist/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/dist/ModelRoomLabelPlugin/index.js +1 -1
- package/dist/PanoSpatialTagPlugin/index.js +9 -9
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +810 -166
- package/dist/index.js +809 -163
- package/dist/index.umd.js +812 -167
- package/docs/assets/search.js +1 -1
- package/docs/classes/ModelRoomLabelController.html +6 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ModelFloorplanErrorType.html +1 -1
- package/docs/index.html +1 -1
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelFloorplanParameterType.html +1 -1
- package/docs/interfaces/ModelFloorplanViewEvent.html +2 -2
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/PanoCompassPluginData.html +1 -1
- package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/TopviewFloorplanPluginParameterType.html +1 -1
- package/docs/modules.html +12 -12
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +420 -0
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +133 -0
- package/libs/ModelItemLabelPlugin/events.type.d.ts +9 -0
- package/libs/ModelItemLabelPlugin/events.type.js +1 -0
- package/libs/ModelItemLabelPlugin/index.d.ts +4 -0
- package/libs/ModelItemLabelPlugin/index.js +170 -0
- package/libs/ModelItemLabelPlugin/typings.d.ts +55 -0
- package/libs/ModelItemLabelPlugin/typings.js +6 -0
- package/libs/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/libs/ModelItemLabelPlugin/utils/parseData.js +7 -0
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +1 -1
- package/libs/PanoSpatialTagPlugin/Components/tag.js +9 -9
- package/libs/index.d.ts +1 -0
- package/libs/index.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { Five, Subscribe } from "@realsee/five";
|
|
2
|
+
import ItemLabelComponent from './ItemLabelComponent';
|
|
3
|
+
import { DISPLAY_STRATEGY_TYPE } from "./typings";
|
|
4
|
+
import { parseModelItemLabelPluginData } from "./utils/parseData";
|
|
5
|
+
export const ModelItemLabelPlugin = (five, params) => {
|
|
6
|
+
const pluginState = {
|
|
7
|
+
container: document.createElement('div'),
|
|
8
|
+
data: null,
|
|
9
|
+
enabled: true,
|
|
10
|
+
fiveModeEnabled: undefined,
|
|
11
|
+
itemLabels: [],
|
|
12
|
+
wrapper: null,
|
|
13
|
+
app: undefined,
|
|
14
|
+
hooks: new Subscribe(),
|
|
15
|
+
modelOcclusionEnable: params?.modelOcclusionEnable ?? true,
|
|
16
|
+
displayStrategyType: params?.displayStrategyType ?? DISPLAY_STRATEGY_TYPE.SMALL
|
|
17
|
+
};
|
|
18
|
+
pluginState.container.setAttribute('class', 'model-item-label-plugin-container');
|
|
19
|
+
pluginState.container.style.cssText = `
|
|
20
|
+
position: absolute;
|
|
21
|
+
left: 0;
|
|
22
|
+
top: 0;
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: 100%;
|
|
25
|
+
pointerEvents: none;
|
|
26
|
+
`;
|
|
27
|
+
const appendTo = (wrapper) => {
|
|
28
|
+
pluginState.wrapper = wrapper;
|
|
29
|
+
wrapper.appendChild(pluginState.container);
|
|
30
|
+
render();
|
|
31
|
+
return true;
|
|
32
|
+
};
|
|
33
|
+
const load = (data) => {
|
|
34
|
+
console.log('🐶--当前标签总条数: ', data.model_item_labels.length);
|
|
35
|
+
pluginState.itemLabels = parseModelItemLabelPluginData(data);
|
|
36
|
+
render();
|
|
37
|
+
};
|
|
38
|
+
const enable = () => {
|
|
39
|
+
if (pluginState.enabled)
|
|
40
|
+
return true;
|
|
41
|
+
pluginState.enabled = true;
|
|
42
|
+
render();
|
|
43
|
+
return true;
|
|
44
|
+
};
|
|
45
|
+
const disable = () => {
|
|
46
|
+
if (!pluginState.enabled)
|
|
47
|
+
return true;
|
|
48
|
+
pluginState.enabled = false;
|
|
49
|
+
render();
|
|
50
|
+
return true;
|
|
51
|
+
};
|
|
52
|
+
const dispose = () => {
|
|
53
|
+
removeListener4Five();
|
|
54
|
+
pluginState.container.remove();
|
|
55
|
+
};
|
|
56
|
+
const handleRerender = () => {
|
|
57
|
+
if (!pluginState.enabled || !pluginState.fiveModeEnabled)
|
|
58
|
+
return;
|
|
59
|
+
disable();
|
|
60
|
+
};
|
|
61
|
+
const rerender = (a, b, c) => {
|
|
62
|
+
if (!pluginState.fiveModeEnabled)
|
|
63
|
+
return;
|
|
64
|
+
if (!c)
|
|
65
|
+
return;
|
|
66
|
+
enable();
|
|
67
|
+
render();
|
|
68
|
+
};
|
|
69
|
+
const handleInteriaPanRerender = (a, b) => {
|
|
70
|
+
if (!pluginState.fiveModeEnabled)
|
|
71
|
+
return;
|
|
72
|
+
if (!b)
|
|
73
|
+
return;
|
|
74
|
+
enable();
|
|
75
|
+
render();
|
|
76
|
+
};
|
|
77
|
+
const handleWantsPanGesture = (pose, final) => {
|
|
78
|
+
if (pose) {
|
|
79
|
+
handleRerender();
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
const handlePanGesture = (pose, final) => {
|
|
83
|
+
if (!pluginState.fiveModeEnabled)
|
|
84
|
+
return;
|
|
85
|
+
if (!final)
|
|
86
|
+
return;
|
|
87
|
+
enable();
|
|
88
|
+
render();
|
|
89
|
+
};
|
|
90
|
+
const render = () => {
|
|
91
|
+
if (!pluginState.wrapper)
|
|
92
|
+
return;
|
|
93
|
+
// 只要不可展示,销毁容器
|
|
94
|
+
if (!pluginState.enabled || !pluginState.fiveModeEnabled) {
|
|
95
|
+
pluginState.app?.$destroy();
|
|
96
|
+
pluginState.app = undefined;
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
// 正常显示时,分为 app 存在和不存在两种情况,如果存在,传值,不存在则初始化并传值
|
|
100
|
+
if (!pluginState.app) {
|
|
101
|
+
pluginState.app = new ItemLabelComponent({
|
|
102
|
+
target: pluginState.container,
|
|
103
|
+
props: {
|
|
104
|
+
five: five,
|
|
105
|
+
modelOcclusionEnable: pluginState.modelOcclusionEnable,
|
|
106
|
+
itemLabels: pluginState.itemLabels,
|
|
107
|
+
wrapper: pluginState.wrapper,
|
|
108
|
+
hooks: pluginState.hooks,
|
|
109
|
+
displayStrategyType: pluginState.displayStrategyType
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
pluginState.app.$set({
|
|
115
|
+
five: five,
|
|
116
|
+
itemLabels: pluginState.itemLabels
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
// 添加 five 监听
|
|
121
|
+
const addListener4Five = () => {
|
|
122
|
+
five.on('modeChange', onFiveModeChange);
|
|
123
|
+
five.once('dispose', dispose);
|
|
124
|
+
// five.on('wantsGesture', handleRerender)
|
|
125
|
+
// five.on('gesture', rerender)
|
|
126
|
+
five.on('wantsMouseWheel', handleRerender);
|
|
127
|
+
five.on('mouseWheel', rerender);
|
|
128
|
+
five.on('wantsInteriaPan', handleRerender);
|
|
129
|
+
five.on('interiaPan', handleInteriaPanRerender);
|
|
130
|
+
five.on('wantsPanGesture', handleWantsPanGesture);
|
|
131
|
+
five.on('panGesture', handlePanGesture);
|
|
132
|
+
five.on('wantsPinchGesture', handleRerender);
|
|
133
|
+
five.on('pinchGesture', rerender);
|
|
134
|
+
};
|
|
135
|
+
// 取消 five 监听
|
|
136
|
+
const removeListener4Five = () => {
|
|
137
|
+
five.off('modeChange', onFiveModeChange);
|
|
138
|
+
// five.off('wantsGesture', handleRerender)
|
|
139
|
+
// five.off('gesture', rerender)
|
|
140
|
+
five.off('wantsMouseWheel', handleRerender);
|
|
141
|
+
five.off('mouseWheel', rerender);
|
|
142
|
+
five.off('wantsInteriaPan', handleRerender);
|
|
143
|
+
five.off('interiaPan', handleInteriaPanRerender);
|
|
144
|
+
five.off('wantsPanGesture', handleWantsPanGesture);
|
|
145
|
+
five.off('panGesture', handlePanGesture);
|
|
146
|
+
five.off('wantsPinchGesture', handleRerender);
|
|
147
|
+
five.off('pinchGesture', rerender);
|
|
148
|
+
};
|
|
149
|
+
const onFiveModeChange = (mode) => {
|
|
150
|
+
if (mode !== Five.Mode.Floorplan) {
|
|
151
|
+
pluginState.fiveModeEnabled = false;
|
|
152
|
+
render();
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
five.once('initAnimationEnded', () => {
|
|
156
|
+
pluginState.fiveModeEnabled = five.currentMode === Five.Mode.Floorplan;
|
|
157
|
+
render();
|
|
158
|
+
});
|
|
159
|
+
};
|
|
160
|
+
addListener4Five();
|
|
161
|
+
return {
|
|
162
|
+
appendTo,
|
|
163
|
+
load,
|
|
164
|
+
enable,
|
|
165
|
+
disable,
|
|
166
|
+
dispose,
|
|
167
|
+
hooks: pluginState.hooks
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
export default ModelItemLabelPlugin;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import ItemLabelComponent from './ItemLabelComponent';
|
|
2
|
+
import type { Subscribe } from "@realsee/five";
|
|
3
|
+
import { PluginEvent } from "./events.type";
|
|
4
|
+
export declare enum DISPLAY_STRATEGY_TYPE {
|
|
5
|
+
SMALL = "small",
|
|
6
|
+
MIDLLE = "middle",
|
|
7
|
+
LARGE = "large"
|
|
8
|
+
}
|
|
9
|
+
export interface ModelItemLabelPluginParametersType {
|
|
10
|
+
modelOcclusionEnable?: boolean;
|
|
11
|
+
displayStrategyType?: Partial<DISPLAY_STRATEGY_TYPE>;
|
|
12
|
+
}
|
|
13
|
+
export interface ModelItemLabelPluginData {
|
|
14
|
+
model_item_labels: Readonly<{
|
|
15
|
+
id: string;
|
|
16
|
+
library: string;
|
|
17
|
+
name: string;
|
|
18
|
+
size: [number, number, number];
|
|
19
|
+
center: [number, number, number];
|
|
20
|
+
position: [number, number, number];
|
|
21
|
+
type: string[];
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}>[];
|
|
24
|
+
}
|
|
25
|
+
export interface ItemLabel {
|
|
26
|
+
id: string;
|
|
27
|
+
library: string;
|
|
28
|
+
name: string;
|
|
29
|
+
size: [number, number, number];
|
|
30
|
+
center: [number, number, number];
|
|
31
|
+
position: [number, number, number];
|
|
32
|
+
type: string[];
|
|
33
|
+
modelPosition: [number, number, number];
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
}
|
|
36
|
+
export interface ModelItemLabelPluginExportReturnsType {
|
|
37
|
+
appendTo: (wrapper: Element) => void;
|
|
38
|
+
load: (data: ModelItemLabelPluginData) => void;
|
|
39
|
+
disable: () => void;
|
|
40
|
+
enable: () => void;
|
|
41
|
+
dispose: () => void;
|
|
42
|
+
hooks: Subscribe<PluginEvent>;
|
|
43
|
+
}
|
|
44
|
+
export interface ModelItemLabelPluginState {
|
|
45
|
+
container: HTMLDivElement;
|
|
46
|
+
data: ModelItemLabelPluginData | null;
|
|
47
|
+
enabled: boolean;
|
|
48
|
+
itemLabels: ItemLabel[];
|
|
49
|
+
wrapper: HTMLElement | null;
|
|
50
|
+
fiveModeEnabled: boolean;
|
|
51
|
+
app?: ItemLabelComponent | undefined;
|
|
52
|
+
hooks: Subscribe<PluginEvent>;
|
|
53
|
+
modelOcclusionEnable: boolean;
|
|
54
|
+
displayStrategyType: Partial<DISPLAY_STRATEGY_TYPE>;
|
|
55
|
+
}
|
|
@@ -191,7 +191,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
191
191
|
|
|
192
192
|
function getFormatedRoomLabels(five, labels) {
|
|
193
193
|
const newLabels = labels.map(roomLabelItem => {
|
|
194
|
-
//
|
|
194
|
+
// 计算是否可见,如果不可见,不会更新位置
|
|
195
195
|
const visible = getLabelVisible(five, roomLabelItem);
|
|
196
196
|
|
|
197
197
|
if (!visible) return { ...roomLabelItem, visible };
|
|
@@ -22,7 +22,7 @@ import '../typings';
|
|
|
22
22
|
import { currentTarget } from '../store';
|
|
23
23
|
|
|
24
24
|
function add_css(target) {
|
|
25
|
-
append_styles(target, "svelte-
|
|
25
|
+
append_styles(target, "svelte-1c0xhg0", ".PanoSpatialTagPlugin__tag-x.svelte-1c0xhg0.svelte-1c0xhg0{position:relative;display:block;white-space:nowrap;box-sizing:border-box;width:25rem;height:14rem;color:#FFF;transform:translate(0, -100%);transition:height .5s linear}.PanoSpatialTagPlugin__tag-shadow.svelte-1c0xhg0.svelte-1c0xhg0{content:'';position:absolute;width:30rem;height:30rem;top:-15rem;left:-15rem;z-index:-1;opacity:0;transition:opacity .8s .6s;background:url('https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png');background-size:30rem 30rem}.PanoSpatialTagPlugin__tag-line.svelte-1c0xhg0.svelte-1c0xhg0{position:absolute;left:-1rem;width:2rem;height:100%;overflow:hidden}.PanoSpatialTagPlugin__tag-flagpole.svelte-1c0xhg0.svelte-1c0xhg0{position:absolute;top:0;left:1rem;height:calc(100% - 1.5rem);width:.15rem;background:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, .1));box-shadow:0 .1rem .5rem rgba(0, 0, 0, .2);opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .4s cubic-bezier(.44,.44,.74,.98) , opacity .4s cubic-bezier(.44,.44,.74,.98), width .5s linear, height .5s linear ;transform-origin:center bottom}.PanoSpatialTagPlugin__tag-line1.svelte-1c0xhg0.svelte-1c0xhg0{position:absolute;top:0;left:0.3rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-line2.svelte-1c0xhg0.svelte-1c0xhg0{position:absolute;top:0;left:0.5rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-show.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-line1.svelte-1c0xhg0{animation:svelte-1c0xhg0-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s}.PanoSpatialTagPlugin__tag-show.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-line2.svelte-1c0xhg0{animation:svelte-1c0xhg0-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s}.PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down.svelte-1c0xhg0.svelte-1c0xhg0{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-line.svelte-1c0xhg0{transform:scaleY(-1)}.PanoSpatialTagPlugin__tag-animate.svelte-1c0xhg0.svelte-1c0xhg0{position:relative;height:100%;overflow:hidden;transform-origin:left top;transition:transform .5s linear}.PanoSpatialTagPlugin__tag-upside-down.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-animate.svelte-1c0xhg0{transform-origin:left bottom}.PanoSpatialTagPlugin__tag-content.svelte-1c0xhg0.svelte-1c0xhg0{position:absolute;display:inline-block;transform:translate(-100%, 0);transition:transform .9s cubic-bezier(0,.65,.16,1.08) .6s;padding-left:.5rem;font-size:1rem}.PanoSpatialTagPlugin__tag-upside-down.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-content.svelte-1c0xhg0{bottom:0}.PanoSpatialTagPlugin__tag-show.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-flagpole.svelte-1c0xhg0{opacity:1;transform:translate(-50%, 0) scaleY(1)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-shadow.svelte-1c0xhg0{top:unset;bottom:-15rem}.PanoSpatialTagPlugin__tag-show.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-shadow.svelte-1c0xhg0{opacity:.32}.PanoSpatialTagPlugin__tag-show.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-content.svelte-1c0xhg0{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-hide.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-flagpole.svelte-1c0xhg0{opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .5s .55s, opacity .4s .55s}.PanoSpatialTagPlugin__tag-hide.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-shadow.svelte-1c0xhg0{opacity:0;transition:opacity .8s}.PanoSpatialTagPlugin__tag-hide.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-content.svelte-1c0xhg0{transform:translate(-100%, 0);transition:transform .6s cubic-bezier(.53,.06,.88,.59)}.PanoSpatialTagPlugin__tag-hide.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-content .svelte-1c0xhg0{pointer-events:none}.PanoSpatialTagPlugin__tag-hide.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-line1.svelte-1c0xhg0{opacity:0.5;transform:translate(-50%, 10%) scaleY(0);animation:svelte-1c0xhg0-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s}.PanoSpatialTagPlugin__tag-hide.svelte-1c0xhg0 .PanoSpatialTagPlugin__tag-line2.svelte-1c0xhg0{opacity:0.5;transform:translate(-50%, 0) scaleY(0);animation:svelte-1c0xhg0-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s}@keyframes svelte-1c0xhg0-PanoSpatialTagPlugin__tag-line1{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 135%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 20%) scaleY(0)}}@keyframes svelte-1c0xhg0-PanoSpatialTagPlugin__tag-line2{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 125%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}}@keyframes svelte-1c0xhg0-PanoSpatialTagPlugin__tag-line1-hide{0%{opacity:0.5;transform:translate(-50%, 10%) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 105%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@keyframes svelte-1c0xhg0-PanoSpatialTagPlugin__tag-line2-hide{0%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 100%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}");
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
function create_fragment(ctx) {
|
|
@@ -56,19 +56,19 @@ function create_fragment(ctx) {
|
|
|
56
56
|
t3 = space();
|
|
57
57
|
div3 = element("div");
|
|
58
58
|
div2 = element("div");
|
|
59
|
-
attr(div0, "class", "PanoSpatialTagPlugin__tag-shadow svelte-
|
|
59
|
+
attr(div0, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1c0xhg0");
|
|
60
60
|
set_style(div0, "transform", "translate(" + /*contentWidth*/ ctx[7] / 2 * /*contentZoom*/ ctx[3] * 3 + "px, " + /*contentHeight*/ ctx[8] / 2 * (/*upsideDown*/ ctx[1] ? -1 : 1) * /*contentZoom*/ ctx[3] * 3 + "px)");
|
|
61
|
-
attr(i0, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-
|
|
61
|
+
attr(i0, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1c0xhg0");
|
|
62
62
|
set_style(i0, "width", /*lineWidthZoom*/ ctx[4] + "rem");
|
|
63
|
-
attr(i1, "class", "PanoSpatialTagPlugin__tag-line1 svelte-
|
|
64
|
-
attr(i2, "class", "PanoSpatialTagPlugin__tag-line2 svelte-
|
|
65
|
-
attr(div1, "class", "PanoSpatialTagPlugin__tag-line svelte-
|
|
66
|
-
attr(div2, "class", "PanoSpatialTagPlugin__tag-content svelte-
|
|
67
|
-
attr(div3, "class", "PanoSpatialTagPlugin__tag-animate svelte-
|
|
63
|
+
attr(i1, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1c0xhg0");
|
|
64
|
+
attr(i2, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1c0xhg0");
|
|
65
|
+
attr(div1, "class", "PanoSpatialTagPlugin__tag-line svelte-1c0xhg0");
|
|
66
|
+
attr(div2, "class", "PanoSpatialTagPlugin__tag-content svelte-1c0xhg0");
|
|
67
|
+
attr(div3, "class", "PanoSpatialTagPlugin__tag-animate svelte-1c0xhg0");
|
|
68
68
|
set_style(div3, "transform", "scale(" + /*contentZoom*/ ctx[3] * 3 + ")");
|
|
69
69
|
attr(div4, "id", div4_id_value = 'PanoSpatialTagPlugin__' + /*id*/ ctx[0]);
|
|
70
70
|
set_style(div4, "height", 20 * /*lineHeightZoom*/ ctx[5] + "rem");
|
|
71
|
-
attr(div4, "class", "svelte-
|
|
71
|
+
attr(div4, "class", "svelte-1c0xhg0");
|
|
72
72
|
toggle_class(div4, "PanoSpatialTagPlugin__tag-x", true);
|
|
73
73
|
toggle_class(div4, "PanoSpatialTagPlugin__tag-upside-down", /*upsideDown*/ ctx[1]);
|
|
74
74
|
toggle_class(div4, "PanoSpatialTagPlugin__tag-show", /*show*/ ctx[10]);
|
package/libs/index.d.ts
CHANGED
|
@@ -24,3 +24,4 @@ export type { PluginReturns, PluginEvent, LineJson, PointJson } from './PanoMeas
|
|
|
24
24
|
export { default as PanoMeasurePlugin } from './PanoMeasurePlugin';
|
|
25
25
|
export type { PanoSpatialTagPluginParameterType, PanoSpatialTagPluginData, PanoSpatialTagPluginExportType } from './PanoSpatialTagPlugin';
|
|
26
26
|
export { default as PanoSpatialTagPlugin } from './PanoSpatialTagPlugin';
|
|
27
|
+
export { default as ModelItemLabelPlugin } from './ModelItemLabelPlugin';
|
package/libs/index.js
CHANGED
|
@@ -14,3 +14,5 @@ export { default as PanoRulerPlugin } from './PanoRulerPlugin';
|
|
|
14
14
|
export { default as PanoCompassPlugin } from './PanoCompassPlugin';
|
|
15
15
|
export { default as PanoMeasurePlugin } from './PanoMeasurePlugin';
|
|
16
16
|
export { default as PanoSpatialTagPlugin } from './PanoSpatialTagPlugin';
|
|
17
|
+
// 模型物品标签插件
|
|
18
|
+
export { default as ModelItemLabelPlugin } from './ModelItemLabelPlugin';
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"author": "REALSEE-DEVELOPER",
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"private": false,
|
|
9
|
-
"version": "2.0.0-alpha.
|
|
9
|
+
"version": "2.0.0-alpha.12",
|
|
10
10
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "yarn run tsb && yarn run build:rollup && yarn build:docs",
|