@realsee/dnalogel 2.0.0-alpha.31 → 2.0.0-alpha.33
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/dist/ModelChassisCompassPlugin/index.js +5 -3
- package/dist/PanoRulerPlugin/index.js +3 -2
- package/dist/PanoSpatialTagPlugin/index.js +13 -11
- package/dist/floorplan/ModelFloorplanPlugin/index.js +10 -8
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +10 -8
- package/dist/index.es.js +32 -24
- package/dist/index.js +32 -24
- package/dist/index.umd.js +32 -24
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/classes/PanoFloorplanRadarPluginController.html +2 -2
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/ModelFloorplanErrorType.html +1 -1
- package/docs/enums/Rotation.html +2 -2
- package/docs/index.html +1 -1
- package/docs/interfaces/CSS3DRenderPluginExportType.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +7 -7
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +6 -6
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +1 -1
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +7 -7
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +1 -1
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ItemLabelPluginParametersType.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/ModelItemLabelPluginData.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/ModelViewPluginExportType.html +1 -1
- package/docs/interfaces/OpenParameter.html +2 -2
- package/docs/interfaces/PanoCompassPluginData.html +1 -1
- package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoFloorplanRadarPluginControllerParameter.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +1 -1
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
- package/docs/interfaces/Point.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -1
- package/docs/interfaces/RoomInfo.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/TopviewFloorplanPluginParameterType.html +9 -9
- package/docs/modules.html +20 -20
- package/libs/ModelChassisCompassPlugin/Plugin.js +5 -3
- package/libs/PanoRulerPlugin/Plugin.js +3 -2
- package/libs/PanoSpatialTagPlugin/Components/tag.js +9 -9
- package/libs/PanoSpatialTagPlugin/Plugin.js +4 -2
- package/libs/floorplan/Components/Compass.js +7 -6
- package/libs/floorplan/Components/Main.js +2 -2
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +1 -0
- package/package.json +1 -1
- package/CHANGELOG.md +0 -108
|
@@ -6,14 +6,16 @@ import transfromToMeshBasicMaterial from '../shared-utils/three/transfromToMeshB
|
|
|
6
6
|
* 模型底盘指南针插件
|
|
7
7
|
*/
|
|
8
8
|
export const ModelChassisCompassPlugin = (five, params) => {
|
|
9
|
+
var _a;
|
|
9
10
|
const defaultFbxUrl = params.fbx_url || '//vrlab-static.ljcdn.com/release/web/v3/dipan3/dipan.FBX';
|
|
10
|
-
const defaultNorthRad = params.north_rad
|
|
11
|
+
const defaultNorthRad = (_a = params.north_rad) !== null && _a !== void 0 ? _a : undefined;
|
|
11
12
|
// 局部状态
|
|
12
13
|
const state = {};
|
|
13
14
|
const load = async (data) => {
|
|
15
|
+
var _a;
|
|
14
16
|
const fbxUrl = (data === null || data === void 0 ? void 0 : data.fbx_url) || defaultFbxUrl;
|
|
15
|
-
const northRad = (data === null || data === void 0 ? void 0 : data.north_rad)
|
|
16
|
-
if (
|
|
17
|
+
const northRad = (_a = data === null || data === void 0 ? void 0 : data.north_rad) !== null && _a !== void 0 ? _a : defaultNorthRad;
|
|
18
|
+
if (typeof northRad !== 'number') {
|
|
17
19
|
throw new Error('"northRad"配置参数缺失:未配置指南针指向!');
|
|
18
20
|
}
|
|
19
21
|
const bounding = five.model.bounding;
|
|
@@ -169,7 +169,7 @@ export const PanoRulerPlugin = (five, params) => {
|
|
|
169
169
|
throw new Error('标尺数据依赖不齐全!');
|
|
170
170
|
}
|
|
171
171
|
state.loaded = false;
|
|
172
|
-
state.options = Object.assign({}, state.options, options || {});
|
|
172
|
+
state.options = Object.assign(Object.assign({}, state.options), options || {});
|
|
173
173
|
if (five.model.loaded) {
|
|
174
174
|
return _load(roomInfo, roomRules);
|
|
175
175
|
}
|
|
@@ -273,7 +273,8 @@ export const PanoRulerPlugin = (five, params) => {
|
|
|
273
273
|
$element.style.display = 'none';
|
|
274
274
|
continue;
|
|
275
275
|
}
|
|
276
|
-
|
|
276
|
+
// 线小于0.3m隐藏
|
|
277
|
+
if (start.distanceTo(end) < 0.3) {
|
|
277
278
|
$element.style.display = 'none';
|
|
278
279
|
continue;
|
|
279
280
|
}
|
|
@@ -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-8ki8yx", ".PanoSpatialTagPlugin__tag-x.svelte-8ki8yx.svelte-8ki8yx{position:absolute;top:0;left:0;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-8ki8yx.svelte-8ki8yx{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-8ki8yx.svelte-8ki8yx{position:absolute;left:-1rem;width:2rem;height:100%;overflow:hidden}.PanoSpatialTagPlugin__tag-flagpole.svelte-8ki8yx.svelte-8ki8yx{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-8ki8yx.svelte-8ki8yx{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-8ki8yx.svelte-8ki8yx{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-8ki8yx .PanoSpatialTagPlugin__tag-line1.svelte-8ki8yx{animation:svelte-8ki8yx-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s}.PanoSpatialTagPlugin__tag-show.svelte-8ki8yx .PanoSpatialTagPlugin__tag-line2.svelte-8ki8yx{animation:svelte-8ki8yx-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s}.PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down.svelte-8ki8yx.svelte-8ki8yx{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-upside-down.svelte-8ki8yx .PanoSpatialTagPlugin__tag-line.svelte-8ki8yx{transform:scaleY(-1)}.PanoSpatialTagPlugin__tag-animate.svelte-8ki8yx.svelte-8ki8yx{position:relative;height:100%;overflow:hidden;transform-origin:left top;transition:transform .5s linear}.PanoSpatialTagPlugin__tag-upside-down.svelte-8ki8yx .PanoSpatialTagPlugin__tag-animate.svelte-8ki8yx{transform-origin:left bottom}.PanoSpatialTagPlugin__tag-content.svelte-8ki8yx.svelte-8ki8yx{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-8ki8yx .PanoSpatialTagPlugin__tag-content.svelte-8ki8yx{bottom:0}.PanoSpatialTagPlugin__tag-show.svelte-8ki8yx .PanoSpatialTagPlugin__tag-flagpole.svelte-8ki8yx{opacity:1;transform:translate(-50%, 0) scaleY(1)}.PanoSpatialTagPlugin__tag-upside-down.svelte-8ki8yx .PanoSpatialTagPlugin__tag-shadow.svelte-8ki8yx{top:unset;bottom:-15rem}.PanoSpatialTagPlugin__tag-show.svelte-8ki8yx .PanoSpatialTagPlugin__tag-shadow.svelte-8ki8yx{opacity:.32}.PanoSpatialTagPlugin__tag-show.svelte-8ki8yx .PanoSpatialTagPlugin__tag-content.svelte-8ki8yx{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-hide.svelte-8ki8yx .PanoSpatialTagPlugin__tag-flagpole.svelte-8ki8yx{opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .5s .55s, opacity .4s .55s}.PanoSpatialTagPlugin__tag-hide.svelte-8ki8yx .PanoSpatialTagPlugin__tag-shadow.svelte-8ki8yx{opacity:0;transition:opacity .8s}.PanoSpatialTagPlugin__tag-hide.svelte-8ki8yx .PanoSpatialTagPlugin__tag-content.svelte-8ki8yx{transform:translate(-100%, 0);transition:transform .6s cubic-bezier(.53,.06,.88,.59)}.PanoSpatialTagPlugin__tag-hide.svelte-8ki8yx .PanoSpatialTagPlugin__tag-content .svelte-8ki8yx{pointer-events:none}.PanoSpatialTagPlugin__tag-hide.svelte-8ki8yx .PanoSpatialTagPlugin__tag-line1.svelte-8ki8yx{opacity:0.5;transform:translate(-50%, 10%) scaleY(0);animation:svelte-8ki8yx-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s}.PanoSpatialTagPlugin__tag-hide.svelte-8ki8yx .PanoSpatialTagPlugin__tag-line2.svelte-8ki8yx{opacity:0.5;transform:translate(-50%, 0) scaleY(0);animation:svelte-8ki8yx-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s}@keyframes svelte-8ki8yx-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-8ki8yx-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-8ki8yx-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-8ki8yx-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-8ki8yx");
|
|
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-8ki8yx");
|
|
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-8ki8yx");
|
|
64
|
+
attr(i2, "class", "PanoSpatialTagPlugin__tag-line2 svelte-8ki8yx");
|
|
65
|
+
attr(div1, "class", "PanoSpatialTagPlugin__tag-line svelte-8ki8yx");
|
|
66
|
+
attr(div2, "class", "PanoSpatialTagPlugin__tag-content svelte-8ki8yx");
|
|
67
|
+
attr(div3, "class", "PanoSpatialTagPlugin__tag-animate svelte-8ki8yx");
|
|
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-8ki8yx");
|
|
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]);
|
|
@@ -378,7 +378,8 @@ export const PanoSpatialTagPlugin = (five, params) => {
|
|
|
378
378
|
if ((_f = five === null || five === void 0 ? void 0 : five.model) === null || _f === void 0 ? void 0 : _f.loaded) {
|
|
379
379
|
if (!wrapper)
|
|
380
380
|
wrapper = five.getElement().parentElement;
|
|
381
|
-
wrapper
|
|
381
|
+
if (wrapper)
|
|
382
|
+
wrapper.appendChild(container);
|
|
382
383
|
state.forbidden = false;
|
|
383
384
|
updateTags();
|
|
384
385
|
five.on('panoWillArrive', onPanoWillArrive);
|
|
@@ -390,7 +391,8 @@ export const PanoSpatialTagPlugin = (five, params) => {
|
|
|
390
391
|
five.once('modelLoaded', () => {
|
|
391
392
|
if (!wrapper)
|
|
392
393
|
wrapper = five.getElement().parentElement;
|
|
393
|
-
wrapper
|
|
394
|
+
if (wrapper)
|
|
395
|
+
wrapper.appendChild(container);
|
|
394
396
|
state.forbidden = false;
|
|
395
397
|
updateTags();
|
|
396
398
|
five.on('panoWillArrive', onPanoWillArrive);
|
|
@@ -23,7 +23,7 @@ function add_css(target) {
|
|
|
23
23
|
append_styles(target, "svelte-5l80pv", ".floorplan-plugin__compass.svelte-5l80pv{position:absolute;left:50%;top:-46px;width:231px;height:41px;will-change:opacity;transform-origin:center 184px}.floorplan-plugin__compass-image.svelte-5l80pv{width:100%;height:100%;position:absolute;left:0;top:0;opacity:0.1;background-repeat:no-repeat;background-size:100% 100%}.floorplan-plugin__compass-text.svelte-5l80pv{position:absolute;left:50%;top:15px;transform:translateX(-50%);opacity:0.2;font-weight:bold;font-size:10px;color:#fff}");
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
// (
|
|
26
|
+
// (14:0) {#if canShowCompass}
|
|
27
27
|
function create_if_block(ctx) {
|
|
28
28
|
let div1;
|
|
29
29
|
let div0;
|
|
@@ -42,7 +42,7 @@ function create_if_block(ctx) {
|
|
|
42
42
|
set_style(div0, "background-image", `url(${COMPASS_IMAGE})`);
|
|
43
43
|
attr(span, "class", "floorplan-plugin__compass-text svelte-5l80pv");
|
|
44
44
|
attr(div1, "class", "floorplan-plugin__compass svelte-5l80pv");
|
|
45
|
-
set_style(div1, "transform", /*compassTransformStyle*/ ctx[
|
|
45
|
+
set_style(div1, "transform", /*compassTransformStyle*/ ctx[1], false);
|
|
46
46
|
},
|
|
47
47
|
m(target, anchor) {
|
|
48
48
|
insert(target, div1, anchor);
|
|
@@ -62,7 +62,7 @@ function create_if_block(ctx) {
|
|
|
62
62
|
|
|
63
63
|
function create_fragment(ctx) {
|
|
64
64
|
let if_block_anchor;
|
|
65
|
-
let if_block = /*
|
|
65
|
+
let if_block = /*canShowCompass*/ ctx[2] && create_if_block(ctx);
|
|
66
66
|
|
|
67
67
|
return {
|
|
68
68
|
c() {
|
|
@@ -74,7 +74,7 @@ function create_fragment(ctx) {
|
|
|
74
74
|
insert(target, if_block_anchor, anchor);
|
|
75
75
|
},
|
|
76
76
|
p(ctx, [dirty]) {
|
|
77
|
-
if (/*
|
|
77
|
+
if (/*canShowCompass*/ ctx[2]) if_block.p(ctx, dirty);
|
|
78
78
|
},
|
|
79
79
|
i: noop,
|
|
80
80
|
o: noop,
|
|
@@ -98,15 +98,16 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
98
98
|
? void 0
|
|
99
99
|
: _a.northRad;
|
|
100
100
|
|
|
101
|
-
const rotate =
|
|
101
|
+
const rotate = typeof northRad !== 'number' ? 0 : rad2Deg(northRad);
|
|
102
102
|
const compassTransformStyle = `translateX(-50%) translateZ(10px) rotate(${-rotate + 90}deg)`;
|
|
103
|
+
const canShowCompass = typeof northRad === 'number';
|
|
103
104
|
|
|
104
105
|
$$self.$$set = $$props => {
|
|
105
106
|
if ('floorplanData' in $$props) $$invalidate(3, floorplanData = $$props.floorplanData);
|
|
106
107
|
if ('northDesc' in $$props) $$invalidate(0, northDesc = $$props.northDesc);
|
|
107
108
|
};
|
|
108
109
|
|
|
109
|
-
return [northDesc,
|
|
110
|
+
return [northDesc, compassTransformStyle, canShowCompass, floorplanData];
|
|
110
111
|
}
|
|
111
112
|
|
|
112
113
|
class Component extends SvelteComponent {
|
|
@@ -32,7 +32,7 @@ import Compass from './Compass';
|
|
|
32
32
|
import CurrentFloor from './CurrentFloor';
|
|
33
33
|
|
|
34
34
|
function add_css(target) {
|
|
35
|
-
append_styles(target, "svelte-
|
|
35
|
+
append_styles(target, "svelte-iyx1nn", ".floorplan-main.svelte-iyx1nn{width:100%;height:100%;pointer-events:none}");
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
function get_each_context(ctx, list, i) {
|
|
@@ -90,7 +90,7 @@ function create_if_block(ctx) {
|
|
|
90
90
|
create_component(camera.$$.fragment);
|
|
91
91
|
t1 = space();
|
|
92
92
|
if (if_block) if_block.c();
|
|
93
|
-
attr(div, "class", "floorplan-main svelte-
|
|
93
|
+
attr(div, "class", "floorplan-main svelte-iyx1nn");
|
|
94
94
|
},
|
|
95
95
|
m(target, anchor) {
|
|
96
96
|
insert(target, div, anchor);
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
9
9
|
"description": "如视 VR 看房插件合集",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "2.0.0-alpha.
|
|
11
|
+
"version": "2.0.0-alpha.33",
|
|
12
12
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "yarn run tsb && yarn run build:rollup && yarn build:docs",
|
package/CHANGELOG.md
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
# CHANGELOG
|
|
2
|
-
|
|
3
|
-
## 2.0.0-alpha.30
|
|
4
|
-
- 1.feat: PanoMeasurePlugin 新增移动端UI交互模式
|
|
5
|
-
- 2.feat: PanoMeasurePlugin 点线、标签气泡、删除按钮、三维坐标系UI交互优化
|
|
6
|
-
- 3.feat: PanoMeasurePlugin 优化放大镜功能,支持可拖拽,新增放大镜开放参数
|
|
7
|
-
- 4.fix: TopviewFloorplanPlugin 兼容全局 text-align 使用
|
|
8
|
-
- 5.fix: 新增 ItemLabelPlugin 内测版
|
|
9
|
-
|
|
10
|
-
## 2.0.0-alpha.29
|
|
11
|
-
- 1.chore: 删除 react 依赖.
|
|
12
|
-
|
|
13
|
-
## 2.0.0-alpha.28
|
|
14
|
-
- 1.chore: 优化打包输出路径.
|
|
15
|
-
|
|
16
|
-
## 2.0.0-alpha.27
|
|
17
|
-
- 1.feat: PanoSpatialTagPlugin 兼容 bvh 为 false 模式.
|
|
18
|
-
|
|
19
|
-
## 2.0.0-alpha.26
|
|
20
|
-
- 1.fix: ModelRoomLabelPlugin - 修复渲染区域大小改变时,标签位置没有更新
|
|
21
|
-
- 2.pref: ModelRoomLabelPlugin - 优化渲染逻辑
|
|
22
|
-
|
|
23
|
-
## 2.0.0-alpha.25
|
|
24
|
-
- 1.refactor: 恢复发版
|
|
25
|
-
|
|
26
|
-
## 2.0.0-alpha.24
|
|
27
|
-
- 1.feat: PanoRulerPlugin 支持数据 reload。
|
|
28
|
-
|
|
29
|
-
## 2.0.0-alpha.23
|
|
30
|
-
- 1.fix: 修复 PanoFloorplanRadarPlugin reload 数据时报错
|
|
31
|
-
- 2.fix: 修复 PanoFloorplanRadarPlugin reload 户型图数据后雷达图标位置没有适配
|
|
32
|
-
|
|
33
|
-
## 2.0.0-alpha.22
|
|
34
|
-
- 1.fix: 修复 PanoMeasurePlugin disable 状态下仍有背景色占位问题。
|
|
35
|
-
|
|
36
|
-
## 2.0.0-alpha.21
|
|
37
|
-
- 1.fix: 修复 PanoMeasurePlugin 仅初始化 UI 面板仍占位为题。
|
|
38
|
-
|
|
39
|
-
## 2.0.0-alpha.20
|
|
40
|
-
- 1.fix: 修复 PanoMeasurePlugin hide 时 UI 面板仍占位为题。
|
|
41
|
-
|
|
42
|
-
## 2.0.0-alpha.19
|
|
43
|
-
- 1.fix: 修复在模型中切换全部楼层,切换回户型图,展示的是上一次展示时的楼层;
|
|
44
|
-
- 2.fix: 修复户型图界面切换楼层时,图片与SVG渲染有时间差导致闪烁的问题;
|
|
45
|
-
- 3.feat: TopviewFloorplanPlugin 插件支持放大缩小;
|
|
46
|
-
- 4.feat: ModelFloorplanPlugin 插件,autoShowEnable 和 hoverEnable 能同时支持;
|
|
47
|
-
- 5.chore: 设置 tsconfig.json importsNotUsedAsValues 为 error,在引用类型时,必须显示写为 import type。
|
|
48
|
-
|
|
49
|
-
## 2.0.0-alpha.18
|
|
50
|
-
- 1.fix: 修复 PanoMeasurePlugin 使用时 hammerjs 报错问题。
|
|
51
|
-
|
|
52
|
-
## 2.0.0-alpha.17
|
|
53
|
-
- 1.fix: 修复构建输出 px2rem 失效问题。
|
|
54
|
-
|
|
55
|
-
## 2.0.0-alpha.16
|
|
56
|
-
- 1.fix: 修复 z-index 问题;
|
|
57
|
-
- 2.fix: 修复 ModelItemLabelPlugin 事件监听问题。
|
|
58
|
-
|
|
59
|
-
## 2.0.0-alpha.15
|
|
60
|
-
- 1.refactor: 优化 ModelItemLabelPlugin 在调用 five.setState() 时的动画显示。
|
|
61
|
-
|
|
62
|
-
## 2.0.0-alpha.14
|
|
63
|
-
- 1.feat: 新增 ModelTVVideoPlugin 插件;
|
|
64
|
-
- 2.fix: 修复 ModelItemLabelPlugin disable & enable 方法逻辑;
|
|
65
|
-
- 3.refactor: 增加 ModelItemLabelPlugin 类型导出。
|
|
66
|
-
|
|
67
|
-
## 2.0.0-alpha.13
|
|
68
|
-
- 1.chore: 修改 tsconfig.json target 配置项为 es6。
|
|
69
|
-
|
|
70
|
-
## 2.0.0-alpha.12
|
|
71
|
-
- 1.feat: 新增 ModelItemLabelPlugin
|
|
72
|
-
|
|
73
|
-
## 2.0.0-alpha.11
|
|
74
|
-
- 1.fix: 修复 ModelRoomLabelPlugin 未监听多楼层切换 rerender 问题。
|
|
75
|
-
- 2.feat: ModelFloorplanPlugin & TopviewFloorplanPlugin 新增 `northDesc?: string` 配置项,支持用户修改指北针名称。
|
|
76
|
-
|
|
77
|
-
## 2.0.0-alpha.10
|
|
78
|
-
- 1.feat: 新增空间三维标签插件 PanoSpatialTagPlugin
|
|
79
|
-
- 2.feat: 新增轻量 ejs 渲染模板函数 shared-utils/tinyEJSrender.js
|
|
80
|
-
|
|
81
|
-
## 2.0.0-alpha.9
|
|
82
|
-
- 1.refactor: 增加插件独立 js 输出及对 svelte 的编译。
|
|
83
|
-
|
|
84
|
-
## 2.0.0-alpha.8
|
|
85
|
-
- 1.fix: 修复 ModelViewPlugin 实景 VR 模型不居中问题;
|
|
86
|
-
- 2.fix: 修复 ModelRoomLabelPlugin fov 更新未 rerender 问题;
|
|
87
|
-
- 2.fix: 修复 ModelRoomLabelPlugin enable 判断问题;
|
|
88
|
-
- 4.fix: 修改 ModelFloorplanPlugin 在全景态满足户型图的俯仰角时会自动切换户型图问题。
|
|
89
|
-
|
|
90
|
-
## 2.0.0-alpha.7
|
|
91
|
-
- 1.fix: PanoCompassPlugin 向下兼容;
|
|
92
|
-
- 2.feat: 新增 PC 全景测量插件:PanoMeasurePlugin;
|
|
93
|
-
- 3.docs: 修改 README.md;
|
|
94
|
-
|
|
95
|
-
## 2.0.0-alpha.6
|
|
96
|
-
- 1.fix: 标尺插件 PanoRulerPlugin 所有标尺仅展示一次问题;
|
|
97
|
-
- 2.fix: TopviewFloorplanPlugin && ModelFloorplanPlugin 插件小雷达位置显示不正确问题;
|
|
98
|
-
- 3.feat: 为 TopviewFloorplanPlugin && ModelFloorplanPlugin 插件新增线框图吸附位置配置选项。
|
|
99
|
-
- 可选地板、天花板、模型中心,默认吸附选项为模型中心。
|
|
100
|
-
|
|
101
|
-
## 2.0.0-alpha.5
|
|
102
|
-
1.修复全景指南针插件 PanoCompassPlugin 默认导出 name
|
|
103
|
-
|
|
104
|
-
## 2.0.0-alpha.4
|
|
105
|
-
1.新增全景标尺插件 PanoRulerPlugin
|
|
106
|
-
|
|
107
|
-
## 2.0.0-alpha.3
|
|
108
|
-
1.新增全景指南针插件 PanoCompassPlugin
|