build-dxf 0.1.143 → 0.1.144

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "build-dxf",
3
- "version": "0.1.143",
3
+ "version": "0.1.144",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -1254,7 +1254,6 @@ class DomEventRegister extends Component {
1254
1254
  };
1255
1255
  };
1256
1256
  const pointerdown = (e) => {
1257
- if (e.target !== domContainer.domElement) return;
1258
1257
  const { offsetX, offsetY } = this.computedPosition(e, domContainer.rect);
1259
1258
  const isMouseEnter = this.pointInDOMRect(offsetX, offsetY, domContainer.rect);
1260
1259
  if (isMouseEnter) {
@@ -1270,7 +1269,6 @@ class DomEventRegister extends Component {
1270
1269
  }
1271
1270
  };
1272
1271
  const pointermove = (e) => {
1273
- if (e.target !== domContainer.domElement) return;
1274
1272
  if (isMobileRef.value && !map.has(e.pointerId)) return;
1275
1273
  const { offsetX, offsetY } = this.computedPosition(e, domContainer.rect);
1276
1274
  if (!isMobileRef.value && !this.pointInDOMRect(offsetX, offsetY, domContainer.rect)) return;
@@ -1288,7 +1286,6 @@ class DomEventRegister extends Component {
1288
1286
  });
1289
1287
  };
1290
1288
  const pointercancel = (e) => {
1291
- if (e.target !== domContainer.domElement) return;
1292
1289
  if (!map.has(e.pointerId)) return;
1293
1290
  map.delete(e.pointerId);
1294
1291
  const { offsetX, offsetY } = this.computedPosition(e, domContainer.rect);
package/src/index.css CHANGED
@@ -1259,10 +1259,10 @@ button[data-v-7a78abcb]:active {
1259
1259
  color: #a7a7a7
1260
1260
  }
1261
1261
 
1262
- [data-v-f7550a15] {
1262
+ [data-v-435b0457] {
1263
1263
  font-family: 宋体;
1264
1264
  }
1265
- .button[data-v-f7550a15] {
1265
+ .button[data-v-435b0457] {
1266
1266
  padding: 5px 10px;
1267
1267
  border: none;
1268
1268
  background: var(--primary-color);
package/src/index3.js CHANGED
@@ -19309,7 +19309,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19309
19309
  title: "取消命令(Esc)",
19310
19310
  class: "active:scale-[0.7] transition-all flex items-center justify-center",
19311
19311
  onClick: _cache[0] || (_cache[0] = (e) => (unref(editor).cancelCommand(), e.stopPropagation()))
19312
- }, [..._cache[22] || (_cache[22] = [
19312
+ }, [..._cache[26] || (_cache[26] = [
19313
19313
  createElementVNode("svg", {
19314
19314
  fill: "#fff",
19315
19315
  width: "16",
@@ -19327,7 +19327,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19327
19327
  onClick: commandConfirm,
19328
19328
  title: "确认命令(Enter)",
19329
19329
  class: "active:scale-[0.7] transition-all flex items-center justify-center"
19330
- }, [..._cache[23] || (_cache[23] = [
19330
+ }, [..._cache[27] || (_cache[27] = [
19331
19331
  createElementVNode("svg", {
19332
19332
  fill: "#fff",
19333
19333
  width: "16",
@@ -19350,7 +19350,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19350
19350
  modelValue: dxfVisible.value,
19351
19351
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => dxfVisible.value = $event)
19352
19352
  }, {
19353
- default: withCtx(() => [..._cache[24] || (_cache[24] = [
19353
+ default: withCtx(() => [..._cache[28] || (_cache[28] = [
19354
19354
  createTextVNode("Dxf", -1)
19355
19355
  ])]),
19356
19356
  _: 1
@@ -19360,7 +19360,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19360
19360
  modelValue: unref(editor).renderManager.lineAdsorption.value,
19361
19361
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(editor).renderManager.lineAdsorption.value = $event)
19362
19362
  }, {
19363
- default: withCtx(() => [..._cache[25] || (_cache[25] = [
19363
+ default: withCtx(() => [..._cache[29] || (_cache[29] = [
19364
19364
  createTextVNode("线吸附", -1)
19365
19365
  ])]),
19366
19366
  _: 1
@@ -19371,7 +19371,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19371
19371
  modelValue: unref(editor).renderManager.pointAdsorption.value,
19372
19372
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => unref(editor).renderManager.pointAdsorption.value = $event)
19373
19373
  }, {
19374
- default: withCtx(() => [..._cache[26] || (_cache[26] = [
19374
+ default: withCtx(() => [..._cache[30] || (_cache[30] = [
19375
19375
  createTextVNode("点吸附", -1)
19376
19376
  ])]),
19377
19377
  _: 1
@@ -19417,7 +19417,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19417
19417
  createVNode(unref(ElDropdownMenu), null, {
19418
19418
  default: withCtx(() => [
19419
19419
  createVNode(unref(ElDropdownItem), { onClick: selectLocalFile }, {
19420
- default: withCtx(() => [..._cache[28] || (_cache[28] = [
19420
+ default: withCtx(() => [..._cache[32] || (_cache[32] = [
19421
19421
  createTextVNode(" 选择文件 ", -1)
19422
19422
  ])]),
19423
19423
  _: 1
@@ -19425,7 +19425,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19425
19425
  createVNode(unref(ElDropdownItem), {
19426
19426
  onClick: _cache[4] || (_cache[4] = ($event) => unref(dxfSystem).CorrectionDxf.downloadOriginalData("json.json"))
19427
19427
  }, {
19428
- default: withCtx(() => [..._cache[29] || (_cache[29] = [
19428
+ default: withCtx(() => [..._cache[33] || (_cache[33] = [
19429
19429
  createTextVNode(" 下载Json ", -1)
19430
19430
  ])]),
19431
19431
  _: 1
@@ -19433,7 +19433,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19433
19433
  createVNode(unref(ElDropdownItem), {
19434
19434
  onClick: _cache[5] || (_cache[5] = ($event) => unref(dxfSystem).CorrectionDxf.downloadDxf("test.dxf"))
19435
19435
  }, {
19436
- default: withCtx(() => [..._cache[30] || (_cache[30] = [
19436
+ default: withCtx(() => [..._cache[34] || (_cache[34] = [
19437
19437
  createTextVNode(" 下载DXF ", -1)
19438
19438
  ])]),
19439
19439
  _: 1
@@ -19441,7 +19441,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19441
19441
  createVNode(unref(ElDropdownItem), {
19442
19442
  onClick: _cache[6] || (_cache[6] = ($event) => unref(dxfSystem).CorrectionDxf.downloadDxfImage("dxf.jpg"))
19443
19443
  }, {
19444
- default: withCtx(() => [..._cache[31] || (_cache[31] = [
19444
+ default: withCtx(() => [..._cache[35] || (_cache[35] = [
19445
19445
  createTextVNode(" 下载JPG ", -1)
19446
19446
  ])]),
19447
19447
  _: 1
@@ -19449,7 +19449,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19449
19449
  createVNode(unref(ElDropdownItem), {
19450
19450
  onClick: _cache[7] || (_cache[7] = ($event) => unref(whiteModel).downloadGltf("test.glb", true))
19451
19451
  }, {
19452
- default: withCtx(() => [..._cache[32] || (_cache[32] = [
19452
+ default: withCtx(() => [..._cache[36] || (_cache[36] = [
19453
19453
  createTextVNode(" 下载白膜 ", -1)
19454
19454
  ])]),
19455
19455
  _: 1
@@ -19457,7 +19457,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19457
19457
  createVNode(unref(ElDropdownItem), {
19458
19458
  onClick: _cache[8] || (_cache[8] = ($event) => unref(threeVJia).download())
19459
19459
  }, {
19460
- default: withCtx(() => [..._cache[33] || (_cache[33] = [
19460
+ default: withCtx(() => [..._cache[37] || (_cache[37] = [
19461
19461
  createTextVNode(" 下载三维家JSON ", -1)
19462
19462
  ])]),
19463
19463
  _: 1
@@ -19479,7 +19479,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19479
19479
  }, null, 8, ["modelValue"])
19480
19480
  ]),
19481
19481
  default: withCtx(() => [
19482
- _cache[34] || (_cache[34] = createElementVNode("div", { class: "w-full" }, "z值调整", -1))
19482
+ _cache[38] || (_cache[38] = createElementVNode("div", { class: "w-full" }, "z值调整", -1))
19483
19483
  ]),
19484
19484
  _: 1
19485
19485
  })) : createCommentVNode("", true)
@@ -19539,7 +19539,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19539
19539
  size: "small",
19540
19540
  class: "mt-[10px] w-full"
19541
19541
  }, {
19542
- default: withCtx(() => [..._cache[27] || (_cache[27] = [
19542
+ default: withCtx(() => [..._cache[31] || (_cache[31] = [
19543
19543
  createTextVNode("其他功能", -1)
19544
19544
  ])]),
19545
19545
  _: 1
@@ -19559,7 +19559,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19559
19559
  modelValue: dxfVisible.value,
19560
19560
  "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => dxfVisible.value = $event)
19561
19561
  }, {
19562
- default: withCtx(() => [..._cache[35] || (_cache[35] = [
19562
+ default: withCtx(() => [..._cache[39] || (_cache[39] = [
19563
19563
  createTextVNode("Dxf", -1)
19564
19564
  ])]),
19565
19565
  _: 1
@@ -19569,7 +19569,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19569
19569
  modelValue: unref(editor).renderManager.lineAdsorption.value,
19570
19570
  "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => unref(editor).renderManager.lineAdsorption.value = $event)
19571
19571
  }, {
19572
- default: withCtx(() => [..._cache[36] || (_cache[36] = [
19572
+ default: withCtx(() => [..._cache[40] || (_cache[40] = [
19573
19573
  createTextVNode("线吸附", -1)
19574
19574
  ])]),
19575
19575
  _: 1
@@ -19580,7 +19580,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19580
19580
  modelValue: unref(editor).renderManager.pointAdsorption.value,
19581
19581
  "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => unref(editor).renderManager.pointAdsorption.value = $event)
19582
19582
  }, {
19583
- default: withCtx(() => [..._cache[37] || (_cache[37] = [
19583
+ default: withCtx(() => [..._cache[41] || (_cache[41] = [
19584
19584
  createTextVNode("点吸附", -1)
19585
19585
  ])]),
19586
19586
  _: 1
@@ -19640,12 +19640,20 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19640
19640
  isMainCommand.value ? (openBlock(), createElementBlock("div", {
19641
19641
  key: 0,
19642
19642
  onMousemove: _cache[21] || (_cache[21] = (e) => e.stopPropagation()),
19643
+ onClick: _cache[22] || (_cache[22] = withModifiers(() => {
19644
+ }, ["stop"])),
19645
+ onPointerdown: _cache[23] || (_cache[23] = withModifiers(() => {
19646
+ }, ["stop"])),
19647
+ onPointermove: _cache[24] || (_cache[24] = withModifiers(() => {
19648
+ }, ["stop"])),
19649
+ onMousedown: _cache[25] || (_cache[25] = withModifiers(() => {
19650
+ }, ["stop"])),
19643
19651
  class: "cursor-pointer z-8 box-border bg-[rgba(0,0,0,0.5)] rounded-[6px] p-[5px] absolute left-[50%] translate-x-[-50%] top-[20px] flex gap-[5px] items-center"
19644
19652
  }, [
19645
19653
  createElementVNode("button", {
19646
- onClick: _cache[20] || (_cache[20] = (e) => (unref(editor).cancelCommand(), e.stopPropagation())),
19654
+ onClick: _cache[20] || (_cache[20] = withModifiers((e) => (unref(editor).cancelCommand(), e.stopPropagation()), ["stop"])),
19647
19655
  class: "bg-transparent! button cursor-pointer"
19648
- }, [..._cache[38] || (_cache[38] = [
19656
+ }, [..._cache[42] || (_cache[42] = [
19649
19657
  createElementVNode("svg", {
19650
19658
  fill: "#fff",
19651
19659
  viewBox: "0 0 1024 1024",
@@ -19659,9 +19667,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19659
19667
  ])]),
19660
19668
  showConfirm.value ? (openBlock(), createElementBlock("button", {
19661
19669
  key: 0,
19662
- onClick: commandConfirm,
19670
+ onClick: withModifiers(commandConfirm, ["stop"]),
19663
19671
  class: "button bg-transparent! cursor-pointer"
19664
- }, [..._cache[39] || (_cache[39] = [
19672
+ }, [..._cache[43] || (_cache[43] = [
19665
19673
  createElementVNode("svg", {
19666
19674
  fill: "#28c932",
19667
19675
  viewBox: "0 0 1026 1024",
@@ -19682,7 +19690,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
19682
19690
  };
19683
19691
  }
19684
19692
  });
19685
- const EditorToolContent = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-f7550a15"]]);
19693
+ const EditorToolContent = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-435b0457"]]);
19686
19694
  class StorageHelper {
19687
19695
  static get(key, defaultValue = void 0) {
19688
19696
  const value = localStorage.getItem(key);