build-dxf 0.1.21 → 0.1.22
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/build.d.ts +2 -0
- package/src/build.js +2 -1
package/package.json
CHANGED
package/src/build.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare function createEditor(dom: HTMLDivElement, camera?: THREE.Camera,
|
|
|
15
15
|
dxfSystem: DxfSystem;
|
|
16
16
|
getFileAll: () => Promise<{
|
|
17
17
|
dxf: File;
|
|
18
|
+
obj: File;
|
|
18
19
|
glb: File;
|
|
19
20
|
gltf: File;
|
|
20
21
|
json: File;
|
|
@@ -59,6 +60,7 @@ export declare function buildJson(opt: HandleJsonOption): Promise<{
|
|
|
59
60
|
*/
|
|
60
61
|
export declare function getFileAll(dxfSystem?: DxfSystem): Promise<{
|
|
61
62
|
dxf: File;
|
|
63
|
+
obj: File;
|
|
62
64
|
glb: File;
|
|
63
65
|
gltf: File;
|
|
64
66
|
json: File;
|
package/src/build.js
CHANGED
|
@@ -15417,12 +15417,13 @@ async function getFileAll(dxfSystem = gloabalDxfSystem) {
|
|
|
15417
15417
|
const dxf = new File([dxfSystem.CorrectionDxf.toDxfBlob() ?? ""], "dxf.dxf", { type: "application/dxf" });
|
|
15418
15418
|
const jpg = new File([await dxfSystem.CorrectionDxf.toRCDxfImageBlob()], "img.jpg", { type: "image/jpeg" });
|
|
15419
15419
|
const correctionDxf = new File([dxfSystem.CorrectionDxf.toRCDxfBlob() ?? ""], "dxf.dxf", { type: "application/dxf" });
|
|
15420
|
+
const obj = new File([await whiteModel.toOBJBlob()], "model.obj", { type: "application/octet-stream" });
|
|
15420
15421
|
const glb = new File([await whiteModel.toGltfBlob(true)], "model.glb", { type: "application/octet-stream" });
|
|
15421
15422
|
const gltf2 = new File([await whiteModel.toGltfBlob(false)], "model.gltf", { type: "application/json" });
|
|
15422
15423
|
const json = new File([JSON.stringify(dxfSystem.Dxf.originalData)], "json.json", { type: "application/json" });
|
|
15423
15424
|
return {
|
|
15424
15425
|
dxf,
|
|
15425
|
-
|
|
15426
|
+
obj,
|
|
15426
15427
|
glb,
|
|
15427
15428
|
gltf: gltf2,
|
|
15428
15429
|
json,
|