@bitbybit-dev/jscad 1.5.0 → 1.6.0
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/jscad-generated.js +1 -2
- package/lib/api/inputs/jscad-inputs.d.ts +2 -1
- package/lib/api/jscad-service.d.ts +2 -1
- package/lib/api/jscad-service.js +5 -6
- package/lib/api/three-mf/three-mf-types.d.ts +25 -0
- package/lib/api/three-mf/three-mf-types.js +1 -0
- package/lib/api/three-mf/three-mf-writer.d.ts +9 -0
- package/lib/api/three-mf/three-mf-writer.js +130 -0
- package/lib/api/three-mf/three-mf.constants.d.ts +25 -0
- package/lib/api/three-mf/three-mf.constants.js +34 -0
- package/package.json +3 -3
package/jscad-generated.js
CHANGED
|
@@ -2,7 +2,6 @@ import modeling from "@jscad/modeling";
|
|
|
2
2
|
import IOUTILS from "@jscad/io-utils";
|
|
3
3
|
import STLSERIALIZER from "@jscad/stl-serializer";
|
|
4
4
|
import DXFSERIALIZER from "@jscad/dxf-serializer";
|
|
5
|
-
import THREEMFSERIALIZER from "@jscad/3mf-serializer";
|
|
6
5
|
export default function initJSCAD() {
|
|
7
|
-
return Object.assign(Object.assign({}, modeling), { IOUTILS, STLSERIALIZER, DXFSERIALIZER
|
|
6
|
+
return Object.assign(Object.assign({}, modeling), { IOUTILS, STLSERIALIZER, DXFSERIALIZER });
|
|
8
7
|
}
|
|
@@ -419,7 +419,8 @@ export declare namespace JSCAD {
|
|
|
419
419
|
*/
|
|
420
420
|
fileName?: string | undefined;
|
|
421
421
|
/**
|
|
422
|
-
* Options
|
|
422
|
+
* Options for the file writer, left out for the defaults; 3MF takes `unit` (`millimeter` unless
|
|
423
|
+
* given), `defaultcolor`, `metadata` and `compress`
|
|
423
424
|
* @default undefined
|
|
424
425
|
* @optional true
|
|
425
426
|
*/
|
|
@@ -154,7 +154,8 @@ export declare class Jscad {
|
|
|
154
154
|
* Writes a solid, a 2D shape, a path or a list of them as a 3MF file, a modern 3D printing
|
|
155
155
|
* format, and downloads it in the browser as `fileName` plus `.3mf`.
|
|
156
156
|
*
|
|
157
|
-
*
|
|
157
|
+
* Each solid becomes an object of its own, with its name and color; 2D shapes and paths are
|
|
158
|
+
* left out.
|
|
158
159
|
* @param inputs - The geometry, the file name and the optional writer options
|
|
159
160
|
* @returns The 3MF file as a blob; the asynchronous API starts the download instead and returns nothing
|
|
160
161
|
* @group io
|
package/lib/api/jscad-service.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GeometryHelper, Lists, Point, Transforms, Vector, resolveDto } from "@bitbybit-dev/base";
|
|
2
2
|
import { MathBitByBit } from "@bitbybit-dev/base";
|
|
3
|
-
import { computeVertexNormals } from "@bitbybit-dev/base/lib/api/services/helpers/mesh-normals";
|
|
3
|
+
import { computeVertexNormals } from "@bitbybit-dev/base/lib/api/services/helpers/mesh/mesh-normals";
|
|
4
4
|
import { JSCADExpansions } from "./services/jscad-expansions";
|
|
5
5
|
import { JSCADBooleans } from "./services/jscad-booleans";
|
|
6
6
|
import { JSCADExtrusions } from "./services/jscad-extrusions";
|
|
@@ -11,6 +11,7 @@ import { JSCADText } from "./services/jscad-text";
|
|
|
11
11
|
import * as Inputs from "./inputs/jscad-inputs";
|
|
12
12
|
import { JSCADHulls } from "./services/jscad-hulls";
|
|
13
13
|
import { JSCADColors } from "./services/jscad-colors";
|
|
14
|
+
import { writeThreeMf } from "./three-mf/three-mf-writer";
|
|
14
15
|
/**
|
|
15
16
|
* The entry point to the JSCAD kernel, a mesh-based solid modeler with three kinds of geometry: a
|
|
16
17
|
* solid, held as a closed set of polygons; a flat 2D shape, held as a region in the XY plane; and a
|
|
@@ -285,7 +286,8 @@ export class Jscad {
|
|
|
285
286
|
* Writes a solid, a 2D shape, a path or a list of them as a 3MF file, a modern 3D printing
|
|
286
287
|
* format, and downloads it in the browser as `fileName` plus `.3mf`.
|
|
287
288
|
*
|
|
288
|
-
*
|
|
289
|
+
* Each solid becomes an object of its own, with its name and color; 2D shapes and paths are
|
|
290
|
+
* left out.
|
|
289
291
|
* @param inputs - The geometry, the file name and the optional writer options
|
|
290
292
|
* @returns The 3MF file as a blob; the asynchronous API starts the download instead and returns nothing
|
|
291
293
|
* @group io
|
|
@@ -297,10 +299,7 @@ export class Jscad {
|
|
|
297
299
|
*/
|
|
298
300
|
downloadGeometry3MF(inputs) {
|
|
299
301
|
const resolved = resolveDto(Inputs.JSCAD.DownloadGeometryDto, inputs);
|
|
300
|
-
|
|
301
|
-
const rawData = this.jscad.THREEMFSERIALIZER.serialize(options, resolved.geometry);
|
|
302
|
-
const madeBlob = new Blob(rawData);
|
|
303
|
-
return { blob: madeBlob };
|
|
302
|
+
return { blob: new Blob(writeThreeMf(this.jscad, resolved.options, resolved.geometry)) };
|
|
304
303
|
}
|
|
305
304
|
legacyPolygons(entity) {
|
|
306
305
|
const candidate = entity.toPolygons;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type * as JSCAD from "@jscad/modeling";
|
|
2
|
+
export type ThreeMfUnit = "micron" | "millimeter" | "centimeter" | "inch" | "foot" | "meter";
|
|
3
|
+
export interface ThreeMfSettings {
|
|
4
|
+
unit: ThreeMfUnit;
|
|
5
|
+
metadata: boolean;
|
|
6
|
+
defaultColor: number[];
|
|
7
|
+
compress: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface ThreeMfSolid {
|
|
10
|
+
name: string;
|
|
11
|
+
color: number[];
|
|
12
|
+
polygons: number[][][];
|
|
13
|
+
}
|
|
14
|
+
export interface MaybeNamed {
|
|
15
|
+
name?: unknown;
|
|
16
|
+
}
|
|
17
|
+
export interface ThreeMfMesh {
|
|
18
|
+
vertices: number[][];
|
|
19
|
+
triangles: number[][];
|
|
20
|
+
}
|
|
21
|
+
export interface ThreeMfGeneralizeOptions {
|
|
22
|
+
snap: boolean;
|
|
23
|
+
triangulate: boolean;
|
|
24
|
+
}
|
|
25
|
+
export type ThreeMfGeneralize = (options: ThreeMfGeneralizeOptions, geometries: JSCAD.geometries.geom3.Geom3[]) => unknown;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as JSCAD from "@jscad/modeling";
|
|
2
|
+
import type { ThreeMfMesh, ThreeMfSettings, ThreeMfSolid } from "./three-mf-types";
|
|
3
|
+
export declare function escapeXml(text: string): string;
|
|
4
|
+
export declare function hexColorOf(color: readonly number[]): string;
|
|
5
|
+
export declare function threeMfSettingsOf(options: Record<string, unknown> | undefined): ThreeMfSettings;
|
|
6
|
+
export declare function threeMfSolidsOf(jscad: typeof JSCAD, geometry: unknown, defaultColor: number[]): ThreeMfSolid[];
|
|
7
|
+
export declare function threeMfMeshOf(solid: ThreeMfSolid): ThreeMfMesh;
|
|
8
|
+
export declare function threeMfModelXml(solids: ThreeMfSolid[], settings: ThreeMfSettings, createdAt: Date): string;
|
|
9
|
+
export declare function writeThreeMf(jscad: typeof JSCAD, options: Record<string, unknown> | undefined, geometry: unknown, createdAt?: Date): BlobPart[];
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { strToU8, zipSync } from "fflate";
|
|
2
|
+
import { APPLICATION, CHANNEL_MAX, CORE_NAMESPACE, COLOR_CHANNELS, COLOR_CHANNELS_WITH_ALPHA, CONTENT_TYPES, CONTENT_TYPES_PART, DEFAULT_COLOR, DEFAULT_UNIT, HEX_DIGITS, HEX_RADIX, INDENT, ITEM_INDENT, LIST_INDENT, MESH_INDENT, MODEL_PART, OBJECT_INDENT, RELATIONSHIPS, RELATIONSHIPS_PART, THREE_MF_UNITS, TRIANGLE_CORNERS, XML_DECLARATION, XML_ESCAPES, ZIP_COMMENT, } from "./three-mf.constants";
|
|
3
|
+
export function escapeXml(text) {
|
|
4
|
+
return text.replace(/[&<>"']/g, (character) => XML_ESCAPES[character]);
|
|
5
|
+
}
|
|
6
|
+
export function hexColorOf(color) {
|
|
7
|
+
if (color.length < COLOR_CHANNELS || color.some((channel) => !Number.isFinite(channel))) {
|
|
8
|
+
throw new Error(`A 3MF color needs red, green and blue as finite numbers from 0 to 1, got [${color.join(", ")}]`);
|
|
9
|
+
}
|
|
10
|
+
const channels = color.slice(0, COLOR_CHANNELS_WITH_ALPHA).map((channel) => Math.round(Math.min(1, Math.max(0, channel)) * CHANNEL_MAX));
|
|
11
|
+
return `#${channels.map((channel) => channel.toString(HEX_RADIX).padStart(HEX_DIGITS, "0")).join("").toUpperCase()}`;
|
|
12
|
+
}
|
|
13
|
+
export function threeMfSettingsOf(options) {
|
|
14
|
+
var _a, _b;
|
|
15
|
+
const given = options !== null && options !== void 0 ? options : {};
|
|
16
|
+
const unit = (_a = given["unit"]) !== null && _a !== void 0 ? _a : DEFAULT_UNIT;
|
|
17
|
+
if (!THREE_MF_UNITS.includes(unit)) {
|
|
18
|
+
throw new Error(`A 3MF unit is one of ${THREE_MF_UNITS.join(", ")}, got ${JSON.stringify(unit)}`);
|
|
19
|
+
}
|
|
20
|
+
const color = (_b = given["defaultcolor"]) !== null && _b !== void 0 ? _b : DEFAULT_COLOR;
|
|
21
|
+
if (!Array.isArray(color) || !color.every((channel) => typeof channel === "number")) {
|
|
22
|
+
throw new Error("The 3MF option defaultcolor is a list of red, green, blue and an optional alpha, each from 0 to 1");
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
unit: unit,
|
|
26
|
+
metadata: given["metadata"] !== false,
|
|
27
|
+
defaultColor: color,
|
|
28
|
+
compress: given["compress"] !== false,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function flattened(geometry) {
|
|
32
|
+
return Array.isArray(geometry) ? geometry.flatMap(flattened) : [geometry];
|
|
33
|
+
}
|
|
34
|
+
function isGeneralize(value) {
|
|
35
|
+
return typeof value === "function";
|
|
36
|
+
}
|
|
37
|
+
export function threeMfSolidsOf(jscad, geometry, defaultColor) {
|
|
38
|
+
const solids = flattened(geometry).filter((entity) => jscad.geometries.geom3.isA(entity));
|
|
39
|
+
if (solids.length === 0) {
|
|
40
|
+
throw new Error("Only 3D solids can be written to 3MF, and the geometry holds none");
|
|
41
|
+
}
|
|
42
|
+
const generalize = jscad.modifiers.generalize;
|
|
43
|
+
if (!isGeneralize(generalize)) {
|
|
44
|
+
throw new Error("The JSCAD library given has no modifiers.generalize to triangulate the solids with");
|
|
45
|
+
}
|
|
46
|
+
const triangulated = flattened(generalize({ snap: true, triangulate: true }, solids));
|
|
47
|
+
return triangulated
|
|
48
|
+
.map((solid) => ({ solid, polygons: jscad.geometries.geom3.toPolygons(solid).map((polygon) => polygon.vertices.map((vertex) => [...vertex])) }))
|
|
49
|
+
.filter(({ polygons }) => polygons.length > 0)
|
|
50
|
+
.map(({ solid, polygons }, index) => {
|
|
51
|
+
const named = solid.name;
|
|
52
|
+
return {
|
|
53
|
+
name: typeof named === "string" && named !== "" ? named : `Part ${index}`,
|
|
54
|
+
color: solid.color ? [...solid.color] : defaultColor,
|
|
55
|
+
polygons,
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
export function threeMfMeshOf(solid) {
|
|
60
|
+
const vertices = [];
|
|
61
|
+
const indexOf = new Map();
|
|
62
|
+
const triangles = [];
|
|
63
|
+
for (const polygon of solid.polygons) {
|
|
64
|
+
const corners = polygon.map((vertex) => {
|
|
65
|
+
const key = vertex.join(",");
|
|
66
|
+
let index = indexOf.get(key);
|
|
67
|
+
if (index === undefined) {
|
|
68
|
+
index = vertices.push(vertex) - 1;
|
|
69
|
+
indexOf.set(key, index);
|
|
70
|
+
}
|
|
71
|
+
return index;
|
|
72
|
+
});
|
|
73
|
+
for (let corner = 1; corner + 1 < corners.length; corner++) {
|
|
74
|
+
const triangle = [corners[0], corners[corner], corners[corner + 1]];
|
|
75
|
+
if (new Set(triangle).size === TRIANGLE_CORNERS) {
|
|
76
|
+
triangles.push(triangle);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return { vertices, triangles };
|
|
81
|
+
}
|
|
82
|
+
function solidLines(solid, index, materials, lines) {
|
|
83
|
+
const mesh = threeMfMeshOf(solid);
|
|
84
|
+
lines.push(`${OBJECT_INDENT}<object id="${index + 1}" type="model" pid="${materials}" pindex="${index}" name="${escapeXml(solid.name)}">`);
|
|
85
|
+
lines.push(`${MESH_INDENT}<mesh>`, `${LIST_INDENT}<vertices>`);
|
|
86
|
+
for (const vertex of mesh.vertices) {
|
|
87
|
+
lines.push(`${ITEM_INDENT}<vertex x="${vertex[0]}" y="${vertex[1]}" z="${vertex[2]}"/>`);
|
|
88
|
+
}
|
|
89
|
+
lines.push(`${LIST_INDENT}</vertices>`, `${LIST_INDENT}<triangles>`);
|
|
90
|
+
for (const triangle of mesh.triangles) {
|
|
91
|
+
lines.push(`${ITEM_INDENT}<triangle v1="${triangle[0]}" v2="${triangle[1]}" v3="${triangle[2]}"/>`);
|
|
92
|
+
}
|
|
93
|
+
lines.push(`${LIST_INDENT}</triangles>`, `${MESH_INDENT}</mesh>`, `${OBJECT_INDENT}</object>`);
|
|
94
|
+
}
|
|
95
|
+
function listLines(open, close, items, lines) {
|
|
96
|
+
if (items.length === 0) {
|
|
97
|
+
lines.push(`${open.slice(0, -1)}/>`);
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
lines.push(open, ...items, close);
|
|
101
|
+
}
|
|
102
|
+
export function threeMfModelXml(solids, settings, createdAt) {
|
|
103
|
+
const lines = [XML_DECLARATION, `<model unit="${settings.unit}" xml:lang="und" xmlns="${CORE_NAMESPACE}">`, `${INDENT}<metadata name="Application">${APPLICATION}</metadata>`];
|
|
104
|
+
if (settings.metadata) {
|
|
105
|
+
lines.push(`${INDENT}<metadata name="CreationDate">${createdAt.toISOString()}</metadata>`);
|
|
106
|
+
}
|
|
107
|
+
const materials = solids.length + 1;
|
|
108
|
+
lines.push(`${INDENT}<resources>`);
|
|
109
|
+
listLines(`${OBJECT_INDENT}<basematerials id="${materials}">`, `${OBJECT_INDENT}</basematerials>`, solids.map((solid, index) => `${MESH_INDENT}<base name="mat${index}" displaycolor="${hexColorOf(solid.color)}"/>`), lines);
|
|
110
|
+
solids.forEach((solid, index) => {
|
|
111
|
+
solidLines(solid, index, materials, lines);
|
|
112
|
+
});
|
|
113
|
+
lines.push(`${INDENT}</resources>`);
|
|
114
|
+
listLines(`${INDENT}<build>`, `${INDENT}</build>`, solids.map((_, index) => `${OBJECT_INDENT}<item objectid="${index + 1}"/>`), lines);
|
|
115
|
+
lines.push("</model>", "");
|
|
116
|
+
return lines.join("\n");
|
|
117
|
+
}
|
|
118
|
+
export function writeThreeMf(jscad, options, geometry, createdAt = new Date()) {
|
|
119
|
+
const settings = threeMfSettingsOf(options);
|
|
120
|
+
const xml = threeMfModelXml(threeMfSolidsOf(jscad, geometry, settings.defaultColor), settings, createdAt);
|
|
121
|
+
if (!settings.compress) {
|
|
122
|
+
return [xml];
|
|
123
|
+
}
|
|
124
|
+
const zipped = zipSync({
|
|
125
|
+
[MODEL_PART]: strToU8(xml),
|
|
126
|
+
[RELATIONSHIPS_PART]: strToU8(RELATIONSHIPS),
|
|
127
|
+
[CONTENT_TYPES_PART]: strToU8(CONTENT_TYPES),
|
|
128
|
+
}, { comment: ZIP_COMMENT });
|
|
129
|
+
return [zipped.slice().buffer];
|
|
130
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ThreeMfUnit } from "./three-mf-types";
|
|
2
|
+
export declare const THREE_MF_UNITS: readonly ThreeMfUnit[];
|
|
3
|
+
export declare const DEFAULT_UNIT: ThreeMfUnit;
|
|
4
|
+
export declare const DEFAULT_COLOR: number[];
|
|
5
|
+
export declare const CHANNEL_MAX = 255;
|
|
6
|
+
export declare const HEX_RADIX = 16;
|
|
7
|
+
export declare const HEX_DIGITS = 2;
|
|
8
|
+
export declare const COLOR_CHANNELS = 3;
|
|
9
|
+
export declare const COLOR_CHANNELS_WITH_ALPHA = 4;
|
|
10
|
+
export declare const TRIANGLE_CORNERS = 3;
|
|
11
|
+
export declare const INDENT = " ";
|
|
12
|
+
export declare const OBJECT_INDENT: string;
|
|
13
|
+
export declare const MESH_INDENT: string;
|
|
14
|
+
export declare const LIST_INDENT: string;
|
|
15
|
+
export declare const ITEM_INDENT: string;
|
|
16
|
+
export declare const APPLICATION = "JSCAD";
|
|
17
|
+
export declare const ZIP_COMMENT = "created by JSCAD";
|
|
18
|
+
export declare const MODEL_PART = "3D/3dmodel.model";
|
|
19
|
+
export declare const RELATIONSHIPS_PART = "_rels/.rels";
|
|
20
|
+
export declare const CONTENT_TYPES_PART = "[Content_Types].xml";
|
|
21
|
+
export declare const CORE_NAMESPACE = "http://schemas.microsoft.com/3dmanufacturing/core/2015/02";
|
|
22
|
+
export declare const XML_DECLARATION = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
|
|
23
|
+
export declare const CONTENT_TYPES = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<Types xmlns=\"http://schemas.openxmlformats.org/package/2006/content-types\">\n <Default Extension=\"rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\">\n </Default>\n <Default Extension=\"model\" ContentType=\"application/vnd.ms-package.3dmanufacturing-3dmodel+xml\">\n </Default>\n</Types>";
|
|
24
|
+
export declare const RELATIONSHIPS = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">\n <Relationship Target=\"/3D/3dmodel.model\" Id=\"rel0\" Type=\"http://schemas.microsoft.com/3dmanufacturing/2013/01/3dmodel\">\n </Relationship>\n</Relationships>";
|
|
25
|
+
export declare const XML_ESCAPES: Readonly<Record<string, string>>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const THREE_MF_UNITS = ["micron", "millimeter", "centimeter", "inch", "foot", "meter"];
|
|
2
|
+
export const DEFAULT_UNIT = "millimeter";
|
|
3
|
+
export const DEFAULT_COLOR = [1, 160 / 255, 0, 1];
|
|
4
|
+
export const CHANNEL_MAX = 255;
|
|
5
|
+
export const HEX_RADIX = 16;
|
|
6
|
+
export const HEX_DIGITS = 2;
|
|
7
|
+
export const COLOR_CHANNELS = 3;
|
|
8
|
+
export const COLOR_CHANNELS_WITH_ALPHA = 4;
|
|
9
|
+
export const TRIANGLE_CORNERS = 3;
|
|
10
|
+
export const INDENT = " ";
|
|
11
|
+
export const OBJECT_INDENT = INDENT.repeat(2);
|
|
12
|
+
export const MESH_INDENT = INDENT.repeat(3);
|
|
13
|
+
export const LIST_INDENT = INDENT.repeat(4);
|
|
14
|
+
export const ITEM_INDENT = INDENT.repeat(5);
|
|
15
|
+
export const APPLICATION = "JSCAD";
|
|
16
|
+
export const ZIP_COMMENT = "created by JSCAD";
|
|
17
|
+
export const MODEL_PART = "3D/3dmodel.model";
|
|
18
|
+
export const RELATIONSHIPS_PART = "_rels/.rels";
|
|
19
|
+
export const CONTENT_TYPES_PART = "[Content_Types].xml";
|
|
20
|
+
export const CORE_NAMESPACE = "http://schemas.microsoft.com/3dmanufacturing/core/2015/02";
|
|
21
|
+
export const XML_DECLARATION = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
|
|
22
|
+
export const CONTENT_TYPES = `<?xml version="1.0" encoding="UTF-8" ?>
|
|
23
|
+
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
|
|
24
|
+
<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml">
|
|
25
|
+
</Default>
|
|
26
|
+
<Default Extension="model" ContentType="application/vnd.ms-package.3dmanufacturing-3dmodel+xml">
|
|
27
|
+
</Default>
|
|
28
|
+
</Types>`;
|
|
29
|
+
export const RELATIONSHIPS = `<?xml version="1.0" encoding="UTF-8" ?>
|
|
30
|
+
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
|
31
|
+
<Relationship Target="/3D/3dmodel.model" Id="rel0" Type="http://schemas.microsoft.com/3dmanufacturing/2013/01/3dmodel">
|
|
32
|
+
</Relationship>
|
|
33
|
+
</Relationships>`;
|
|
34
|
+
export const XML_ESCAPES = { "&": "&", "<": "<", ">": ">", "\"": """, "'": "'" };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitbybit-dev/jscad",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Bit By Bit Developers JSCAD based CAD Library to Program Geometry",
|
|
5
5
|
"homepage": "https://docs.bitbybit.dev/classes/Bit.JSCAD",
|
|
6
6
|
"main": "index.js",
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
"types": "./index.d.ts",
|
|
55
55
|
"type": "module",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@bitbybit-dev/base": "1.
|
|
57
|
+
"@bitbybit-dev/base": "1.6.0",
|
|
58
58
|
"@jscad/io-utils": "2.0.33",
|
|
59
59
|
"@jscad/modeling": "2.13.0",
|
|
60
60
|
"@jscad/stl-serializer": "2.1.23",
|
|
61
61
|
"@jscad/dxf-serializer": "2.1.23",
|
|
62
|
-
"
|
|
62
|
+
"fflate": "0.8.3"
|
|
63
63
|
}
|
|
64
64
|
}
|