sctj-components 1.0.59 → 1.0.61

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.
@@ -5031,7 +5031,7 @@ const _sfc_main$6 = {
5031
5031
  };
5032
5032
  }
5033
5033
  };
5034
- const index_vue_vue_type_style_index_0_scoped_8c2ed7f7_lang = "";
5034
+ const index_vue_vue_type_style_index_0_scoped_ae15bc12_lang = "";
5035
5035
  const _hoisted_1$4 = { class: "action-container" };
5036
5036
  const _hoisted_2$3 = {
5037
5037
  key: 0,
@@ -5108,15 +5108,33 @@ const _sfc_main$5 = {
5108
5108
  showMapType: {
5109
5109
  type: Boolean,
5110
5110
  default: true
5111
+ },
5112
+ controlsPosition: {
5113
+ type: Object,
5114
+ default: () => {
5115
+ return {
5116
+ bottom: "10px",
5117
+ right: "10px"
5118
+ };
5119
+ }
5111
5120
  }
5112
5121
  },
5113
5122
  emits: ["loaded", "overlay-click", "overlay-mouseover", "overlay-mouseout"],
5114
5123
  setup(__props, { expose, emit }) {
5115
5124
  const props = __props;
5116
5125
  useCssVars((_ctx) => ({
5117
- "abb75a64": __props.width,
5118
- "fed1e5c2": __props.height
5126
+ "3fd21866": __props.width,
5127
+ "bebc0af2": __props.height
5119
5128
  }));
5129
+ const controlsPositionVars = computed$1(() => {
5130
+ const position = props.controlsPosition || {};
5131
+ const cssVars = {};
5132
+ Object.entries(position).forEach(([key, value]) => {
5133
+ const cssKey = key.replace(/([A-Z])/g, "-$1").toLowerCase();
5134
+ cssVars[`--controls-${cssKey}`] = value;
5135
+ });
5136
+ return cssVars;
5137
+ });
5120
5138
  const mapContainer = ref$1(null);
5121
5139
  const map = shallowRef(null);
5122
5140
  const legend = ref$1([]);
@@ -5960,7 +5978,8 @@ const _sfc_main$5 = {
5960
5978
  class: "mapViewContainer",
5961
5979
  id: "mapContainer",
5962
5980
  ref_key: "mapContainer",
5963
- ref: mapContainer
5981
+ ref: mapContainer,
5982
+ style: normalizeStyle(unref(controlsPositionVars))
5964
5983
  }, [
5965
5984
  createElementVNode("div", _hoisted_1$4, [
5966
5985
  __props.legendConfig.length ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
@@ -5986,11 +6005,11 @@ const _sfc_main$5 = {
5986
6005
  }, 8, ["modelValue"])
5987
6006
  ])) : createCommentVNode("", true)
5988
6007
  ])
5989
- ], 512);
6008
+ ], 4);
5990
6009
  };
5991
6010
  }
5992
6011
  };
5993
- const SCTJMapViewer = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-8c2ed7f7"]]);
6012
+ const SCTJMapViewer = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-ae15bc12"]]);
5994
6013
  const index_vue_vue_type_style_index_0_scoped_761d2ab4_lang = "";
5995
6014
  const _withScopeId$2 = (n) => (pushScopeId("data-v-761d2ab4"), n = n(), popScopeId(), n);
5996
6015
  const _hoisted_1$3 = {
@@ -9417,7 +9436,7 @@ const _sfc_main$3 = {
9417
9436
  }
9418
9437
  };
9419
9438
  const SCTJBusinessMapDrawingDialog = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-d0bea808"]]);
9420
- const index_vue_vue_type_style_index_0_scoped_c14c0c1e_lang = "";
9439
+ const index_vue_vue_type_style_index_0_scoped_b9b51543_lang = "";
9421
9440
  const _hoisted_1$1 = { class: "controls" };
9422
9441
  const _sfc_main$2 = {
9423
9442
  __name: "index",
@@ -9694,21 +9713,21 @@ const _sfc_main$2 = {
9694
9713
  }, {
9695
9714
  default: withCtx(() => [
9696
9715
  createVNode(_component_el_option, {
9697
- value: 1e3,
9716
+ value: 100,
9698
9717
  label: "1x"
9699
9718
  }),
9700
9719
  createVNode(_component_el_option, {
9701
- value: 500,
9720
+ value: 50,
9702
9721
  label: "2x"
9703
9722
  }),
9704
9723
  createVNode(_component_el_option, {
9705
- value: 250,
9724
+ value: 25,
9706
9725
  label: "4x"
9707
9726
  }),
9708
9727
  createVNode(_component_el_option, {
9709
- value: 125,
9728
+ value: 12.5,
9710
9729
  label: "8x"
9711
- })
9730
+ }, null, 8, ["value"])
9712
9731
  ]),
9713
9732
  _: 1
9714
9733
  }, 8, ["modelValue"])
@@ -9717,7 +9736,7 @@ const _sfc_main$2 = {
9717
9736
  };
9718
9737
  }
9719
9738
  };
9720
- const SCTJTrackPlayback = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-c14c0c1e"]]);
9739
+ const SCTJTrackPlayback = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-b9b51543"]]);
9721
9740
  const BimViewer_vue_vue_type_style_index_0_scoped_89f55b38_lang = "";
9722
9741
  const _withScopeId = (n) => (pushScopeId("data-v-89f55b38"), n = n(), popScopeId(), n);
9723
9742
  const _hoisted_1 = {