@realsee/dnalogel 2.0.0-alpha.8 → 2.0.0-alpha.9
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/CSS3DRenderPlugin/index.d.ts +49 -0
- package/dist/CSS3DRenderPlugin/index.js +233 -0
- package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +7 -0
- package/dist/CameraMovementPlugin/index.d.ts +7 -0
- package/dist/CameraMovementPlugin/index.js +302 -0
- package/dist/CameraMovementPlugin/typing.d.ts +68 -0
- package/dist/ModelChassisCompassPlugin/index.d.ts +19 -0
- package/dist/ModelChassisCompassPlugin/index.js +142 -0
- package/dist/ModelEntryDoorGuidePlugin/index.d.ts +26 -0
- package/dist/ModelEntryDoorGuidePlugin/index.js +196 -0
- package/dist/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
- package/dist/ModelRoomLabelPlugin/Controller.d.ts +36 -0
- package/dist/ModelRoomLabelPlugin/index.d.ts +12 -0
- package/dist/ModelRoomLabelPlugin/index.js +461 -0
- package/dist/ModelRoomLabelPlugin/typings.d.ts +35 -0
- package/dist/ModelRoomLabelPlugin/utils/parseData.d.ts +3 -0
- package/dist/ModelViewPlugin/index.d.ts +17 -0
- package/dist/ModelViewPlugin/index.js +187 -0
- package/dist/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
- package/dist/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
- package/dist/PanoCompassPlugin/index.d.ts +51 -0
- package/dist/PanoCompassPlugin/index.js +523 -0
- package/dist/PanoCursorRaycasterPlugin/index.d.ts +48 -0
- package/dist/PanoCursorRaycasterPlugin/index.js +88 -0
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +36 -0
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +52 -0
- package/dist/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
- package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +25 -0
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +61 -0
- package/dist/PanoMeasurePlugin/Model/index.d.ts +38 -0
- package/dist/PanoMeasurePlugin/Model/line.d.ts +30 -0
- package/dist/PanoMeasurePlugin/Model/point.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +22 -0
- package/dist/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
- package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
- package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +24 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +6 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +18 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +12 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +16 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +17 -0
- package/dist/PanoMeasurePlugin/index.d.ts +7 -0
- package/dist/PanoMeasurePlugin/index.js +4789 -0
- package/dist/PanoMeasurePlugin/typings/data.d.ts +28 -0
- package/dist/PanoMeasurePlugin/typings/event.type.d.ts +28 -0
- package/dist/PanoMeasurePlugin/typings/utils.type.d.ts +1 -0
- package/dist/PanoMeasurePlugin/utils/clearGroup.d.ts +2 -0
- package/dist/PanoMeasurePlugin/utils/constants.d.ts +4 -0
- package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
- package/dist/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
- package/dist/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
- package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
- package/dist/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
- package/dist/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
- package/dist/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
- package/dist/PanoMeasurePlugin/utils/line.d.ts +17 -0
- package/dist/PanoMeasurePlugin/utils/math.d.ts +17 -0
- package/dist/PanoMeasurePlugin/utils/mouseGroup.d.ts +2 -0
- package/dist/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
- package/dist/PanoRulerPlugin/index.d.ts +31 -0
- package/dist/PanoRulerPlugin/index.js +610 -0
- package/dist/PanoRulerPlugin/style.d.ts +2 -0
- package/dist/PanoRulerPlugin/typings.d.ts +21 -0
- package/dist/floorplan/Assets/camera.d.ts +1 -0
- package/dist/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/Assets/compass.d.ts +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/Controller.d.ts +104 -0
- package/dist/floorplan/ModelFloorplanPlugin/index.d.ts +9 -0
- package/dist/floorplan/ModelFloorplanPlugin/index.js +3827 -0
- package/dist/floorplan/ModelFloorplanPlugin/typings/events.type.d.ts +23 -0
- package/dist/floorplan/ModelFloorplanPlugin/utils/constant.d.ts +15 -0
- package/dist/floorplan/ModelFloorplanPlugin/utils/correctFiveState.d.ts +14 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +28 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.d.ts +8 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/index.js +1673 -0
- package/dist/floorplan/TopviewFloorplanPlugin/Controller.d.ts +61 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.d.ts +5 -0
- package/dist/floorplan/TopviewFloorplanPlugin/index.js +3466 -0
- package/dist/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
- package/dist/floorplan/constant.d.ts +5 -0
- package/dist/floorplan/typings/floorplanData.d.ts +137 -0
- package/dist/floorplan/typings/floorplanServerData.d.ts +131 -0
- package/dist/floorplan/typings/utility.d.ts +2 -0
- package/dist/floorplan/utils/formatData.d.ts +5 -0
- package/dist/floorplan/utils/formatPosition.d.ts +36 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.es.js +11887 -0
- package/dist/index.js +11925 -0
- package/dist/index.umd.js +11920 -0
- package/dist/shared-utils/Preloader.d.ts +6 -0
- package/dist/shared-utils/Subscribe.d.ts +45 -0
- package/dist/shared-utils/animationFrame/BetterTween.d.ts +11 -0
- package/dist/shared-utils/animationFrame/calculateProgress.d.ts +8 -0
- package/dist/shared-utils/animationFrame/formatRad.d.ts +15 -0
- package/dist/shared-utils/animationFrame/index.d.ts +15 -0
- package/dist/shared-utils/animationFrame/tween.d.ts +75 -0
- package/dist/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
- package/dist/shared-utils/createCanvasTextTexture.d.ts +8 -0
- package/dist/shared-utils/createLine/index.d.ts +3 -0
- package/dist/shared-utils/debounce.d.ts +6 -0
- package/dist/shared-utils/equal.d.ts +11 -0
- package/dist/shared-utils/filter.d.ts +27 -0
- package/dist/shared-utils/five/changeMode.d.ts +2 -0
- package/dist/shared-utils/five/useFivePlugin.d.ts +1 -0
- package/dist/shared-utils/formatRad.d.ts +7 -0
- package/dist/shared-utils/getPxmm.d.ts +11 -0
- package/dist/shared-utils/getRandomColor.d.ts +1 -0
- package/dist/shared-utils/isNil.d.ts +10 -0
- package/dist/shared-utils/isTruelyObject.d.ts +18 -0
- package/dist/shared-utils/math/evenNumber.d.ts +3 -0
- package/dist/shared-utils/math/planimetry.d.ts +116 -0
- package/dist/shared-utils/math/rad2Deg.d.ts +1 -0
- package/dist/shared-utils/nearlyEqual.d.ts +7 -0
- package/dist/shared-utils/nextFrame.d.ts +1 -0
- package/dist/shared-utils/noop.d.ts +5 -0
- package/dist/shared-utils/object3d2LocalMatrix.d.ts +12 -0
- package/dist/shared-utils/px2rem.d.ts +1 -0
- package/dist/shared-utils/removeArrayItem.d.ts +7 -0
- package/dist/shared-utils/tap.d.ts +8 -0
- package/dist/shared-utils/three/centerPoint.d.ts +2 -0
- package/dist/shared-utils/three/getExtraModelLoader.d.ts +6 -0
- package/dist/shared-utils/three/getNormal.d.ts +2 -0
- package/dist/shared-utils/three/getTextureLoader.d.ts +6 -0
- package/dist/shared-utils/three/loadFbxObj.d.ts +2 -0
- package/dist/shared-utils/three/loadTexture.d.ts +2 -0
- package/dist/shared-utils/three/transformPositionToVector3.d.ts +7 -0
- package/dist/shared-utils/three/transfromToMeshBasicMaterial.d.ts +2 -0
- package/dist/shared-utils/throttle.d.ts +7 -0
- package/dist/shared-utils/to.d.ts +8 -0
- package/dist/shared-utils/useDebounce.d.ts +8 -0
- package/dist/shared-utils/useThrottle.d.ts +8 -0
- package/dist/shared-utils/uuid.d.ts +4 -0
- package/dist/shared-utils/vectorTocoordinates.d.ts +7 -0
- package/dist/typings/math.type.d.ts +44 -0
- package/dist/typings/utils.type.d.ts +2 -0
- 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/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/PointJson.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/TopviewFloorplanPluginParameterType.html +1 -1
- package/docs/modules.html +11 -11
- package/libs/ModelRoomLabelPlugin/Controller.js +2 -2
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +121 -0
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +253 -0
- package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -1
- package/libs/floorplan/Components/BaseImage.js +217 -0
- package/libs/floorplan/Components/Normalmage.js +63 -0
- package/libs/floorplan/Components/RoomHighlight/Room.js +70 -0
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +289 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +328 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +64 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +103 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +140 -0
- package/libs/floorplan/Components/SvgImage.js +83 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.js +120 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.js +106 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.js +463 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/Main.js +375 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.js +171 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.js +265 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.js +301 -0
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.js +219 -0
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +152 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +248 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +154 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +312 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
- package/package.json +18 -10
- package/dist/dnalogel.cjs.js +0 -7
- package/dist/dnalogel.es.js +0 -41280
- package/dist/dnalogel.umd.js +0 -7
- package/dist/style.css +0 -1
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.svelte +0 -63
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.svelte.map +0 -1
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.svelte +0 -80
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.svelte.map +0 -1
- package/libs/floorplan/Components/BaseImage.svelte +0 -25
- package/libs/floorplan/Components/BaseImage.svelte.map +0 -1
- package/libs/floorplan/Components/Normalmage.svelte +0 -11
- package/libs/floorplan/Components/Normalmage.svelte.map +0 -1
- package/libs/floorplan/Components/RoomHighlight/Room.svelte +0 -21
- package/libs/floorplan/Components/RoomHighlight/Room.svelte.map +0 -1
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.svelte +0 -60
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.svelte.map +0 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.svelte +0 -35
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.svelte.map +0 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte +0 -7
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte.map +0 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte +0 -16
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte.map +0 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte +0 -17
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte.map +0 -1
- package/libs/floorplan/Components/SvgImage.svelte +0 -25
- package/libs/floorplan/Components/SvgImage.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.svelte +0 -46
- package/libs/floorplan/ModelFloorplanPlugin/Components/Camera.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.svelte +0 -48
- package/libs/floorplan/ModelFloorplanPlugin/Components/Compass.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.svelte +0 -37
- package/libs/floorplan/ModelFloorplanPlugin/Components/CurrentFloor/CurrentFloor.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/Main.svelte +0 -50
- package/libs/floorplan/ModelFloorplanPlugin/Components/Main.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.svelte +0 -41
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabel.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.svelte +0 -25
- package/libs/floorplan/ModelFloorplanPlugin/Components/RoomLabels/RoomLabels.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.svelte +0 -148
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleItem.svelte.map +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.svelte +0 -15
- package/libs/floorplan/ModelFloorplanPlugin/Components/RuleLabels/RuleLabels.svelte.map +0 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte +0 -84
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte.map +0 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte +0 -18
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte.map +0 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte +0 -40
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte.map +0 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte +0 -61
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte.map +0 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/* generated by Svelte v3.47.0 */
|
|
2
|
+
import {
|
|
3
|
+
SvelteComponent,
|
|
4
|
+
attr,
|
|
5
|
+
detach,
|
|
6
|
+
init,
|
|
7
|
+
insert,
|
|
8
|
+
noop,
|
|
9
|
+
safe_not_equal,
|
|
10
|
+
svg_element
|
|
11
|
+
} from "svelte/internal";
|
|
12
|
+
|
|
13
|
+
import { pathD } from '../../utils/formatPosition';
|
|
14
|
+
|
|
15
|
+
function create_fragment(ctx) {
|
|
16
|
+
let path_1;
|
|
17
|
+
|
|
18
|
+
return {
|
|
19
|
+
c() {
|
|
20
|
+
path_1 = svg_element("path");
|
|
21
|
+
attr(path_1, "d", /*d*/ ctx[0]);
|
|
22
|
+
attr(path_1, "fill", "#2F313A");
|
|
23
|
+
},
|
|
24
|
+
m(target, anchor) {
|
|
25
|
+
insert(target, path_1, anchor);
|
|
26
|
+
},
|
|
27
|
+
p(ctx, [dirty]) {
|
|
28
|
+
if (dirty & /*d*/ 1) {
|
|
29
|
+
attr(path_1, "d", /*d*/ ctx[0]);
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
i: noop,
|
|
33
|
+
o: noop,
|
|
34
|
+
d(detaching) {
|
|
35
|
+
if (detaching) detach(path_1);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function instance($$self, $$props, $$invalidate) {
|
|
41
|
+
let d;
|
|
42
|
+
let { path } = $$props;
|
|
43
|
+
|
|
44
|
+
$$self.$$set = $$props => {
|
|
45
|
+
if ('path' in $$props) $$invalidate(1, path = $$props.path);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
$$self.$$.update = () => {
|
|
49
|
+
if ($$self.$$.dirty & /*path*/ 2) {
|
|
50
|
+
$: $$invalidate(0, d = pathD(path, { needZ: true }));
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
return [d, path];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
class Component extends SvelteComponent {
|
|
58
|
+
constructor(options) {
|
|
59
|
+
super();
|
|
60
|
+
init(this, options, instance, create_fragment, safe_not_equal, { path: 1 });
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export default Component;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/* generated by Svelte v3.47.0 */
|
|
2
|
+
import {
|
|
3
|
+
SvelteComponent,
|
|
4
|
+
append,
|
|
5
|
+
attr,
|
|
6
|
+
detach,
|
|
7
|
+
init,
|
|
8
|
+
insert,
|
|
9
|
+
noop,
|
|
10
|
+
safe_not_equal,
|
|
11
|
+
space,
|
|
12
|
+
svg_element
|
|
13
|
+
} from "svelte/internal";
|
|
14
|
+
|
|
15
|
+
import { pathD } from '../../utils/formatPosition';
|
|
16
|
+
|
|
17
|
+
function create_fragment(ctx) {
|
|
18
|
+
let defs;
|
|
19
|
+
let pattern;
|
|
20
|
+
let rect;
|
|
21
|
+
let path0;
|
|
22
|
+
let t;
|
|
23
|
+
let path1;
|
|
24
|
+
|
|
25
|
+
return {
|
|
26
|
+
c() {
|
|
27
|
+
defs = svg_element("defs");
|
|
28
|
+
pattern = svg_element("pattern");
|
|
29
|
+
rect = svg_element("rect");
|
|
30
|
+
path0 = svg_element("path");
|
|
31
|
+
t = space();
|
|
32
|
+
path1 = svg_element("path");
|
|
33
|
+
attr(rect, "x", "0");
|
|
34
|
+
attr(rect, "y", "0");
|
|
35
|
+
attr(rect, "width", /*width*/ ctx[1]);
|
|
36
|
+
attr(rect, "height", /*width*/ ctx[1]);
|
|
37
|
+
attr(rect, "fill", "#323747");
|
|
38
|
+
attr(path0, "d", /*patternPathD*/ ctx[2]);
|
|
39
|
+
attr(path0, "stroke", "#ffffff");
|
|
40
|
+
attr(path0, "stroke-opacity", "0.06");
|
|
41
|
+
attr(path0, "stroke-width", "0.5");
|
|
42
|
+
attr(path0, "fill", "none");
|
|
43
|
+
attr(pattern, "id", "fpm-room-pattern-0");
|
|
44
|
+
attr(pattern, "x", "0");
|
|
45
|
+
attr(pattern, "y", "0");
|
|
46
|
+
attr(pattern, "width", /*width*/ ctx[1]);
|
|
47
|
+
attr(pattern, "height", /*width*/ ctx[1]);
|
|
48
|
+
attr(pattern, "patternUnits", "userSpaceOnUse");
|
|
49
|
+
attr(path1, "d", /*d*/ ctx[0]);
|
|
50
|
+
attr(path1, "fill", "url(#fpm-room-pattern-0)");
|
|
51
|
+
},
|
|
52
|
+
m(target, anchor) {
|
|
53
|
+
insert(target, defs, anchor);
|
|
54
|
+
append(defs, pattern);
|
|
55
|
+
append(pattern, rect);
|
|
56
|
+
append(pattern, path0);
|
|
57
|
+
insert(target, t, anchor);
|
|
58
|
+
insert(target, path1, anchor);
|
|
59
|
+
},
|
|
60
|
+
p(ctx, [dirty]) {
|
|
61
|
+
if (dirty & /*d*/ 1) {
|
|
62
|
+
attr(path1, "d", /*d*/ ctx[0]);
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
i: noop,
|
|
66
|
+
o: noop,
|
|
67
|
+
d(detaching) {
|
|
68
|
+
if (detaching) detach(defs);
|
|
69
|
+
if (detaching) detach(t);
|
|
70
|
+
if (detaching) detach(path1);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const halfWidth = 6;
|
|
76
|
+
|
|
77
|
+
function instance($$self, $$props, $$invalidate) {
|
|
78
|
+
let d;
|
|
79
|
+
let { path } = $$props;
|
|
80
|
+
const width = halfWidth * 2;
|
|
81
|
+
const patternPathD = `M0 ${halfWidth} h ${width} M${halfWidth} 0 v ${width}`;
|
|
82
|
+
|
|
83
|
+
$$self.$$set = $$props => {
|
|
84
|
+
if ('path' in $$props) $$invalidate(3, path = $$props.path);
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
$$self.$$.update = () => {
|
|
88
|
+
if ($$self.$$.dirty & /*path*/ 8) {
|
|
89
|
+
$: $$invalidate(0, d = pathD(path, { needZ: true }));
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
return [d, width, patternPathD, path];
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
class Component extends SvelteComponent {
|
|
97
|
+
constructor(options) {
|
|
98
|
+
super();
|
|
99
|
+
init(this, options, instance, create_fragment, safe_not_equal, { path: 3 });
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export default Component;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/* generated by Svelte v3.47.0 */
|
|
2
|
+
import {
|
|
3
|
+
SvelteComponent,
|
|
4
|
+
append,
|
|
5
|
+
attr,
|
|
6
|
+
detach,
|
|
7
|
+
init,
|
|
8
|
+
insert,
|
|
9
|
+
noop,
|
|
10
|
+
safe_not_equal,
|
|
11
|
+
space,
|
|
12
|
+
svg_element
|
|
13
|
+
} from "svelte/internal";
|
|
14
|
+
|
|
15
|
+
import { pathD } from '../../utils/formatPosition';
|
|
16
|
+
|
|
17
|
+
function create_fragment(ctx) {
|
|
18
|
+
let defs;
|
|
19
|
+
let pattern0;
|
|
20
|
+
let rect0;
|
|
21
|
+
let pattern1;
|
|
22
|
+
let rect1;
|
|
23
|
+
let t0;
|
|
24
|
+
let path0;
|
|
25
|
+
let t1;
|
|
26
|
+
let path1;
|
|
27
|
+
let t2;
|
|
28
|
+
let path2;
|
|
29
|
+
|
|
30
|
+
return {
|
|
31
|
+
c() {
|
|
32
|
+
defs = svg_element("defs");
|
|
33
|
+
pattern0 = svg_element("pattern");
|
|
34
|
+
rect0 = svg_element("rect");
|
|
35
|
+
pattern1 = svg_element("pattern");
|
|
36
|
+
rect1 = svg_element("rect");
|
|
37
|
+
t0 = space();
|
|
38
|
+
path0 = svg_element("path");
|
|
39
|
+
t1 = space();
|
|
40
|
+
path1 = svg_element("path");
|
|
41
|
+
t2 = space();
|
|
42
|
+
path2 = svg_element("path");
|
|
43
|
+
attr(rect0, "x", "0.5");
|
|
44
|
+
attr(rect0, "y", "0.5");
|
|
45
|
+
attr(rect0, "width", "6");
|
|
46
|
+
attr(rect0, "height", "50");
|
|
47
|
+
attr(rect0, "fill", "none");
|
|
48
|
+
attr(rect0, "stroke", "#4B4B57");
|
|
49
|
+
attr(rect0, "stroke-width", "0.5");
|
|
50
|
+
attr(pattern0, "id", "room-material-pattern-1");
|
|
51
|
+
attr(pattern0, "x", "0");
|
|
52
|
+
attr(pattern0, "y", "0");
|
|
53
|
+
attr(pattern0, "width", "13");
|
|
54
|
+
attr(pattern0, "height", "51");
|
|
55
|
+
attr(pattern0, "patternUnits", "userSpaceOnUse");
|
|
56
|
+
attr(rect1, "x", "0.5");
|
|
57
|
+
attr(rect1, "y", "0.5");
|
|
58
|
+
attr(rect1, "width", "6");
|
|
59
|
+
attr(rect1, "height", "50");
|
|
60
|
+
attr(rect1, "fill", "none");
|
|
61
|
+
attr(rect1, "stroke", "#4B4B57");
|
|
62
|
+
attr(rect1, "stroke-width", "0.5");
|
|
63
|
+
attr(pattern1, "id", "room-material-pattern-2");
|
|
64
|
+
attr(pattern1, "x", "7");
|
|
65
|
+
attr(pattern1, "y", "25");
|
|
66
|
+
attr(pattern1, "width", "13");
|
|
67
|
+
attr(pattern1, "height", "51");
|
|
68
|
+
attr(pattern1, "patternUnits", "userSpaceOnUse");
|
|
69
|
+
attr(path0, "d", /*d*/ ctx[0]);
|
|
70
|
+
attr(path0, "fill", "#43434D");
|
|
71
|
+
attr(path1, "d", /*d*/ ctx[0]);
|
|
72
|
+
attr(path1, "fill", "url(#room-material-pattern-1)");
|
|
73
|
+
attr(path2, "d", /*d*/ ctx[0]);
|
|
74
|
+
attr(path2, "fill", "url(#room-material-pattern-2)");
|
|
75
|
+
},
|
|
76
|
+
m(target, anchor) {
|
|
77
|
+
insert(target, defs, anchor);
|
|
78
|
+
append(defs, pattern0);
|
|
79
|
+
append(pattern0, rect0);
|
|
80
|
+
append(defs, pattern1);
|
|
81
|
+
append(pattern1, rect1);
|
|
82
|
+
insert(target, t0, anchor);
|
|
83
|
+
insert(target, path0, anchor);
|
|
84
|
+
insert(target, t1, anchor);
|
|
85
|
+
insert(target, path1, anchor);
|
|
86
|
+
insert(target, t2, anchor);
|
|
87
|
+
insert(target, path2, anchor);
|
|
88
|
+
},
|
|
89
|
+
p(ctx, [dirty]) {
|
|
90
|
+
if (dirty & /*d*/ 1) {
|
|
91
|
+
attr(path0, "d", /*d*/ ctx[0]);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (dirty & /*d*/ 1) {
|
|
95
|
+
attr(path1, "d", /*d*/ ctx[0]);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (dirty & /*d*/ 1) {
|
|
99
|
+
attr(path2, "d", /*d*/ ctx[0]);
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
i: noop,
|
|
103
|
+
o: noop,
|
|
104
|
+
d(detaching) {
|
|
105
|
+
if (detaching) detach(defs);
|
|
106
|
+
if (detaching) detach(t0);
|
|
107
|
+
if (detaching) detach(path0);
|
|
108
|
+
if (detaching) detach(t1);
|
|
109
|
+
if (detaching) detach(path1);
|
|
110
|
+
if (detaching) detach(t2);
|
|
111
|
+
if (detaching) detach(path2);
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
function instance($$self, $$props, $$invalidate) {
|
|
117
|
+
let d;
|
|
118
|
+
let { path } = $$props;
|
|
119
|
+
|
|
120
|
+
$$self.$$set = $$props => {
|
|
121
|
+
if ('path' in $$props) $$invalidate(1, path = $$props.path);
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
$$self.$$.update = () => {
|
|
125
|
+
if ($$self.$$.dirty & /*path*/ 2) {
|
|
126
|
+
$: $$invalidate(0, d = pathD(path, { needZ: true }));
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
return [d, path];
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
class Component extends SvelteComponent {
|
|
134
|
+
constructor(options) {
|
|
135
|
+
super();
|
|
136
|
+
init(this, options, instance, create_fragment, safe_not_equal, { path: 1 });
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export default Component;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* generated by Svelte v3.47.0 */
|
|
2
|
+
import {
|
|
3
|
+
HtmlTag,
|
|
4
|
+
SvelteComponent,
|
|
5
|
+
append,
|
|
6
|
+
append_styles,
|
|
7
|
+
attr,
|
|
8
|
+
detach,
|
|
9
|
+
element,
|
|
10
|
+
init,
|
|
11
|
+
insert,
|
|
12
|
+
noop,
|
|
13
|
+
safe_not_equal,
|
|
14
|
+
space
|
|
15
|
+
} from "svelte/internal";
|
|
16
|
+
|
|
17
|
+
function add_css(target) {
|
|
18
|
+
append_styles(target, "svelte-1qqy56u", ".floorplan-plugin__base-image.svelte-1qqy56u{width:100%;height:100%}");
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function create_fragment(ctx) {
|
|
22
|
+
let div;
|
|
23
|
+
let html_tag;
|
|
24
|
+
let t;
|
|
25
|
+
let html_tag_1;
|
|
26
|
+
|
|
27
|
+
return {
|
|
28
|
+
c() {
|
|
29
|
+
div = element("div");
|
|
30
|
+
html_tag = new HtmlTag();
|
|
31
|
+
t = space();
|
|
32
|
+
html_tag_1 = new HtmlTag();
|
|
33
|
+
html_tag.a = t;
|
|
34
|
+
html_tag_1.a = null;
|
|
35
|
+
attr(div, "class", "floorplan-plugin__base-image svelte-1qqy56u");
|
|
36
|
+
},
|
|
37
|
+
m(target, anchor) {
|
|
38
|
+
insert(target, div, anchor);
|
|
39
|
+
html_tag.m(/*svgStyle*/ ctx[1], div);
|
|
40
|
+
append(div, t);
|
|
41
|
+
html_tag_1.m(/*content*/ ctx[0], div);
|
|
42
|
+
},
|
|
43
|
+
p(ctx, [dirty]) {
|
|
44
|
+
if (dirty & /*content*/ 1) html_tag_1.p(/*content*/ ctx[0]);
|
|
45
|
+
},
|
|
46
|
+
i: noop,
|
|
47
|
+
o: noop,
|
|
48
|
+
d(detaching) {
|
|
49
|
+
if (detaching) detach(div);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function instance($$self, $$props, $$invalidate) {
|
|
55
|
+
let { content } = $$props;
|
|
56
|
+
|
|
57
|
+
const svgStyle = `
|
|
58
|
+
<style>
|
|
59
|
+
svg [type='lineGroup'] path {
|
|
60
|
+
fill: #ffffff;
|
|
61
|
+
stroke: #ffffff;
|
|
62
|
+
}
|
|
63
|
+
svg [type='lineItemGroup'] g g g g {
|
|
64
|
+
stroke: #ffffff;
|
|
65
|
+
}
|
|
66
|
+
</style>
|
|
67
|
+
`;
|
|
68
|
+
|
|
69
|
+
$$self.$$set = $$props => {
|
|
70
|
+
if ('content' in $$props) $$invalidate(0, content = $$props.content);
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
return [content, svgStyle];
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
class Component extends SvelteComponent {
|
|
77
|
+
constructor(options) {
|
|
78
|
+
super();
|
|
79
|
+
init(this, options, instance, create_fragment, safe_not_equal, { content: 0 }, add_css);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export default Component;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/* generated by Svelte v3.47.0 */
|
|
2
|
+
import {
|
|
3
|
+
SvelteComponent,
|
|
4
|
+
append,
|
|
5
|
+
append_styles,
|
|
6
|
+
attr,
|
|
7
|
+
detach,
|
|
8
|
+
element,
|
|
9
|
+
init,
|
|
10
|
+
insert,
|
|
11
|
+
noop,
|
|
12
|
+
safe_not_equal,
|
|
13
|
+
set_style
|
|
14
|
+
} from "svelte/internal";
|
|
15
|
+
|
|
16
|
+
import { CAMERA_IMAGE } from '../../Assets/camera';
|
|
17
|
+
import rad2Deg from '../../../shared-utils/math/rad2Deg';
|
|
18
|
+
|
|
19
|
+
function add_css(target) {
|
|
20
|
+
append_styles(target, "svelte-e8a2kn", ".floorplan__camera-position.svelte-e8a2kn{position:absolute;width:0;height:0}.floorplan__camera-rotate.svelte-e8a2kn{position:absolute;background-repeat:no-repeat;background-size:100%}");
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function create_fragment(ctx) {
|
|
24
|
+
let div1;
|
|
25
|
+
let div0;
|
|
26
|
+
|
|
27
|
+
return {
|
|
28
|
+
c() {
|
|
29
|
+
div1 = element("div");
|
|
30
|
+
div0 = element("div");
|
|
31
|
+
attr(div0, "class", "floorplan__camera-rotate svelte-e8a2kn");
|
|
32
|
+
set_style(div0, "background-image", `url(${/*cameraImageUrl*/ ctx[0] || CAMERA_IMAGE})`);
|
|
33
|
+
set_style(div0, "width", /*domSizeStyle*/ ctx[4], false);
|
|
34
|
+
set_style(div0, "height", /*domSizeStyle*/ ctx[4], false);
|
|
35
|
+
set_style(div0, "left", '-' + /*domSizeStyle*/ ctx[4], false);
|
|
36
|
+
set_style(div0, "top", '-' + /*domSizeStyle*/ ctx[4], false);
|
|
37
|
+
set_style(div0, "transform", `rotate(${/*rotate*/ ctx[3]}deg)`, false);
|
|
38
|
+
set_style(div0, "transform-origin", `${/*domSizeStyle*/ ctx[4]} ${/*domSizeStyle*/ ctx[4]}`, false);
|
|
39
|
+
attr(div1, "class", "floorplan__camera-position svelte-e8a2kn");
|
|
40
|
+
set_style(div1, "left", /*positionLeft*/ ctx[1], false);
|
|
41
|
+
set_style(div1, "top", /*positionTop*/ ctx[2], false);
|
|
42
|
+
},
|
|
43
|
+
m(target, anchor) {
|
|
44
|
+
insert(target, div1, anchor);
|
|
45
|
+
append(div1, div0);
|
|
46
|
+
},
|
|
47
|
+
p(ctx, [dirty]) {
|
|
48
|
+
if (dirty & /*cameraImageUrl*/ 1) {
|
|
49
|
+
set_style(div0, "background-image", `url(${/*cameraImageUrl*/ ctx[0] || CAMERA_IMAGE})`);
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
i: noop,
|
|
53
|
+
o: noop,
|
|
54
|
+
d(detaching) {
|
|
55
|
+
if (detaching) detach(div1);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function instance($$self, $$props, $$invalidate) {
|
|
61
|
+
let { panoIndex } = $$props;
|
|
62
|
+
let { floorplanData } = $$props;
|
|
63
|
+
let { lastPanoramaLongitude } = $$props;
|
|
64
|
+
let { cameraImageUrl } = $$props;
|
|
65
|
+
const { observers } = floorplanData;
|
|
66
|
+
const observer = observers[panoIndex];
|
|
67
|
+
const leftRatio = observer.positionInImage.x;
|
|
68
|
+
const topRatio = observer.positionInImage.y;
|
|
69
|
+
const positionLeft = leftRatio * 100 + '%';
|
|
70
|
+
const positionTop = topRatio * 100 + '%';
|
|
71
|
+
const rotate = -rad2Deg(lastPanoramaLongitude) + 45;
|
|
72
|
+
|
|
73
|
+
// TODO: 统一这里的判断条件,目前写了多处
|
|
74
|
+
const bodyWidth = document.body.clientWidth;
|
|
75
|
+
|
|
76
|
+
const bodyHeight = document.body.clientHeight;
|
|
77
|
+
const size = bodyWidth < 500 || bodyHeight < 500 ? 17 : 37;
|
|
78
|
+
const domSizeStyle = `${size / 16}rem`;
|
|
79
|
+
|
|
80
|
+
$$self.$$set = $$props => {
|
|
81
|
+
if ('panoIndex' in $$props) $$invalidate(5, panoIndex = $$props.panoIndex);
|
|
82
|
+
if ('floorplanData' in $$props) $$invalidate(6, floorplanData = $$props.floorplanData);
|
|
83
|
+
if ('lastPanoramaLongitude' in $$props) $$invalidate(7, lastPanoramaLongitude = $$props.lastPanoramaLongitude);
|
|
84
|
+
if ('cameraImageUrl' in $$props) $$invalidate(0, cameraImageUrl = $$props.cameraImageUrl);
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
return [
|
|
88
|
+
cameraImageUrl,
|
|
89
|
+
positionLeft,
|
|
90
|
+
positionTop,
|
|
91
|
+
rotate,
|
|
92
|
+
domSizeStyle,
|
|
93
|
+
panoIndex,
|
|
94
|
+
floorplanData,
|
|
95
|
+
lastPanoramaLongitude
|
|
96
|
+
];
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
class Component extends SvelteComponent {
|
|
100
|
+
constructor(options) {
|
|
101
|
+
super();
|
|
102
|
+
|
|
103
|
+
init(
|
|
104
|
+
this,
|
|
105
|
+
options,
|
|
106
|
+
instance,
|
|
107
|
+
create_fragment,
|
|
108
|
+
safe_not_equal,
|
|
109
|
+
{
|
|
110
|
+
panoIndex: 5,
|
|
111
|
+
floorplanData: 6,
|
|
112
|
+
lastPanoramaLongitude: 7,
|
|
113
|
+
cameraImageUrl: 0
|
|
114
|
+
},
|
|
115
|
+
add_css
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export default Component;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* generated by Svelte v3.47.0 */
|
|
2
|
+
import {
|
|
3
|
+
SvelteComponent,
|
|
4
|
+
append,
|
|
5
|
+
append_styles,
|
|
6
|
+
attr,
|
|
7
|
+
detach,
|
|
8
|
+
element,
|
|
9
|
+
empty,
|
|
10
|
+
init,
|
|
11
|
+
insert,
|
|
12
|
+
noop,
|
|
13
|
+
safe_not_equal,
|
|
14
|
+
set_style,
|
|
15
|
+
space
|
|
16
|
+
} from "svelte/internal";
|
|
17
|
+
|
|
18
|
+
import { COMPASS_IMAGE } from '../Assets/compass';
|
|
19
|
+
|
|
20
|
+
function add_css(target) {
|
|
21
|
+
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}");
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// (11:0) {#if northRad}
|
|
25
|
+
function create_if_block(ctx) {
|
|
26
|
+
let div1;
|
|
27
|
+
let div0;
|
|
28
|
+
let t0;
|
|
29
|
+
let span;
|
|
30
|
+
|
|
31
|
+
return {
|
|
32
|
+
c() {
|
|
33
|
+
div1 = element("div");
|
|
34
|
+
div0 = element("div");
|
|
35
|
+
t0 = space();
|
|
36
|
+
span = element("span");
|
|
37
|
+
span.textContent = "北";
|
|
38
|
+
attr(div0, "class", "floorplan-plugin__compass-image svelte-5l80pv");
|
|
39
|
+
set_style(div0, "background-image", `url(${COMPASS_IMAGE})`);
|
|
40
|
+
attr(span, "class", "floorplan-plugin__compass-text svelte-5l80pv");
|
|
41
|
+
attr(div1, "class", "floorplan-plugin__compass svelte-5l80pv");
|
|
42
|
+
set_style(div1, "transform", /*compassTransformStyle*/ ctx[1], false);
|
|
43
|
+
},
|
|
44
|
+
m(target, anchor) {
|
|
45
|
+
insert(target, div1, anchor);
|
|
46
|
+
append(div1, div0);
|
|
47
|
+
append(div1, t0);
|
|
48
|
+
append(div1, span);
|
|
49
|
+
},
|
|
50
|
+
p: noop,
|
|
51
|
+
d(detaching) {
|
|
52
|
+
if (detaching) detach(div1);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function create_fragment(ctx) {
|
|
58
|
+
let if_block_anchor;
|
|
59
|
+
let if_block = /*northRad*/ ctx[0] && create_if_block(ctx);
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
c() {
|
|
63
|
+
if (if_block) if_block.c();
|
|
64
|
+
if_block_anchor = empty();
|
|
65
|
+
},
|
|
66
|
+
m(target, anchor) {
|
|
67
|
+
if (if_block) if_block.m(target, anchor);
|
|
68
|
+
insert(target, if_block_anchor, anchor);
|
|
69
|
+
},
|
|
70
|
+
p(ctx, [dirty]) {
|
|
71
|
+
if (/*northRad*/ ctx[0]) if_block.p(ctx, dirty);
|
|
72
|
+
},
|
|
73
|
+
i: noop,
|
|
74
|
+
o: noop,
|
|
75
|
+
d(detaching) {
|
|
76
|
+
if (if_block) if_block.d(detaching);
|
|
77
|
+
if (detaching) detach(if_block_anchor);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function rad2Deg(rad) {
|
|
83
|
+
return rad / Math.PI * 180;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function instance($$self, $$props, $$invalidate) {
|
|
87
|
+
let { floorplanData } = $$props;
|
|
88
|
+
const northRad = floorplanData.entrance?.northRad;
|
|
89
|
+
const rotate = !northRad ? 0 : rad2Deg(northRad);
|
|
90
|
+
const compassTransformStyle = `translateX(-50%) translateZ(10px) rotate(${-rotate + 90}deg)`;
|
|
91
|
+
|
|
92
|
+
$$self.$$set = $$props => {
|
|
93
|
+
if ('floorplanData' in $$props) $$invalidate(2, floorplanData = $$props.floorplanData);
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
return [northRad, compassTransformStyle, floorplanData];
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
class Component extends SvelteComponent {
|
|
100
|
+
constructor(options) {
|
|
101
|
+
super();
|
|
102
|
+
init(this, options, instance, create_fragment, safe_not_equal, { floorplanData: 2 }, add_css);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export default Component;
|