@realsee/dnalogel 2.0.0-alpha.43 → 2.0.0-alpha.44
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/CSS3DRenderPlugin/ItemLabelPlugin/typings.d.ts +1 -0
- package/dist/CameraMovementPlugin/ItemLabelPlugin/typings.d.ts +1 -0
- package/dist/ItemLabelPlugin/ItemLabelPlugin/typings.d.ts +1 -0
- package/dist/ItemLabelPlugin/index.js +138 -73
- package/dist/ItemLabelPlugin/typings.d.ts +1 -0
- package/dist/ModelChassisCompassPlugin/ItemLabelPlugin/typings.d.ts +1 -0
- package/dist/ModelEntryDoorGuidePlugin/ItemLabelPlugin/typings.d.ts +1 -0
- package/dist/ModelItemLabelPlugin/ItemLabelPlugin/typings.d.ts +1 -0
- package/dist/ModelRoomLabelPlugin/ItemLabelPlugin/typings.d.ts +1 -0
- package/dist/ModelTVVideoPlugin/ItemLabelPlugin/typings.d.ts +1 -0
- package/dist/ModelViewPlugin/ItemLabelPlugin/typings.d.ts +1 -0
- package/dist/PanoCompassPlugin/ItemLabelPlugin/typings.d.ts +1 -0
- package/dist/PanoCursorRaycasterPlugin/ItemLabelPlugin/typings.d.ts +1 -0
- package/dist/PanoMeasurePlugin/ItemLabelPlugin/typings.d.ts +1 -0
- package/dist/PanoRulerPlugin/ItemLabelPlugin/typings.d.ts +1 -0
- package/dist/PanoRulerProPlugin/ItemLabelPlugin/typings.d.ts +1 -0
- package/dist/PanoSpatialTagPlugin/ItemLabelPlugin/typings.d.ts +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/ItemLabelPlugin/typings.d.ts +1 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/ItemLabelPlugin/typings.d.ts +1 -0
- package/dist/floorplan/TopviewFloorplanPlugin/ItemLabelPlugin/typings.d.ts +1 -0
- package/dist/index.es.js +156 -91
- package/dist/index.js +156 -91
- package/dist/index.umd.js +156 -91
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/enums/CameraMovementEffect.html +1 -1
- 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/Rotation.html +1 -1
- package/docs/interfaces/CSS3DRenderPluginExportType.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +3 -3
- package/docs/interfaces/FloorplanData.html +1 -1
- package/docs/interfaces/FloorplanEntrance.html +6 -6
- package/docs/interfaces/FloorplanExtraObject.html +2 -2
- package/docs/interfaces/FloorplanExtraObject3D.html +1 -1
- package/docs/interfaces/FloorplanFloorData.html +1 -1
- package/docs/interfaces/FloorplanImagePosition.html +1 -1
- package/docs/interfaces/FloorplanObserver.html +1 -1
- package/docs/interfaces/FloorplanOutlineItem.html +1 -1
- package/docs/interfaces/FloorplanPosition.html +1 -1
- package/docs/interfaces/FloorplanRoomItem.html +5 -5
- package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
- package/docs/interfaces/FloorplanServerBounding.html +3 -3
- package/docs/interfaces/FloorplanServerComputedData.html +1 -1
- package/docs/interfaces/FloorplanServerData.html +1 -1
- package/docs/interfaces/FloorplanServerEntrance.html +6 -6
- package/docs/interfaces/FloorplanServerFloorData.html +1 -1
- package/docs/interfaces/FloorplanServerImagePosition.html +1 -1
- package/docs/interfaces/FloorplanServerObserver.html +1 -1
- package/docs/interfaces/FloorplanServerOutlineItem.html +1 -1
- package/docs/interfaces/FloorplanServerPosition.html +1 -1
- package/docs/interfaces/FloorplanServerRoomItem.html +6 -6
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
- 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/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 +1 -1
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- 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/PanoRulerProPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginState.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/modules.html +18 -18
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +2 -2
- package/libs/ItemLabelPlugin/ItemLabelComponent.svelte +251 -0
- package/libs/ItemLabelPlugin/ItemLabelItem.js +141 -74
- package/libs/ItemLabelPlugin/ItemLabelItem.svelte +180 -0
- package/libs/ItemLabelPlugin/Plugin.js +1 -1
- package/libs/ItemLabelPlugin/typings.d.ts +3 -1
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +2 -2
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.svelte +155 -0
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +6 -6
- package/libs/ModelItemLabelPlugin/ItemLabelItem.svelte +100 -0
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +1 -1
- package/libs/ModelItemLabelPlugin/typings.d.ts +1 -1
- package/libs/ModelRoomLabelPlugin/Controller.js +1 -1
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +4 -4
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.svelte +63 -0
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +2 -2
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.svelte +94 -0
- package/libs/PanoRulerProPlugin/Controller.js +1 -1
- package/libs/PanoRulerProPlugin/RulerItem.js +9 -9
- package/libs/PanoRulerProPlugin/RulerItem.svelte +166 -0
- package/libs/PanoRulerProPlugin/RulerItems.svelte +212 -0
- package/libs/PanoSpatialTagPlugin/Components/origins.js +2 -2
- package/libs/PanoSpatialTagPlugin/Components/origins.svelte +58 -0
- package/libs/PanoSpatialTagPlugin/Components/tag.js +9 -9
- package/libs/PanoSpatialTagPlugin/Components/tag.svelte +292 -0
- package/libs/PanoSpatialTagPlugin/Plugin.js +2 -2
- package/libs/floorplan/Components/BaseImage.js +2 -2
- package/libs/floorplan/Components/BaseImage.svelte +26 -0
- package/libs/floorplan/Components/Camera.js +3 -3
- package/libs/floorplan/Components/Camera.svelte +46 -0
- package/libs/floorplan/Components/Compass.js +4 -4
- package/libs/floorplan/Components/Compass.svelte +51 -0
- package/libs/floorplan/Components/CurrentFloor.js +3 -3
- package/libs/floorplan/Components/CurrentFloor.svelte +46 -0
- package/libs/floorplan/Components/Main.js +2 -2
- package/libs/floorplan/Components/Main.svelte +51 -0
- package/libs/floorplan/Components/Normalmage.js +2 -2
- package/libs/floorplan/Components/Normalmage.svelte +11 -0
- package/libs/floorplan/Components/RoomHighlight/Room.js +2 -2
- package/libs/floorplan/Components/RoomHighlight/Room.svelte +27 -0
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +3 -3
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.svelte +29 -0
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +3 -3
- package/libs/floorplan/Components/RoomLabels/RoomLabel.svelte +119 -0
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +2 -2
- package/libs/floorplan/Components/RoomLabels/RoomLabels.svelte +35 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +3 -3
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.svelte +42 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte +7 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte +24 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte +33 -0
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +9 -9
- package/libs/floorplan/Components/RuleLabels/RuleItem.svelte +174 -0
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +2 -2
- package/libs/floorplan/Components/RuleLabels/RuleLabels.svelte +32 -0
- package/libs/floorplan/Components/SvgImage.js +3 -4
- package/libs/floorplan/Components/SvgImage.svelte +28 -0
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +4 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte +85 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte +18 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +4 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte +40 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +3 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte +64 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
- package/package.json +2 -1
|
@@ -42,11 +42,99 @@ exports.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE = void 0;
|
|
|
42
42
|
/* src/ItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.49.0 */
|
|
43
43
|
|
|
44
44
|
function add_css$1(target) {
|
|
45
|
-
internal.append_styles(target, "svelte-
|
|
45
|
+
internal.append_styles(target, "svelte-fxbyy", ".item-label-item.svelte-fxbyy.svelte-fxbyy{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-animation:svelte-fxbyy-fadeIn 0.3s ease-in;animation:svelte-fxbyy-fadeIn 0.3s ease-in}.item-label-item.fold.svelte-fxbyy>.item-label-item__text-wrap.svelte-fxbyy{visibility:hidden}.item-label-item.fold.svelte-fxbyy>.item-label-item__bar.anchor.svelte-fxbyy{visibility:hidden}.item-label-item.fold.svelte-fxbyy>.item-label-item__bar.anchor.svelte-fxbyy:after{visibility:visible}.item-label-item__text-wrap.svelte-fxbyy.svelte-fxbyy{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;padding:0.625rem 1.04167rem 0.625rem 0.625rem;position:absolute;width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:24.63542rem;min-height:4.79167rem;background-image:linear-gradient(\n 269deg,\n rgba(0, 0, 0, 0.5) 0%,\n rgba(0, 0, 0, 0.6) 49%,\n rgba(31, 38, 46, 0.7) 100%\n );border:1.5px solid rgba(255, 255, 255, 0.65);border-radius:0.15625rem;color:white;transform:translate(-50%, 0);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;overflow:hidden;pointer-events:all}.icon-wrap.svelte-fxbyy.svelte-fxbyy{width:3.54167rem;height:100%;display:flex;justify-content:center;align-content:center}.icon.svelte-fxbyy.svelte-fxbyy{width:3.54167rem;height:3.54167rem;background-repeat:no-repeat;background-size:contain;background-position:center}.item-label-text.svelte-fxbyy.svelte-fxbyy{margin-left:0.625rem;padding-left:0.625rem;min-height:3.54167rem;height:auto;display:flex;flex-flow:column;justify-content:space-around;align-content:flex-start;border-left:solid rgba(255, 255, 255, 0.2) 1px;border-top:solid rgba(255, 255, 255, 0.2) 0;border-right:solid rgba(255, 255, 255, 0.2) 0;border-bottom:solid rgba(255, 255, 255, 0.2) 0;pointer-events:auto}.item-model.svelte-fxbyy.svelte-fxbyy{white-space:nowrap;font-size:1.14583rem;font-weight:bold;line-height:1.5625rem}.item-name.svelte-fxbyy.svelte-fxbyy{height:auto;word-wrap:break-word;word-break:break-all;font-size:1.04167rem;line-height:1.45833rem}.item-label-item__bar.svelte-fxbyy.svelte-fxbyy{position:absolute;bottom:0;width:0.15625rem;background-image:linear-gradient(to bottom, white, rgba(255, 255, 255, 0));box-shadow:0 2px 0.41667rem 0 rgba(0, 0, 0, 0.2);pointer-events:none}.item-label-item__bar.anchor.svelte-fxbyy.svelte-fxbyy:after{content:'';position:absolute;bottom:0;width:1.25rem;height:1.25rem;background-image:url('//vrlab-public.ljcdn.com/common/file/web/67e7a198-28c9-47dc-879b-507bd3ae600c.png ');background-position:center;background-size:contain;transform:translate(-0.54688rem, 50%)}@-webkit-keyframes svelte-fxbyy-fadeIn{from{opacity:0}to{opacity:1}}@keyframes svelte-fxbyy-fadeIn{from{opacity:0}to{opacity:1}}");
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
// (
|
|
48
|
+
// (25:4) {:else}
|
|
49
|
+
function create_else_block(ctx) {
|
|
50
|
+
let t0;
|
|
51
|
+
let div;
|
|
52
|
+
let span0;
|
|
53
|
+
let t1_value = (/*itemLabel*/ ctx[0].code || /*itemLabel*/ ctx[0].id) + "";
|
|
54
|
+
let t1;
|
|
55
|
+
let t2;
|
|
56
|
+
let span1;
|
|
57
|
+
let t3_value = /*itemLabel*/ ctx[0].name + "";
|
|
58
|
+
let t3;
|
|
59
|
+
let if_block = /*itemLabel*/ ctx[0].icon && create_if_block_1(ctx);
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
c() {
|
|
63
|
+
if (if_block) if_block.c();
|
|
64
|
+
t0 = internal.space();
|
|
65
|
+
div = internal.element("div");
|
|
66
|
+
span0 = internal.element("span");
|
|
67
|
+
t1 = internal.text(t1_value);
|
|
68
|
+
t2 = internal.space();
|
|
69
|
+
span1 = internal.element("span");
|
|
70
|
+
t3 = internal.text(t3_value);
|
|
71
|
+
internal.attr(span0, "class", "item-model svelte-fxbyy");
|
|
72
|
+
internal.attr(span1, "class", "item-name svelte-fxbyy");
|
|
73
|
+
internal.attr(div, "class", "item-label-text svelte-fxbyy");
|
|
74
|
+
},
|
|
75
|
+
m(target, anchor) {
|
|
76
|
+
if (if_block) if_block.m(target, anchor);
|
|
77
|
+
internal.insert(target, t0, anchor);
|
|
78
|
+
internal.insert(target, div, anchor);
|
|
79
|
+
internal.append(div, span0);
|
|
80
|
+
internal.append(span0, t1);
|
|
81
|
+
internal.append(div, t2);
|
|
82
|
+
internal.append(div, span1);
|
|
83
|
+
internal.append(span1, t3);
|
|
84
|
+
},
|
|
85
|
+
p(ctx, dirty) {
|
|
86
|
+
if (/*itemLabel*/ ctx[0].icon) {
|
|
87
|
+
if (if_block) {
|
|
88
|
+
if_block.p(ctx, dirty);
|
|
89
|
+
} else {
|
|
90
|
+
if_block = create_if_block_1(ctx);
|
|
91
|
+
if_block.c();
|
|
92
|
+
if_block.m(t0.parentNode, t0);
|
|
93
|
+
}
|
|
94
|
+
} else if (if_block) {
|
|
95
|
+
if_block.d(1);
|
|
96
|
+
if_block = null;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
if (dirty & /*itemLabel*/ 1 && t1_value !== (t1_value = (/*itemLabel*/ ctx[0].code || /*itemLabel*/ ctx[0].id) + "")) internal.set_data(t1, t1_value);
|
|
100
|
+
if (dirty & /*itemLabel*/ 1 && t3_value !== (t3_value = /*itemLabel*/ ctx[0].name + "")) internal.set_data(t3, t3_value);
|
|
101
|
+
},
|
|
102
|
+
d(detaching) {
|
|
103
|
+
if (if_block) if_block.d(detaching);
|
|
104
|
+
if (detaching) internal.detach(t0);
|
|
105
|
+
if (detaching) internal.detach(div);
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// (23:4) {#if itemLabel.customElement}
|
|
49
111
|
function create_if_block$1(ctx) {
|
|
112
|
+
let html_tag;
|
|
113
|
+
let raw_value = /*itemLabel*/ ctx[0].customElement + "";
|
|
114
|
+
let html_anchor;
|
|
115
|
+
|
|
116
|
+
return {
|
|
117
|
+
c() {
|
|
118
|
+
html_tag = new internal.HtmlTag(false);
|
|
119
|
+
html_anchor = internal.empty();
|
|
120
|
+
html_tag.a = html_anchor;
|
|
121
|
+
},
|
|
122
|
+
m(target, anchor) {
|
|
123
|
+
html_tag.m(raw_value, target, anchor);
|
|
124
|
+
internal.insert(target, html_anchor, anchor);
|
|
125
|
+
},
|
|
126
|
+
p(ctx, dirty) {
|
|
127
|
+
if (dirty & /*itemLabel*/ 1 && raw_value !== (raw_value = /*itemLabel*/ ctx[0].customElement + "")) html_tag.p(raw_value);
|
|
128
|
+
},
|
|
129
|
+
d(detaching) {
|
|
130
|
+
if (detaching) internal.detach(html_anchor);
|
|
131
|
+
if (detaching) html_tag.d();
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// (26:6) {#if itemLabel.icon}
|
|
137
|
+
function create_if_block_1(ctx) {
|
|
50
138
|
let div1;
|
|
51
139
|
let div0;
|
|
52
140
|
let div0_style_value;
|
|
@@ -57,9 +145,9 @@ function create_if_block$1(ctx) {
|
|
|
57
145
|
c() {
|
|
58
146
|
div1 = internal.element("div");
|
|
59
147
|
div0 = internal.element("div");
|
|
60
|
-
internal.attr(div0, "class", "icon svelte-
|
|
148
|
+
internal.attr(div0, "class", "icon svelte-fxbyy");
|
|
61
149
|
internal.attr(div0, "style", div0_style_value = `background-image: url(${/*itemLabel*/ ctx[0].icon})`);
|
|
62
|
-
internal.attr(div1, "class", "icon-wrap svelte-
|
|
150
|
+
internal.attr(div1, "class", "icon-wrap svelte-fxbyy");
|
|
63
151
|
},
|
|
64
152
|
m(target, anchor) {
|
|
65
153
|
internal.insert(target, div1, anchor);
|
|
@@ -84,115 +172,92 @@ function create_if_block$1(ctx) {
|
|
|
84
172
|
}
|
|
85
173
|
|
|
86
174
|
function create_fragment$1(ctx) {
|
|
87
|
-
let div3;
|
|
88
|
-
let div1;
|
|
89
|
-
let t0;
|
|
90
|
-
let div0;
|
|
91
|
-
let span0;
|
|
92
|
-
let t1_value = (/*itemLabel*/ ctx[0].code || /*itemLabel*/ ctx[0].id) + "";
|
|
93
|
-
let t1;
|
|
94
|
-
let t2;
|
|
95
|
-
let span1;
|
|
96
|
-
let t3_value = /*itemLabel*/ ctx[0].name + "";
|
|
97
|
-
let t3;
|
|
98
|
-
let t4;
|
|
99
175
|
let div2;
|
|
176
|
+
let div0;
|
|
177
|
+
let t;
|
|
178
|
+
let div1;
|
|
179
|
+
let div1_class_value;
|
|
100
180
|
let div2_class_value;
|
|
101
|
-
let div3_class_value;
|
|
102
181
|
let mounted;
|
|
103
182
|
let dispose;
|
|
104
|
-
|
|
183
|
+
|
|
184
|
+
function select_block_type(ctx, dirty) {
|
|
185
|
+
if (/*itemLabel*/ ctx[0].customElement) return create_if_block$1;
|
|
186
|
+
return create_else_block;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
let current_block_type = select_block_type(ctx);
|
|
190
|
+
let if_block = current_block_type(ctx);
|
|
105
191
|
|
|
106
192
|
return {
|
|
107
193
|
c() {
|
|
108
|
-
div3 = internal.element("div");
|
|
109
|
-
div1 = internal.element("div");
|
|
110
|
-
if (if_block) if_block.c();
|
|
111
|
-
t0 = internal.space();
|
|
112
|
-
div0 = internal.element("div");
|
|
113
|
-
span0 = internal.element("span");
|
|
114
|
-
t1 = internal.text(t1_value);
|
|
115
|
-
t2 = internal.space();
|
|
116
|
-
span1 = internal.element("span");
|
|
117
|
-
t3 = internal.text(t3_value);
|
|
118
|
-
t4 = internal.space();
|
|
119
194
|
div2 = internal.element("div");
|
|
120
|
-
internal.
|
|
121
|
-
|
|
122
|
-
internal.
|
|
123
|
-
|
|
124
|
-
internal.
|
|
125
|
-
internal.
|
|
126
|
-
internal.
|
|
127
|
-
internal.
|
|
128
|
-
internal.
|
|
129
|
-
internal.set_style(
|
|
195
|
+
div0 = internal.element("div");
|
|
196
|
+
if_block.c();
|
|
197
|
+
t = internal.space();
|
|
198
|
+
div1 = internal.element("div");
|
|
199
|
+
internal.attr(div0, "class", "" + (internal.null_to_empty(classNames__default["default"]('item-label-item__text-wrap')) + " svelte-fxbyy"));
|
|
200
|
+
internal.set_style(div0, "bottom", `${/*itemLabel*/ ctx[0].strokeLength}px`);
|
|
201
|
+
internal.attr(div1, "class", div1_class_value = "" + (internal.null_to_empty(classNames__default["default"]('item-label-item__bar', { anchor: /*anchorEnabled*/ ctx[1] })) + " svelte-fxbyy"));
|
|
202
|
+
internal.set_style(div1, "height", `${/*itemLabel*/ ctx[0].strokeLength}px`);
|
|
203
|
+
internal.attr(div2, "class", div2_class_value = "" + (internal.null_to_empty(classNames__default["default"]('item-label-item', { fold: /*itemLabel*/ ctx[0].isFold })) + " svelte-fxbyy"));
|
|
204
|
+
internal.set_style(div2, "z-index", /*itemLabel*/ ctx[0].zIndex, false);
|
|
205
|
+
internal.set_style(div2, "transform", /*itemLabel*/ ctx[0].transform, false);
|
|
130
206
|
},
|
|
131
207
|
m(target, anchor) {
|
|
132
|
-
internal.insert(target,
|
|
133
|
-
internal.append(
|
|
134
|
-
|
|
135
|
-
internal.append(
|
|
136
|
-
internal.append(
|
|
137
|
-
internal.append(div0, span0);
|
|
138
|
-
internal.append(span0, t1);
|
|
139
|
-
internal.append(div0, t2);
|
|
140
|
-
internal.append(div0, span1);
|
|
141
|
-
internal.append(span1, t3);
|
|
142
|
-
internal.append(div3, t4);
|
|
143
|
-
internal.append(div3, div2);
|
|
208
|
+
internal.insert(target, div2, anchor);
|
|
209
|
+
internal.append(div2, div0);
|
|
210
|
+
if_block.m(div0, null);
|
|
211
|
+
internal.append(div2, t);
|
|
212
|
+
internal.append(div2, div1);
|
|
144
213
|
|
|
145
214
|
if (!mounted) {
|
|
146
|
-
dispose = internal.listen(
|
|
215
|
+
dispose = internal.listen(div0, "click", /*onClick*/ ctx[3]);
|
|
147
216
|
mounted = true;
|
|
148
217
|
}
|
|
149
218
|
},
|
|
150
219
|
p(ctx, [dirty]) {
|
|
151
|
-
if (
|
|
220
|
+
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
|
|
221
|
+
if_block.p(ctx, dirty);
|
|
222
|
+
} else {
|
|
223
|
+
if_block.d(1);
|
|
224
|
+
if_block = current_block_type(ctx);
|
|
225
|
+
|
|
152
226
|
if (if_block) {
|
|
153
|
-
if_block.p(ctx, dirty);
|
|
154
|
-
} else {
|
|
155
|
-
if_block = create_if_block$1(ctx);
|
|
156
227
|
if_block.c();
|
|
157
|
-
if_block.m(
|
|
228
|
+
if_block.m(div0, null);
|
|
158
229
|
}
|
|
159
|
-
} else if (if_block) {
|
|
160
|
-
if_block.d(1);
|
|
161
|
-
if_block = null;
|
|
162
230
|
}
|
|
163
231
|
|
|
164
|
-
if (dirty & /*itemLabel*/ 1 && t1_value !== (t1_value = (/*itemLabel*/ ctx[0].code || /*itemLabel*/ ctx[0].id) + "")) internal.set_data(t1, t1_value);
|
|
165
|
-
if (dirty & /*itemLabel*/ 1 && t3_value !== (t3_value = /*itemLabel*/ ctx[0].name + "")) internal.set_data(t3, t3_value);
|
|
166
|
-
|
|
167
232
|
if (dirty & /*itemLabel*/ 1) {
|
|
168
|
-
internal.set_style(
|
|
233
|
+
internal.set_style(div0, "bottom", `${/*itemLabel*/ ctx[0].strokeLength}px`);
|
|
169
234
|
}
|
|
170
235
|
|
|
171
|
-
if (dirty & /*anchorEnabled*/ 2 &&
|
|
172
|
-
internal.attr(
|
|
236
|
+
if (dirty & /*anchorEnabled*/ 2 && div1_class_value !== (div1_class_value = "" + (internal.null_to_empty(classNames__default["default"]('item-label-item__bar', { anchor: /*anchorEnabled*/ ctx[1] })) + " svelte-fxbyy"))) {
|
|
237
|
+
internal.attr(div1, "class", div1_class_value);
|
|
173
238
|
}
|
|
174
239
|
|
|
175
240
|
if (dirty & /*itemLabel*/ 1) {
|
|
176
|
-
internal.set_style(
|
|
241
|
+
internal.set_style(div1, "height", `${/*itemLabel*/ ctx[0].strokeLength}px`);
|
|
177
242
|
}
|
|
178
243
|
|
|
179
|
-
if (dirty & /*itemLabel*/ 1 &&
|
|
180
|
-
internal.attr(
|
|
244
|
+
if (dirty & /*itemLabel*/ 1 && div2_class_value !== (div2_class_value = "" + (internal.null_to_empty(classNames__default["default"]('item-label-item', { fold: /*itemLabel*/ ctx[0].isFold })) + " svelte-fxbyy"))) {
|
|
245
|
+
internal.attr(div2, "class", div2_class_value);
|
|
181
246
|
}
|
|
182
247
|
|
|
183
248
|
if (dirty & /*itemLabel*/ 1) {
|
|
184
|
-
internal.set_style(
|
|
249
|
+
internal.set_style(div2, "z-index", /*itemLabel*/ ctx[0].zIndex, false);
|
|
185
250
|
}
|
|
186
251
|
|
|
187
252
|
if (dirty & /*itemLabel*/ 1) {
|
|
188
|
-
internal.set_style(
|
|
253
|
+
internal.set_style(div2, "transform", /*itemLabel*/ ctx[0].transform, false);
|
|
189
254
|
}
|
|
190
255
|
},
|
|
191
256
|
i: internal.noop,
|
|
192
257
|
o: internal.noop,
|
|
193
258
|
d(detaching) {
|
|
194
|
-
if (detaching) internal.detach(
|
|
195
|
-
|
|
259
|
+
if (detaching) internal.detach(div2);
|
|
260
|
+
if_block.d();
|
|
196
261
|
mounted = false;
|
|
197
262
|
dispose();
|
|
198
263
|
}
|