build-dxf 0.1.20 → 0.1.21

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.20",
3
+ "version": "0.1.21",
4
4
  "description": "线段构建双线墙壁的dxf版本",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
package/src/build.js CHANGED
@@ -15000,11 +15000,13 @@ const SelectLocalFile = Object.assign(selectLocalFileFun, {
15000
15000
  });
15001
15001
  class CommandFlow extends EventDispatcher {
15002
15002
  list = [];
15003
+ dataList = [];
15003
15004
  rollbacklist = [];
15004
15005
  revokeRollbacklist = [];
15005
15006
  // 是否写入操作记录
15006
15007
  writeOperationList = true;
15007
15008
  loop = false;
15009
+ currentIndex = 0;
15008
15010
  setLoop(loop) {
15009
15011
  this.loop = loop;
15010
15012
  return this;
@@ -15014,8 +15016,9 @@ class CommandFlow extends EventDispatcher {
15014
15016
  * @param operation
15015
15017
  * @returns
15016
15018
  */
15017
- add(operation) {
15019
+ add(operation, data = {}) {
15018
15020
  this.list.push(operation);
15021
+ this.dataList.push(data);
15019
15022
  return this;
15020
15023
  }
15021
15024
  /** 添加回滚回调列表
@@ -15033,6 +15036,9 @@ class CommandFlow extends EventDispatcher {
15033
15036
  this.revokeRollbacklist.push(callBack);
15034
15037
  return this;
15035
15038
  }
15039
+ getData(index2) {
15040
+ return this.dataList[index2];
15041
+ }
15036
15042
  }
15037
15043
  class CommandManager extends EventDispatcher {
15038
15044
  commandFlowMap = /* @__PURE__ */ new Map();
@@ -15066,6 +15072,13 @@ class CommandManager extends EventDispatcher {
15066
15072
  this.commandFlowMap.set(name, commandFlow);
15067
15073
  return commandFlow;
15068
15074
  }
15075
+ /** 获取命令流
15076
+ * @param name
15077
+ * @returns
15078
+ */
15079
+ getCommandFlow(name) {
15080
+ return this.commandFlowMap.get(name);
15081
+ }
15069
15082
  executionPromise = null;
15070
15083
  executionResolve = null;
15071
15084
  /** 执行控制流
@@ -15096,6 +15109,7 @@ class CommandManager extends EventDispatcher {
15096
15109
  try {
15097
15110
  for (let i = step; i < commandFlow.list.length; i++) {
15098
15111
  const operation = commandFlow.list[i];
15112
+ commandFlow.currentIndex = i;
15099
15113
  commandFlow.dispatchEvent({ type: "executing", index: i });
15100
15114
  this.dispatchEvent({ type: "executing", name, index: i });
15101
15115
  data = await new Promise((resolve) => {
@@ -15117,6 +15131,7 @@ class CommandManager extends EventDispatcher {
15117
15131
  } finally {
15118
15132
  this.lock = false;
15119
15133
  this.currentName = null;
15134
+ commandFlow.currentIndex = 0;
15120
15135
  if (this.abortController && !this.abortController.signal.aborted) {
15121
15136
  commandFlow.dispatchEvent({ type: "completed", data });
15122
15137
  this.dispatchEvent({ type: "completed", name, data });
package/src/index.css CHANGED
@@ -109,6 +109,10 @@
109
109
  bottom: 10px;
110
110
  }
111
111
 
112
+ .bottom-\[20px\] {
113
+ bottom: 20px;
114
+ }
115
+
112
116
  .left-0 {
113
117
  left: calc(var(--spacing) * 0);
114
118
  }
@@ -117,6 +121,14 @@
117
121
  left: 10px;
118
122
  }
119
123
 
124
+ .left-\[20px\] {
125
+ left: 20px;
126
+ }
127
+
128
+ .z-100 {
129
+ z-index: 100;
130
+ }
131
+
120
132
  .z-\[11\] {
121
133
  z-index: 11;
122
134
  }
@@ -424,6 +436,16 @@
424
436
  background-color: var(--color-white);
425
437
  }
426
438
 
439
+ .bg-white\/15 {
440
+ background-color: #ffffff26;
441
+ }
442
+
443
+ @supports (color: color-mix(in lab, red, red)) {
444
+ .bg-white\/15 {
445
+ background-color: color-mix(in oklab, var(--color-white) 15%, transparent);
446
+ }
447
+ }
448
+
427
449
  .p-\[0px_5px\] {
428
450
  padding: 0 5px;
429
451
  }
@@ -680,7 +702,7 @@
680
702
  inherits: false
681
703
  }
682
704
 
683
- [data-v-adaee1e3] {
705
+ [data-v-492c138f] {
684
706
  font-family: 宋体;
685
707
  }
686
708