@design-core/core 0.0.1 → 0.0.2
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/README.md +7 -1
- package/core/entities/dimension.js +1 -1
- package/package.json +1 -301
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Design-Core [](https://github.com/dubstar-04/Design-Core/actions/workflows/DesignCoreQA.yml) [](https://codecov.io/gh/dubstar-04/Design-Core)
|
|
1
|
+
# Design-Core [](https://github.com/dubstar-04/Design-Core/actions/workflows/DesignCoreQA.yml) [](https://codecov.io/gh/dubstar-04/Design-Core) 
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
Design-Core is a dependancy free opensource javascript library for two dimensional computer aided design (CAD).
|
|
@@ -14,3 +14,9 @@ Design-Core uses the industry standard Drawing Exchange Format (DXF) to read and
|
|
|
14
14
|
* HTML Canvas: https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API
|
|
15
15
|
* Cairo: https://www.cairographics.org/
|
|
16
16
|
|
|
17
|
+
|
|
18
|
+
## Publishing
|
|
19
|
+
|
|
20
|
+
npm login
|
|
21
|
+
|
|
22
|
+
npm publish --access public
|
|
@@ -140,7 +140,7 @@ export class Dimension extends BaseDimension {
|
|
|
140
140
|
// if selected items are available, get the points from the selected items
|
|
141
141
|
// dimensions can be created from point selection only, therefore selected items may not be available
|
|
142
142
|
if (this.selectedItems.length) {
|
|
143
|
-
const dimensionType = this.dimensionMap[this.dimType];
|
|
143
|
+
const dimensionType = this.dimensionMap[this.dimType]; // TODO: use this.dimensionMap.name?
|
|
144
144
|
this.points.push(...dimensionType.getPointsFromSelection(this.selectedItems));
|
|
145
145
|
}
|
|
146
146
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@design-core/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
|
|
@@ -23,306 +23,6 @@
|
|
|
23
23
|
"test": "test"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"acorn": "^8.11.3",
|
|
27
|
-
"acorn-jsx": "^5.3.2",
|
|
28
|
-
"ajv": "^6.12.6",
|
|
29
|
-
"ansi-escapes": "^4.3.2",
|
|
30
|
-
"ansi-regex": "^5.0.1",
|
|
31
|
-
"ansi-styles": "^4.3.0",
|
|
32
|
-
"anymatch": "^3.1.3",
|
|
33
|
-
"argparse": "^2.0.1",
|
|
34
|
-
"array-buffer-byte-length": "^1.0.0",
|
|
35
|
-
"array-includes": "^3.1.7",
|
|
36
|
-
"array.prototype.findlastindex": "^1.2.3",
|
|
37
|
-
"array.prototype.flat": "^1.3.2",
|
|
38
|
-
"array.prototype.flatmap": "^1.3.2",
|
|
39
|
-
"arraybuffer.prototype.slice": "^1.0.2",
|
|
40
|
-
"available-typed-arrays": "^1.0.5",
|
|
41
|
-
"babel-jest": "^29.7.0",
|
|
42
|
-
"babel-plugin-istanbul": "^6.1.1",
|
|
43
|
-
"babel-plugin-jest-hoist": "^29.6.3",
|
|
44
|
-
"babel-preset-current-node-syntax": "^1.0.1",
|
|
45
|
-
"babel-preset-jest": "^29.6.3",
|
|
46
|
-
"balanced-match": "^1.0.2",
|
|
47
|
-
"brace-expansion": "^1.1.11",
|
|
48
|
-
"braces": "^3.0.2",
|
|
49
|
-
"browserslist": "^4.22.2",
|
|
50
|
-
"bser": "^2.1.1",
|
|
51
|
-
"buffer-from": "^1.1.2",
|
|
52
|
-
"builtins": "^5.0.1",
|
|
53
|
-
"call-bind": "^1.0.5",
|
|
54
|
-
"callsites": "^3.1.0",
|
|
55
|
-
"camelcase": "^5.3.1",
|
|
56
|
-
"caniuse-lite": "^1.0.30001576",
|
|
57
|
-
"chalk": "^4.1.2",
|
|
58
|
-
"char-regex": "^1.0.2",
|
|
59
|
-
"ci-info": "^3.9.0",
|
|
60
|
-
"cjs-module-lexer": "^1.2.3",
|
|
61
|
-
"cliui": "^8.0.1",
|
|
62
|
-
"co": "^4.6.0",
|
|
63
|
-
"collect-v8-coverage": "^1.0.2",
|
|
64
|
-
"color-convert": "^2.0.1",
|
|
65
|
-
"color-name": "^1.1.4",
|
|
66
|
-
"concat-map": "^0.0.1",
|
|
67
|
-
"convert-source-map": "^2.0.0",
|
|
68
|
-
"create-jest": "^29.7.0",
|
|
69
|
-
"cross-spawn": "^7.0.3",
|
|
70
|
-
"debug": "^4.3.4",
|
|
71
|
-
"dedent": "^1.5.1",
|
|
72
|
-
"deep-is": "^0.1.4",
|
|
73
|
-
"deepmerge": "^4.3.1",
|
|
74
|
-
"define-data-property": "^1.1.1",
|
|
75
|
-
"define-properties": "^1.2.1",
|
|
76
|
-
"detect-newline": "^3.1.0",
|
|
77
|
-
"diff-sequences": "^29.6.3",
|
|
78
|
-
"doctrine": "^3.0.0",
|
|
79
|
-
"electron-to-chromium": "^1.4.623",
|
|
80
|
-
"emittery": "^0.13.1",
|
|
81
|
-
"emoji-regex": "^8.0.0",
|
|
82
|
-
"error-ex": "^1.3.2",
|
|
83
|
-
"es-abstract": "^1.22.3",
|
|
84
|
-
"es-set-tostringtag": "^2.0.2",
|
|
85
|
-
"es-shim-unscopables": "^1.0.2",
|
|
86
|
-
"es-to-primitive": "^1.2.1",
|
|
87
|
-
"escalade": "^3.1.1",
|
|
88
|
-
"escape-string-regexp": "^4.0.0",
|
|
89
|
-
"eslint-import-resolver-node": "^0.3.9",
|
|
90
|
-
"eslint-module-utils": "^2.8.0",
|
|
91
|
-
"eslint-plugin-es": "^4.1.0",
|
|
92
|
-
"eslint-scope": "^7.2.2",
|
|
93
|
-
"eslint-utils": "^3.0.0",
|
|
94
|
-
"eslint-visitor-keys": "^3.4.3",
|
|
95
|
-
"espree": "^9.6.1",
|
|
96
|
-
"esprima": "^4.0.1",
|
|
97
|
-
"esquery": "^1.5.0",
|
|
98
|
-
"esrecurse": "^4.3.0",
|
|
99
|
-
"estraverse": "^5.3.0",
|
|
100
|
-
"esutils": "^2.0.3",
|
|
101
|
-
"execa": "^5.1.1",
|
|
102
|
-
"exit": "^0.1.2",
|
|
103
|
-
"expect": "^29.7.0",
|
|
104
|
-
"fast-deep-equal": "^3.1.3",
|
|
105
|
-
"fast-json-stable-stringify": "^2.1.0",
|
|
106
|
-
"fast-levenshtein": "^2.0.6",
|
|
107
|
-
"fastq": "^1.16.0",
|
|
108
|
-
"fb-watchman": "^2.0.2",
|
|
109
|
-
"file-entry-cache": "^6.0.1",
|
|
110
|
-
"fill-range": "^7.0.1",
|
|
111
|
-
"find-up": "^5.0.0",
|
|
112
|
-
"flat-cache": "^3.2.0",
|
|
113
|
-
"flatted": "^3.2.9",
|
|
114
|
-
"for-each": "^0.3.3",
|
|
115
|
-
"fs.realpath": "^1.0.0",
|
|
116
|
-
"function-bind": "^1.1.2",
|
|
117
|
-
"function.prototype.name": "^1.1.6",
|
|
118
|
-
"functions-have-names": "^1.2.3",
|
|
119
|
-
"gensync": "^1.0.0-beta.2",
|
|
120
|
-
"get-caller-file": "^2.0.5",
|
|
121
|
-
"get-intrinsic": "^1.2.2",
|
|
122
|
-
"get-package-type": "^0.1.0",
|
|
123
|
-
"get-stream": "^6.0.1",
|
|
124
|
-
"get-symbol-description": "^1.0.0",
|
|
125
|
-
"glob": "^7.2.3",
|
|
126
|
-
"glob-parent": "^6.0.2",
|
|
127
|
-
"globals": "^13.24.0",
|
|
128
|
-
"globalthis": "^1.0.3",
|
|
129
|
-
"gopd": "^1.0.1",
|
|
130
|
-
"graceful-fs": "^4.2.11",
|
|
131
|
-
"graphemer": "^1.4.0",
|
|
132
|
-
"has-bigints": "^1.0.2",
|
|
133
|
-
"has-flag": "^4.0.0",
|
|
134
|
-
"has-property-descriptors": "^1.0.1",
|
|
135
|
-
"has-proto": "^1.0.1",
|
|
136
|
-
"has-symbols": "^1.0.3",
|
|
137
|
-
"has-tostringtag": "^1.0.0",
|
|
138
|
-
"hasown": "^2.0.0",
|
|
139
|
-
"html-escaper": "^2.0.2",
|
|
140
|
-
"human-signals": "^2.1.0",
|
|
141
|
-
"ignore": "^5.3.0",
|
|
142
|
-
"import-fresh": "^3.3.0",
|
|
143
|
-
"import-local": "^3.1.0",
|
|
144
|
-
"imurmurhash": "^0.1.4",
|
|
145
|
-
"inflight": "^1.0.6",
|
|
146
|
-
"inherits": "^2.0.4",
|
|
147
|
-
"internal-slot": "^1.0.6",
|
|
148
|
-
"is-array-buffer": "^3.0.2",
|
|
149
|
-
"is-arrayish": "^0.2.1",
|
|
150
|
-
"is-bigint": "^1.0.4",
|
|
151
|
-
"is-boolean-object": "^1.1.2",
|
|
152
|
-
"is-callable": "^1.2.7",
|
|
153
|
-
"is-core-module": "^2.13.1",
|
|
154
|
-
"is-date-object": "^1.0.5",
|
|
155
|
-
"is-extglob": "^2.1.1",
|
|
156
|
-
"is-fullwidth-code-point": "^3.0.0",
|
|
157
|
-
"is-generator-fn": "^2.1.0",
|
|
158
|
-
"is-glob": "^4.0.3",
|
|
159
|
-
"is-negative-zero": "^2.0.2",
|
|
160
|
-
"is-number": "^7.0.0",
|
|
161
|
-
"is-number-object": "^1.0.7",
|
|
162
|
-
"is-path-inside": "^3.0.3",
|
|
163
|
-
"is-regex": "^1.1.4",
|
|
164
|
-
"is-shared-array-buffer": "^1.0.2",
|
|
165
|
-
"is-stream": "^2.0.1",
|
|
166
|
-
"is-string": "^1.0.7",
|
|
167
|
-
"is-symbol": "^1.0.4",
|
|
168
|
-
"is-typed-array": "^1.1.12",
|
|
169
|
-
"is-weakref": "^1.0.2",
|
|
170
|
-
"isarray": "^2.0.5",
|
|
171
|
-
"isexe": "^2.0.0",
|
|
172
|
-
"istanbul-lib-coverage": "^3.2.2",
|
|
173
|
-
"istanbul-lib-instrument": "^6.0.1",
|
|
174
|
-
"istanbul-lib-report": "^3.0.1",
|
|
175
|
-
"istanbul-lib-source-maps": "^4.0.1",
|
|
176
|
-
"istanbul-reports": "^3.1.6",
|
|
177
|
-
"jest-changed-files": "^29.7.0",
|
|
178
|
-
"jest-circus": "^29.7.0",
|
|
179
|
-
"jest-cli": "^29.7.0",
|
|
180
|
-
"jest-config": "^29.7.0",
|
|
181
|
-
"jest-diff": "^29.7.0",
|
|
182
|
-
"jest-docblock": "^29.7.0",
|
|
183
|
-
"jest-each": "^29.7.0",
|
|
184
|
-
"jest-environment-node": "^29.7.0",
|
|
185
|
-
"jest-get-type": "^29.6.3",
|
|
186
|
-
"jest-haste-map": "^29.7.0",
|
|
187
|
-
"jest-leak-detector": "^29.7.0",
|
|
188
|
-
"jest-matcher-utils": "^29.7.0",
|
|
189
|
-
"jest-message-util": "^29.7.0",
|
|
190
|
-
"jest-mock": "^29.7.0",
|
|
191
|
-
"jest-pnp-resolver": "^1.2.3",
|
|
192
|
-
"jest-regex-util": "^29.6.3",
|
|
193
|
-
"jest-resolve": "^29.7.0",
|
|
194
|
-
"jest-resolve-dependencies": "^29.7.0",
|
|
195
|
-
"jest-runner": "^29.7.0",
|
|
196
|
-
"jest-runtime": "^29.7.0",
|
|
197
|
-
"jest-snapshot": "^29.7.0",
|
|
198
|
-
"jest-util": "^29.7.0",
|
|
199
|
-
"jest-validate": "^29.7.0",
|
|
200
|
-
"jest-watcher": "^29.7.0",
|
|
201
|
-
"jest-worker": "^29.7.0",
|
|
202
|
-
"js-tokens": "^4.0.0",
|
|
203
|
-
"js-yaml": "^4.1.0",
|
|
204
|
-
"jsesc": "^2.5.2",
|
|
205
|
-
"json-buffer": "^3.0.1",
|
|
206
|
-
"json-parse-even-better-errors": "^2.3.1",
|
|
207
|
-
"json-schema-traverse": "^0.4.1",
|
|
208
|
-
"json-stable-stringify-without-jsonify": "^1.0.1",
|
|
209
|
-
"json5": "^2.2.3",
|
|
210
|
-
"keyv": "^4.5.4",
|
|
211
|
-
"kleur": "^3.0.3",
|
|
212
|
-
"leven": "^3.1.0",
|
|
213
|
-
"levn": "^0.4.1",
|
|
214
|
-
"lines-and-columns": "^1.2.4",
|
|
215
|
-
"locate-path": "^6.0.0",
|
|
216
|
-
"lodash.merge": "^4.6.2",
|
|
217
|
-
"lru-cache": "^5.1.1",
|
|
218
|
-
"make-dir": "^4.0.0",
|
|
219
|
-
"makeerror": "^1.0.12",
|
|
220
|
-
"merge-stream": "^2.0.0",
|
|
221
|
-
"micromatch": "^4.0.5",
|
|
222
|
-
"mimic-fn": "^2.1.0",
|
|
223
|
-
"minimatch": "^3.1.2",
|
|
224
|
-
"minimist": "^1.2.8",
|
|
225
|
-
"ms": "^2.1.2",
|
|
226
|
-
"natural-compare": "^1.4.0",
|
|
227
|
-
"node-int64": "^0.4.0",
|
|
228
|
-
"node-releases": "^2.0.14",
|
|
229
|
-
"normalize-path": "^3.0.0",
|
|
230
|
-
"npm-run-path": "^4.0.1",
|
|
231
|
-
"object-inspect": "^1.13.1",
|
|
232
|
-
"object-keys": "^1.1.1",
|
|
233
|
-
"object.assign": "^4.1.5",
|
|
234
|
-
"object.fromentries": "^2.0.7",
|
|
235
|
-
"object.groupby": "^1.0.1",
|
|
236
|
-
"object.values": "^1.1.7",
|
|
237
|
-
"once": "^1.4.0",
|
|
238
|
-
"onetime": "^5.1.2",
|
|
239
|
-
"optionator": "^0.9.3",
|
|
240
|
-
"p-limit": "^3.1.0",
|
|
241
|
-
"p-locate": "^5.0.0",
|
|
242
|
-
"p-try": "^2.2.0",
|
|
243
|
-
"parent-module": "^1.0.1",
|
|
244
|
-
"parse-json": "^5.2.0",
|
|
245
|
-
"path-exists": "^4.0.0",
|
|
246
|
-
"path-is-absolute": "^1.0.1",
|
|
247
|
-
"path-key": "^3.1.1",
|
|
248
|
-
"path-parse": "^1.0.7",
|
|
249
|
-
"picocolors": "^1.0.0",
|
|
250
|
-
"picomatch": "^2.3.1",
|
|
251
|
-
"pirates": "^4.0.6",
|
|
252
|
-
"pkg-dir": "^4.2.0",
|
|
253
|
-
"prelude-ls": "^1.2.1",
|
|
254
|
-
"pretty-format": "^29.7.0",
|
|
255
|
-
"prompts": "^2.4.2",
|
|
256
|
-
"punycode": "^2.3.1",
|
|
257
|
-
"pure-rand": "^6.0.4",
|
|
258
|
-
"queue-microtask": "^1.2.3",
|
|
259
|
-
"react-is": "^18.2.0",
|
|
260
|
-
"regexp.prototype.flags": "^1.5.1",
|
|
261
|
-
"regexpp": "^3.2.0",
|
|
262
|
-
"require-directory": "^2.1.1",
|
|
263
|
-
"resolve": "^1.22.8",
|
|
264
|
-
"resolve-cwd": "^3.0.0",
|
|
265
|
-
"resolve-from": "^4.0.0",
|
|
266
|
-
"resolve.exports": "^2.0.2",
|
|
267
|
-
"reusify": "^1.0.4",
|
|
268
|
-
"rimraf": "^3.0.2",
|
|
269
|
-
"run-parallel": "^1.2.0",
|
|
270
|
-
"safe-array-concat": "^1.0.1",
|
|
271
|
-
"safe-regex-test": "^1.0.0",
|
|
272
|
-
"semver": "^6.3.1",
|
|
273
|
-
"set-function-length": "^1.1.1",
|
|
274
|
-
"set-function-name": "^2.0.1",
|
|
275
|
-
"shebang-command": "^2.0.0",
|
|
276
|
-
"shebang-regex": "^3.0.0",
|
|
277
|
-
"side-channel": "^1.0.4",
|
|
278
|
-
"signal-exit": "^3.0.7",
|
|
279
|
-
"sisteransi": "^1.0.5",
|
|
280
|
-
"slash": "^3.0.0",
|
|
281
|
-
"source-map": "^0.6.1",
|
|
282
|
-
"source-map-support": "^0.5.13",
|
|
283
|
-
"sprintf-js": "^1.0.3",
|
|
284
|
-
"stack-utils": "^2.0.6",
|
|
285
|
-
"string-length": "^4.0.2",
|
|
286
|
-
"string-width": "^4.2.3",
|
|
287
|
-
"string.prototype.trim": "^1.2.8",
|
|
288
|
-
"string.prototype.trimend": "^1.0.7",
|
|
289
|
-
"string.prototype.trimstart": "^1.0.7",
|
|
290
|
-
"strip-ansi": "^6.0.1",
|
|
291
|
-
"strip-bom": "^4.0.0",
|
|
292
|
-
"strip-final-newline": "^2.0.0",
|
|
293
|
-
"strip-json-comments": "^3.1.1",
|
|
294
|
-
"supports-color": "^7.2.0",
|
|
295
|
-
"supports-preserve-symlinks-flag": "^1.0.0",
|
|
296
|
-
"test-exclude": "^6.0.0",
|
|
297
|
-
"text-table": "^0.2.0",
|
|
298
|
-
"tmpl": "^1.0.5",
|
|
299
|
-
"to-fast-properties": "^2.0.0",
|
|
300
|
-
"to-regex-range": "^5.0.1",
|
|
301
|
-
"tsconfig-paths": "^3.15.0",
|
|
302
|
-
"type-check": "^0.4.0",
|
|
303
|
-
"type-detect": "^4.0.8",
|
|
304
|
-
"type-fest": "^0.20.2",
|
|
305
|
-
"typed-array-buffer": "^1.0.0",
|
|
306
|
-
"typed-array-byte-length": "^1.0.0",
|
|
307
|
-
"typed-array-byte-offset": "^1.0.0",
|
|
308
|
-
"typed-array-length": "^1.0.4",
|
|
309
|
-
"unbox-primitive": "^1.0.2",
|
|
310
|
-
"undici-types": "^5.26.5",
|
|
311
|
-
"update-browserslist-db": "^1.0.13",
|
|
312
|
-
"uri-js": "^4.4.1",
|
|
313
|
-
"v8-to-istanbul": "^9.2.0",
|
|
314
|
-
"walker": "^1.0.8",
|
|
315
|
-
"which": "^2.0.2",
|
|
316
|
-
"which-boxed-primitive": "^1.0.2",
|
|
317
|
-
"which-typed-array": "^1.1.13",
|
|
318
|
-
"wrap-ansi": "^7.0.0",
|
|
319
|
-
"wrappy": "^1.0.2",
|
|
320
|
-
"write-file-atomic": "^4.0.2",
|
|
321
|
-
"y18n": "^5.0.8",
|
|
322
|
-
"yallist": "^3.1.1",
|
|
323
|
-
"yargs": "^17.7.2",
|
|
324
|
-
"yargs-parser": "^21.1.1",
|
|
325
|
-
"yocto-queue": "^0.1.0"
|
|
326
26
|
},
|
|
327
27
|
"repository": {
|
|
328
28
|
"type": "git",
|