build-dxf 0.0.67 → 0.1.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/package.json +1 -1
- package/src/build.d.ts +0 -3
- package/src/build.js +2 -4
package/package.json
CHANGED
package/src/build.d.ts
CHANGED
|
@@ -15,7 +15,6 @@ export declare function createEditor(dom: HTMLDivElement, camera?: THREE.Camera,
|
|
|
15
15
|
dxfSystem: DxfSystem;
|
|
16
16
|
getFileAll: () => Promise<{
|
|
17
17
|
dxf: File;
|
|
18
|
-
obj: File;
|
|
19
18
|
glb: File;
|
|
20
19
|
gltf: File;
|
|
21
20
|
json: File;
|
|
@@ -28,7 +27,6 @@ export declare function createEditor(dom: HTMLDivElement, camera?: THREE.Camera,
|
|
|
28
27
|
* @param trajectory
|
|
29
28
|
*/
|
|
30
29
|
export declare function getModels(originData: OriginalDataItem[], trajectory: any, itemList: any): Promise<{
|
|
31
|
-
obj: File;
|
|
32
30
|
glb: File;
|
|
33
31
|
gltf: File;
|
|
34
32
|
}>;
|
|
@@ -60,7 +58,6 @@ export declare function buildJson(opt: HandleJsonOption): Promise<{
|
|
|
60
58
|
*/
|
|
61
59
|
export declare function getFileAll(dxfSystem?: DxfSystem): Promise<{
|
|
62
60
|
dxf: File;
|
|
63
|
-
obj: File;
|
|
64
61
|
glb: File;
|
|
65
62
|
gltf: File;
|
|
66
63
|
json: File;
|
package/src/build.js
CHANGED
|
@@ -14262,11 +14262,10 @@ async function getModels(originData, trajectory, itemList) {
|
|
|
14262
14262
|
const model = sceneAutoGenerat.scene;
|
|
14263
14263
|
const whiteModel = new WhiteModel();
|
|
14264
14264
|
whiteModel.whiteModelGroup.add(model);
|
|
14265
|
-
const obj = new File([await whiteModel.toOBJBlob() || ""], "model.obj", { type: "application/octet-stream" });
|
|
14266
14265
|
const glb = new File([await whiteModel.toGltfBlob(true) || ""], "model.glb", { type: "application/octet-stream" });
|
|
14267
14266
|
const gltf = new File([await whiteModel.toGltfBlob(false) || ""], "model.gltf", { type: "application/json" });
|
|
14268
14267
|
return {
|
|
14269
|
-
obj,
|
|
14268
|
+
// obj,
|
|
14270
14269
|
glb,
|
|
14271
14270
|
gltf
|
|
14272
14271
|
};
|
|
@@ -14334,13 +14333,12 @@ async function getFileAll(dxfSystem = gloabalDxfSystem) {
|
|
|
14334
14333
|
const jpg = new File([await dxfSystem.CorrectionDxf.toDxfImageBlob()], "img.jpg", { type: "image/jpeg" });
|
|
14335
14334
|
const dxf = new File([dxfSystem.Dxf.toDxfBlob()], "dxf.dxf", { type: "application/dxf" });
|
|
14336
14335
|
const correctionDxf = new File([dxfSystem.CorrectionDxf.toDxfBlob() ?? ""], "dxf.dxf", { type: "application/dxf" });
|
|
14337
|
-
const obj = new File([await whiteModel.toOBJBlob()], "model.obj", { type: "application/octet-stream" });
|
|
14338
14336
|
const glb = new File([await whiteModel.toGltfBlob(true)], "model.glb", { type: "application/octet-stream" });
|
|
14339
14337
|
const gltf = new File([await whiteModel.toGltfBlob(false)], "model.gltf", { type: "application/json" });
|
|
14340
14338
|
const json = new File([JSON.stringify(dxfSystem.Dxf.originalData)], "json.json", { type: "application/json" });
|
|
14341
14339
|
return {
|
|
14342
14340
|
dxf,
|
|
14343
|
-
obj,
|
|
14341
|
+
// obj,
|
|
14344
14342
|
glb,
|
|
14345
14343
|
gltf,
|
|
14346
14344
|
json,
|