build-dxf 0.1.35 → 0.1.37
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 +1 -1
- package/src/DomEventRegister.js +42 -4
- package/src/build.js +64 -27
- package/src/components/NumberEditor.vue.d.ts +2 -0
- package/src/index.css +151 -19
- package/src/index.js +10 -10
- package/src/index3.js +1293 -539
- package/src/utils/CommandManager/CommandFlow.d.ts +4 -4
- package/src/utils/CommandManager/CommandManager.d.ts +6 -3
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/ClippingLine.d.ts +14 -6
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/CommandFlowComponent.d.ts +72 -7
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/PointDrag/index.d.ts +38 -0
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/PointDrag/modifyDoor.d.ts +40 -0
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/PointDrag/modifyLine.d.ts +34 -0
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/PointDrag/modifyWindow.d.ts +25 -0
- package/src/utils/DxfSystem/plugin/Editor/components/RenderManager.d.ts +3 -1
- package/src/utils/DxfSystem/plugin/Editor/type.d.ts +11 -0
- package/src/utils/DxfSystem/plugin/RenderPlugin/components/DomContainer.d.ts +3 -0
- package/src/utils/DxfSystem/utils/Lines.d.ts +1 -0
- package/src/utils/DxfSystem/utils/Lines2.d.ts +1 -0
- package/src/utils/DxfSystem/utils/tools.d.ts +2 -0
- package/src/utils/LineSegment.d.ts +1 -0
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/PointDrag.d.ts +0 -30
package/package.json
CHANGED
package/src/DomEventRegister.js
CHANGED
|
@@ -7,21 +7,46 @@ import { CSS3DObject, CSS3DSprite, CSS3DRenderer } from "three/addons/renderers/
|
|
|
7
7
|
import { CSS2DObject, CSS2DRenderer } from "three/addons/renderers/CSS2DRenderer.js";
|
|
8
8
|
import { OrbitControls } from "three/addons/controls/OrbitControls.js";
|
|
9
9
|
import * as TWEEN from "@tweenjs/tween.js";
|
|
10
|
-
import { C as Component, a as Point,
|
|
10
|
+
import { C as Component, a as Point, k as getDefaultExportFromCjs, A as ArrayMap, V as Variable } from "./build.js";
|
|
11
11
|
import { ref } from "vue";
|
|
12
|
+
const css = `
|
|
13
|
+
.overlay {
|
|
14
|
+
pointer-events: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.overlay > * {
|
|
18
|
+
pointer-events: auto;
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
12
21
|
class DomContainer extends Component {
|
|
13
22
|
static name = "DomContainer";
|
|
23
|
+
container = document.createElement("div");
|
|
14
24
|
domElement = document.createElement("div");
|
|
15
25
|
canvas = document.createElement("canvas");
|
|
16
26
|
html2DRenderer = document.createElement("div");
|
|
17
27
|
html3DRenderer = document.createElement("div");
|
|
28
|
+
dialogLayer = document.createElement("div");
|
|
29
|
+
style = document.createElement("style");
|
|
18
30
|
rect;
|
|
19
31
|
constructor() {
|
|
20
32
|
super();
|
|
33
|
+
this.dialogLayer.classList.add("dialog-layer");
|
|
21
34
|
this.domElement.id = "build-dxf-container";
|
|
35
|
+
this.container.appendChild(this.domElement);
|
|
36
|
+
this.container.appendChild(this.style);
|
|
37
|
+
this.container.appendChild(this.dialogLayer);
|
|
22
38
|
this.domElement.appendChild(this.canvas);
|
|
23
39
|
this.domElement.appendChild(this.html3DRenderer);
|
|
24
40
|
this.domElement.appendChild(this.html2DRenderer);
|
|
41
|
+
this.style.innerHTML = css;
|
|
42
|
+
this.dialogLayer.classList.add("overlay");
|
|
43
|
+
this.html3DRenderer.classList.add("overlay");
|
|
44
|
+
this.html2DRenderer.classList.add("overlay");
|
|
45
|
+
Object.assign(this.container.style, {
|
|
46
|
+
width: "100%",
|
|
47
|
+
height: "100%",
|
|
48
|
+
position: "relative"
|
|
49
|
+
});
|
|
25
50
|
Object.assign(this.domElement.style, {
|
|
26
51
|
width: "100%",
|
|
27
52
|
height: "100%",
|
|
@@ -44,6 +69,14 @@ class DomContainer extends Component {
|
|
|
44
69
|
width: "100%",
|
|
45
70
|
height: "100%"
|
|
46
71
|
});
|
|
72
|
+
Object.assign(this.dialogLayer.style, {
|
|
73
|
+
left: "0px",
|
|
74
|
+
top: "0px",
|
|
75
|
+
width: "100%",
|
|
76
|
+
height: "100%",
|
|
77
|
+
position: "absolute",
|
|
78
|
+
zIndex: "20"
|
|
79
|
+
});
|
|
47
80
|
this.rect = this.domElement.getBoundingClientRect();
|
|
48
81
|
new ResizeObserver(() => {
|
|
49
82
|
this.rect = this.domElement.getBoundingClientRect();
|
|
@@ -84,17 +117,20 @@ const _Renderer = class _Renderer extends Component {
|
|
|
84
117
|
canvas: this.description.canvas,
|
|
85
118
|
antialias: true
|
|
86
119
|
});
|
|
120
|
+
this.renderer.domElement.classList.add("overlay");
|
|
87
121
|
this.renderer.setPixelRatio(window.devicePixelRatio);
|
|
88
122
|
if (description.htmlRenderer) {
|
|
89
123
|
if (description.htmlRenderer["2d"]) {
|
|
90
124
|
this.html2DRenderer = new CSS2DRenderer();
|
|
91
|
-
Object.assign(this.html2DRenderer.domElement.style, { position: "absolute", left: "0px", top: "0px" });
|
|
125
|
+
Object.assign(this.html2DRenderer.domElement.style, { position: "absolute", left: "0px", top: "0px", pointerEvents: "none" });
|
|
92
126
|
description.htmlRenderer["2d"].appendChild(this.html2DRenderer.domElement);
|
|
127
|
+
this.html2DRenderer.domElement.classList.add("overlay");
|
|
93
128
|
}
|
|
94
129
|
if (description.htmlRenderer["3d"]) {
|
|
95
130
|
this.html3DRenderer = new CSS3DRenderer();
|
|
96
|
-
Object.assign(this.html3DRenderer.domElement.style, { position: "absolute", left: "0px", top: "0px" });
|
|
131
|
+
Object.assign(this.html3DRenderer.domElement.style, { position: "absolute", left: "0px", top: "0px", pointerEvents: "none" });
|
|
97
132
|
description.htmlRenderer["3d"].appendChild(this.html3DRenderer.domElement);
|
|
133
|
+
this.html3DRenderer.domElement.classList.add("overlay");
|
|
98
134
|
}
|
|
99
135
|
}
|
|
100
136
|
if (description.orbitControls) {
|
|
@@ -1370,7 +1406,7 @@ class DomEventRegister extends Component {
|
|
|
1370
1406
|
* 根据domElement的cursor自动设置body的cursor
|
|
1371
1407
|
*/
|
|
1372
1408
|
autoBodyCursor() {
|
|
1373
|
-
const domContainer = this.parent?.findComponentByType(DomContainer), domElement = domContainer.
|
|
1409
|
+
const domContainer = this.parent?.findComponentByType(DomContainer), domElement = domContainer.dialogLayer;
|
|
1374
1410
|
let bodyCursor = null;
|
|
1375
1411
|
this.addEventListener("update", () => {
|
|
1376
1412
|
if (this._mouseMoveEventProxylock) return;
|
|
@@ -1379,6 +1415,8 @@ class DomEventRegister extends Component {
|
|
|
1379
1415
|
bodyCursor = document.body.style.cursor;
|
|
1380
1416
|
}
|
|
1381
1417
|
document.body.style.cursor = domElement.style.cursor;
|
|
1418
|
+
domContainer.container.style.cursor = domElement.style.cursor;
|
|
1419
|
+
domContainer.domElement.style.cursor = domElement.style.cursor;
|
|
1382
1420
|
} else {
|
|
1383
1421
|
if (bodyCursor !== null) {
|
|
1384
1422
|
document.body.style.cursor = bodyCursor;
|
package/src/build.js
CHANGED
|
@@ -2159,6 +2159,24 @@ class LineSegment {
|
|
|
2159
2159
|
return true;
|
|
2160
2160
|
});
|
|
2161
2161
|
}
|
|
2162
|
+
static constrainLine(line, base) {
|
|
2163
|
+
const center = line.center, width = line.length();
|
|
2164
|
+
if (base.length() < width) {
|
|
2165
|
+
line.start.copy(base.start);
|
|
2166
|
+
line.end.copy(base.end);
|
|
2167
|
+
return line;
|
|
2168
|
+
}
|
|
2169
|
+
const hw = width * 0.5, start = base.start.clone().add(base.end.direction(base.start).multiplyScalar(width * 0.5)), end = base.end.clone().add(base.start.direction(base.end).multiplyScalar(width * 0.5)), dir = base.direction();
|
|
2170
|
+
const pl = new LineSegment(start, end);
|
|
2171
|
+
center.copy(pl.projectPoint(center, false));
|
|
2172
|
+
if (!pl.projectPoint(center, true)) {
|
|
2173
|
+
if (center.distance(start) < center.distance(end)) center.copy(start);
|
|
2174
|
+
else center.copy(end);
|
|
2175
|
+
line.start.copy(center).add(dir.clone().multiplyScalar(-hw));
|
|
2176
|
+
line.end.copy(center).add(dir.clone().multiplyScalar(hw));
|
|
2177
|
+
}
|
|
2178
|
+
return line;
|
|
2179
|
+
}
|
|
2162
2180
|
static createModifyManager() {
|
|
2163
2181
|
const modifyMap = new MapEnhance();
|
|
2164
2182
|
function setPoint(line, point2, value) {
|
|
@@ -3545,10 +3563,18 @@ function createQuadtree(lines) {
|
|
|
3545
3563
|
}
|
|
3546
3564
|
return quadtree;
|
|
3547
3565
|
}
|
|
3566
|
+
function mToMm(value) {
|
|
3567
|
+
return Number((value * 1e3).toFixed(0));
|
|
3568
|
+
}
|
|
3569
|
+
function mmTom(value) {
|
|
3570
|
+
return Number((value / 1e3).toFixed(4));
|
|
3571
|
+
}
|
|
3548
3572
|
const tools = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3549
3573
|
__proto__: null,
|
|
3550
3574
|
createPointVirtualGrid,
|
|
3551
|
-
createQuadtree
|
|
3575
|
+
createQuadtree,
|
|
3576
|
+
mToMm,
|
|
3577
|
+
mmTom
|
|
3552
3578
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3553
3579
|
function findDiscretePointLine(lines, grid0, lineSet, deep = true) {
|
|
3554
3580
|
lineSet = lineSet ?? /* @__PURE__ */ new Set();
|
|
@@ -15671,6 +15697,7 @@ class Lines extends THREE.LineSegments {
|
|
|
15671
15697
|
geometry = new THREE.BufferGeometry();
|
|
15672
15698
|
points = [];
|
|
15673
15699
|
pointsObject3D;
|
|
15700
|
+
continuous = true;
|
|
15674
15701
|
constructor(points = [], color = 16777215) {
|
|
15675
15702
|
super();
|
|
15676
15703
|
this.geometry = this.geometry;
|
|
@@ -15720,13 +15747,20 @@ class Lines extends THREE.LineSegments {
|
|
|
15720
15747
|
updateGeometry() {
|
|
15721
15748
|
if (this._timer) clearTimeout(this._timer);
|
|
15722
15749
|
this._timer = setTimeout(() => {
|
|
15723
|
-
const array =
|
|
15724
|
-
|
|
15725
|
-
|
|
15750
|
+
const array = [];
|
|
15751
|
+
if (this.continuous) {
|
|
15752
|
+
this.points.forEach((p2, i) => {
|
|
15753
|
+
if (i === 0) return;
|
|
15726
15754
|
const p0 = this.points[i - 1];
|
|
15727
|
-
|
|
15755
|
+
array.push(p0.x, p0.y, p0.z, p2.x, p2.y, p2.z);
|
|
15756
|
+
});
|
|
15757
|
+
} else {
|
|
15758
|
+
for (let i = 0; i < this.points.length; i += 2) {
|
|
15759
|
+
const p0 = this.points[i];
|
|
15760
|
+
const p2 = this.points[i + 1];
|
|
15761
|
+
if (p0 && p2) array.push(p0.x, p0.y, p0.z, p2.x, p2.y, p2.z);
|
|
15728
15762
|
}
|
|
15729
|
-
}
|
|
15763
|
+
}
|
|
15730
15764
|
const position = new THREE.BufferAttribute(new Float32Array(array), 3);
|
|
15731
15765
|
this.geometry.setAttribute("position", position);
|
|
15732
15766
|
this._timer = null;
|
|
@@ -15803,7 +15837,7 @@ class CommandFlow extends EventDispatcher {
|
|
|
15803
15837
|
rollbacklist = [];
|
|
15804
15838
|
revokeRollbacklist = [];
|
|
15805
15839
|
// 是否写入操作记录
|
|
15806
|
-
|
|
15840
|
+
writeOperationRecord = true;
|
|
15807
15841
|
loop = false;
|
|
15808
15842
|
currentIndex = 0;
|
|
15809
15843
|
setLoop(loop) {
|
|
@@ -15815,9 +15849,9 @@ class CommandFlow extends EventDispatcher {
|
|
|
15815
15849
|
* @param operation
|
|
15816
15850
|
* @returns
|
|
15817
15851
|
*/
|
|
15818
|
-
add(operation, data
|
|
15852
|
+
add(operation, data) {
|
|
15819
15853
|
this.list.push(operation);
|
|
15820
|
-
this.dataList.push(data);
|
|
15854
|
+
this.dataList.push(data ?? {});
|
|
15821
15855
|
return this;
|
|
15822
15856
|
}
|
|
15823
15857
|
/** 添加回滚回调列表
|
|
@@ -15868,18 +15902,19 @@ class CommandManager extends EventDispatcher {
|
|
|
15868
15902
|
addOperation(name, data) {
|
|
15869
15903
|
const commandFlow = this.getCommandFlow(name);
|
|
15870
15904
|
if (!commandFlow) throw new Error(`${name} 命令不存在`);
|
|
15871
|
-
if (commandFlow.
|
|
15905
|
+
if (commandFlow.writeOperationRecord) {
|
|
15872
15906
|
this.operationList.push({ name, data });
|
|
15873
15907
|
this.rollbackList.length = 0;
|
|
15874
15908
|
}
|
|
15875
15909
|
}
|
|
15876
15910
|
/** 添加命令流
|
|
15877
15911
|
* @param name
|
|
15912
|
+
* @param custom 自定义命令流类
|
|
15878
15913
|
* @returns
|
|
15879
15914
|
*/
|
|
15880
|
-
addCommandFlow(name) {
|
|
15915
|
+
addCommandFlow(name, custom) {
|
|
15881
15916
|
if (this.commandFlowMap.has(name)) throw new Error(`${name} 命令已经存在`);
|
|
15882
|
-
const commandFlow = new CommandFlow();
|
|
15917
|
+
const commandFlow = custom ? custom() : new CommandFlow();
|
|
15883
15918
|
this.commandFlowMap.set(name, commandFlow);
|
|
15884
15919
|
return commandFlow;
|
|
15885
15920
|
}
|
|
@@ -15946,7 +15981,7 @@ class CommandManager extends EventDispatcher {
|
|
|
15946
15981
|
if (this.abortController && !this.abortController.signal.aborted) {
|
|
15947
15982
|
commandFlow.dispatchEvent({ type: "completed", data });
|
|
15948
15983
|
this.dispatchEvent({ type: "completed", name, data });
|
|
15949
|
-
if (commandFlow.
|
|
15984
|
+
if (commandFlow.writeOperationRecord) {
|
|
15950
15985
|
this.operationList.push({ name, data });
|
|
15951
15986
|
this.rollbackList.length = 0;
|
|
15952
15987
|
}
|
|
@@ -19083,7 +19118,7 @@ async function createEditor(dom, camera, orbitControls = false, viewPermission)
|
|
|
19083
19118
|
camera
|
|
19084
19119
|
})).usePlugin(editor.EditorPlugin.create({ viewPermission }));
|
|
19085
19120
|
const domContainer = dxfSystem.findComponentByType(rp.components.DomContainer);
|
|
19086
|
-
domContainer && dom.appendChild(domContainer.
|
|
19121
|
+
domContainer && dom.appendChild(domContainer.container);
|
|
19087
19122
|
gloabalDxfSystem = dxfSystem;
|
|
19088
19123
|
return {
|
|
19089
19124
|
dxfSystem,
|
|
@@ -19217,18 +19252,20 @@ export {
|
|
|
19217
19252
|
Lines as e,
|
|
19218
19253
|
recomputedWindow as f,
|
|
19219
19254
|
drawText$1 as g,
|
|
19220
|
-
|
|
19221
|
-
|
|
19222
|
-
|
|
19223
|
-
|
|
19224
|
-
|
|
19225
|
-
|
|
19226
|
-
|
|
19227
|
-
|
|
19228
|
-
|
|
19229
|
-
|
|
19255
|
+
mmTom as h,
|
|
19256
|
+
PRE_PROCESSOR as i,
|
|
19257
|
+
CommandManager as j,
|
|
19258
|
+
getDefaultExportFromCjs as k,
|
|
19259
|
+
createEditor as l,
|
|
19260
|
+
mToMm as m,
|
|
19261
|
+
getModels as n,
|
|
19262
|
+
buildJson as o,
|
|
19263
|
+
getFileAll as p,
|
|
19264
|
+
getGlobalDxfSystem as q,
|
|
19230
19265
|
recomputedWindowCenter as r,
|
|
19231
|
-
|
|
19232
|
-
|
|
19233
|
-
uuid as u
|
|
19266
|
+
index$1 as s,
|
|
19267
|
+
index as t,
|
|
19268
|
+
uuid as u,
|
|
19269
|
+
DxfSystem as v,
|
|
19270
|
+
components as w
|
|
19234
19271
|
};
|
|
@@ -2,6 +2,7 @@ type __VLS_Props = {
|
|
|
2
2
|
showCancel?: boolean;
|
|
3
3
|
showMax?: boolean;
|
|
4
4
|
showMin?: boolean;
|
|
5
|
+
showConfirm?: boolean;
|
|
5
6
|
};
|
|
6
7
|
declare const __VLS_defaults: {
|
|
7
8
|
modelValue: string;
|
|
@@ -25,5 +26,6 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
25
26
|
showCancel: boolean;
|
|
26
27
|
showMax: boolean;
|
|
27
28
|
showMin: boolean;
|
|
29
|
+
showConfirm: boolean;
|
|
28
30
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
29
31
|
export default _default;
|
package/src/index.css
CHANGED
|
@@ -13,6 +13,20 @@
|
|
|
13
13
|
--tw-border-style: solid;
|
|
14
14
|
--tw-leading: initial;
|
|
15
15
|
--tw-font-weight: initial;
|
|
16
|
+
--tw-shadow: 0 0 #0000;
|
|
17
|
+
--tw-shadow-color: initial;
|
|
18
|
+
--tw-shadow-alpha: 100%;
|
|
19
|
+
--tw-inset-shadow: 0 0 #0000;
|
|
20
|
+
--tw-inset-shadow-color: initial;
|
|
21
|
+
--tw-inset-shadow-alpha: 100%;
|
|
22
|
+
--tw-ring-color: initial;
|
|
23
|
+
--tw-ring-shadow: 0 0 #0000;
|
|
24
|
+
--tw-inset-ring-color: initial;
|
|
25
|
+
--tw-inset-ring-shadow: 0 0 #0000;
|
|
26
|
+
--tw-ring-inset: initial;
|
|
27
|
+
--tw-ring-offset-width: 0px;
|
|
28
|
+
--tw-ring-offset-color: #fff;
|
|
29
|
+
--tw-ring-offset-shadow: 0 0 #0000;
|
|
16
30
|
--tw-outline-style: solid;
|
|
17
31
|
--tw-blur: initial;
|
|
18
32
|
--tw-brightness: initial;
|
|
@@ -82,7 +96,16 @@
|
|
|
82
96
|
transform: translateX(20px);
|
|
83
97
|
}
|
|
84
98
|
|
|
85
|
-
.button
|
|
99
|
+
.button-click {
|
|
100
|
+
background: var(--primary-color);
|
|
101
|
+
text-align: center;
|
|
102
|
+
color: #fff;
|
|
103
|
+
border: none;
|
|
104
|
+
border-radius: 8px;
|
|
105
|
+
padding: 5px 20px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.button-click:active, .button:active {
|
|
86
109
|
filter: grayscale(.4);
|
|
87
110
|
}
|
|
88
111
|
}
|
|
@@ -133,6 +156,10 @@
|
|
|
133
156
|
top: 50%;
|
|
134
157
|
}
|
|
135
158
|
|
|
159
|
+
.right-0 {
|
|
160
|
+
right: calc(var(--spacing) * 0);
|
|
161
|
+
}
|
|
162
|
+
|
|
136
163
|
.right-\[10px\] {
|
|
137
164
|
right: 10px;
|
|
138
165
|
}
|
|
@@ -169,10 +196,6 @@
|
|
|
169
196
|
z-index: 20;
|
|
170
197
|
}
|
|
171
198
|
|
|
172
|
-
.z-100 {
|
|
173
|
-
z-index: 100;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
199
|
.z-\[8\] {
|
|
177
200
|
z-index: 8;
|
|
178
201
|
}
|
|
@@ -189,6 +212,10 @@
|
|
|
189
212
|
z-index: 20;
|
|
190
213
|
}
|
|
191
214
|
|
|
215
|
+
.z-\[100\] {
|
|
216
|
+
z-index: 100;
|
|
217
|
+
}
|
|
218
|
+
|
|
192
219
|
.col-start-1 {
|
|
193
220
|
grid-column-start: 1;
|
|
194
221
|
}
|
|
@@ -342,6 +369,11 @@
|
|
|
342
369
|
height: 30px;
|
|
343
370
|
}
|
|
344
371
|
|
|
372
|
+
.size-\[32px\] {
|
|
373
|
+
width: 32px;
|
|
374
|
+
height: 32px;
|
|
375
|
+
}
|
|
376
|
+
|
|
345
377
|
.size-\[40px\] {
|
|
346
378
|
width: 40px;
|
|
347
379
|
height: 40px;
|
|
@@ -571,6 +603,11 @@
|
|
|
571
603
|
border-bottom-width: 1px;
|
|
572
604
|
}
|
|
573
605
|
|
|
606
|
+
.border-b-\[2px\] {
|
|
607
|
+
border-bottom-style: var(--tw-border-style);
|
|
608
|
+
border-bottom-width: 2px;
|
|
609
|
+
}
|
|
610
|
+
|
|
574
611
|
.border-\[\#ccc\] {
|
|
575
612
|
border-color: #ccc;
|
|
576
613
|
}
|
|
@@ -579,6 +616,10 @@
|
|
|
579
616
|
border-top-color: #eee;
|
|
580
617
|
}
|
|
581
618
|
|
|
619
|
+
.\!border-b-\[var\(--primary-color\)\] {
|
|
620
|
+
border-bottom-color: var(--primary-color) !important;
|
|
621
|
+
}
|
|
622
|
+
|
|
582
623
|
.border-b-\[\#ccc\] {
|
|
583
624
|
border-bottom-color: #ccc;
|
|
584
625
|
}
|
|
@@ -587,6 +628,10 @@
|
|
|
587
628
|
border-bottom-color: #eee;
|
|
588
629
|
}
|
|
589
630
|
|
|
631
|
+
.border-b-transparent {
|
|
632
|
+
border-bottom-color: #0000;
|
|
633
|
+
}
|
|
634
|
+
|
|
590
635
|
.\!bg-\[var\(--primary-color\)\] {
|
|
591
636
|
background-color: var(--primary-color) !important;
|
|
592
637
|
}
|
|
@@ -653,6 +698,10 @@
|
|
|
653
698
|
padding: 0 5px;
|
|
654
699
|
}
|
|
655
700
|
|
|
701
|
+
.p-\[0px_10px\] {
|
|
702
|
+
padding: 0 10px;
|
|
703
|
+
}
|
|
704
|
+
|
|
656
705
|
.p-\[2px\] {
|
|
657
706
|
padding: 2px;
|
|
658
707
|
}
|
|
@@ -771,6 +820,11 @@
|
|
|
771
820
|
opacity: .3;
|
|
772
821
|
}
|
|
773
822
|
|
|
823
|
+
.shadow {
|
|
824
|
+
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
|
|
825
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
826
|
+
}
|
|
827
|
+
|
|
774
828
|
.outline-0 {
|
|
775
829
|
outline-style: var(--tw-outline-style);
|
|
776
830
|
outline-width: 0;
|
|
@@ -907,6 +961,85 @@
|
|
|
907
961
|
inherits: false
|
|
908
962
|
}
|
|
909
963
|
|
|
964
|
+
@property --tw-shadow {
|
|
965
|
+
syntax: "*";
|
|
966
|
+
inherits: false;
|
|
967
|
+
initial-value: 0 0 #0000;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
@property --tw-shadow-color {
|
|
971
|
+
syntax: "*";
|
|
972
|
+
inherits: false
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
@property --tw-shadow-alpha {
|
|
976
|
+
syntax: "<percentage>";
|
|
977
|
+
inherits: false;
|
|
978
|
+
initial-value: 100%;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
@property --tw-inset-shadow {
|
|
982
|
+
syntax: "*";
|
|
983
|
+
inherits: false;
|
|
984
|
+
initial-value: 0 0 #0000;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
@property --tw-inset-shadow-color {
|
|
988
|
+
syntax: "*";
|
|
989
|
+
inherits: false
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
@property --tw-inset-shadow-alpha {
|
|
993
|
+
syntax: "<percentage>";
|
|
994
|
+
inherits: false;
|
|
995
|
+
initial-value: 100%;
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
@property --tw-ring-color {
|
|
999
|
+
syntax: "*";
|
|
1000
|
+
inherits: false
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
@property --tw-ring-shadow {
|
|
1004
|
+
syntax: "*";
|
|
1005
|
+
inherits: false;
|
|
1006
|
+
initial-value: 0 0 #0000;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
@property --tw-inset-ring-color {
|
|
1010
|
+
syntax: "*";
|
|
1011
|
+
inherits: false
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
@property --tw-inset-ring-shadow {
|
|
1015
|
+
syntax: "*";
|
|
1016
|
+
inherits: false;
|
|
1017
|
+
initial-value: 0 0 #0000;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
@property --tw-ring-inset {
|
|
1021
|
+
syntax: "*";
|
|
1022
|
+
inherits: false
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
@property --tw-ring-offset-width {
|
|
1026
|
+
syntax: "<length>";
|
|
1027
|
+
inherits: false;
|
|
1028
|
+
initial-value: 0;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
@property --tw-ring-offset-color {
|
|
1032
|
+
syntax: "*";
|
|
1033
|
+
inherits: false;
|
|
1034
|
+
initial-value: #fff;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
@property --tw-ring-offset-shadow {
|
|
1038
|
+
syntax: "*";
|
|
1039
|
+
inherits: false;
|
|
1040
|
+
initial-value: 0 0 #0000;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
910
1043
|
@property --tw-outline-style {
|
|
911
1044
|
syntax: "*";
|
|
912
1045
|
inherits: false;
|
|
@@ -983,28 +1116,27 @@
|
|
|
983
1116
|
-webkit-tap-highlight-color: transparent;
|
|
984
1117
|
}
|
|
985
1118
|
|
|
986
|
-
ul li[data-v-
|
|
1119
|
+
ul li[data-v-f2bc3db4]{
|
|
987
1120
|
background: white;
|
|
988
|
-
line-height:
|
|
1121
|
+
line-height: 38px;
|
|
989
1122
|
text-align: center;
|
|
990
|
-
border-radius: 6px;
|
|
991
|
-
font-size: 20px;
|
|
1123
|
+
border-radius: 6px;
|
|
992
1124
|
}
|
|
993
|
-
ul li[data-v-
|
|
1125
|
+
ul li[data-v-f2bc3db4]:active {
|
|
994
1126
|
background: #eee;
|
|
995
1127
|
}
|
|
996
|
-
.confirm[data-v-
|
|
1128
|
+
.confirm[data-v-f2bc3db4] {
|
|
997
1129
|
background: var(--primary-color);
|
|
998
1130
|
color: #fff;
|
|
999
1131
|
}
|
|
1000
|
-
.confirm[data-v-
|
|
1132
|
+
.confirm[data-v-f2bc3db4]:active {
|
|
1001
1133
|
filter: grayscale(0.4);
|
|
1002
1134
|
background: var(--primary-color);
|
|
1003
1135
|
}
|
|
1004
|
-
.flashing-ani[data-v-
|
|
1005
|
-
animation: flashing-
|
|
1136
|
+
.flashing-ani[data-v-f2bc3db4] {
|
|
1137
|
+
animation: flashing-f2bc3db4 1s linear infinite;
|
|
1006
1138
|
}
|
|
1007
|
-
button[data-v-
|
|
1139
|
+
button[data-v-f2bc3db4] {
|
|
1008
1140
|
padding: 4px 10px;
|
|
1009
1141
|
border: none;
|
|
1010
1142
|
border-radius: 6px;
|
|
@@ -1012,10 +1144,10 @@ button[data-v-bb22d14b] {
|
|
|
1012
1144
|
background: var(--primary-color);
|
|
1013
1145
|
font-size: 12px;
|
|
1014
1146
|
}
|
|
1015
|
-
button[data-v-
|
|
1147
|
+
button[data-v-f2bc3db4]:active {
|
|
1016
1148
|
filter: grayscale(0.4);
|
|
1017
1149
|
}
|
|
1018
|
-
@keyframes flashing-
|
|
1150
|
+
@keyframes flashing-f2bc3db4 {
|
|
1019
1151
|
0% {
|
|
1020
1152
|
opacity: 1;
|
|
1021
1153
|
}
|
|
@@ -1037,10 +1169,10 @@ button[data-v-bb22d14b]:active {
|
|
|
1037
1169
|
color: #a7a7a7
|
|
1038
1170
|
}
|
|
1039
1171
|
|
|
1040
|
-
[data-v-
|
|
1172
|
+
[data-v-b369d5e1] {
|
|
1041
1173
|
font-family: 宋体;
|
|
1042
1174
|
}
|
|
1043
|
-
.button[data-v-
|
|
1175
|
+
.button[data-v-b369d5e1] {
|
|
1044
1176
|
padding: 5px 10px;
|
|
1045
1177
|
border: none;
|
|
1046
1178
|
background: var(--primary-color);
|
package/src/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import "three";
|
|
2
|
-
import { D,
|
|
2
|
+
import { D, v, s, o, w, l, p, q, n, t } from "./build.js";
|
|
3
3
|
import "clipper-lib";
|
|
4
4
|
export {
|
|
5
5
|
D as Dxf,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
v as DxfSystem,
|
|
7
|
+
s as ModelDataPlugin,
|
|
8
|
+
o as buildJson,
|
|
9
|
+
w as components,
|
|
10
|
+
l as createEditor,
|
|
11
|
+
p as getFileAll,
|
|
12
|
+
q as getGlobalDxfSystem,
|
|
13
|
+
n as getModels,
|
|
14
|
+
t as utils
|
|
15
15
|
};
|