@soonspacejs/plugin-soonbuilder-loader 2.13.11 → 2.13.14
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/dist/index.esm.js +137 -1
- package/dist/index.esm.js.map +1 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -1 +1,137 @@
|
|
|
1
|
-
class
|
|
1
|
+
class SoonbuilderLoaderPlugin {
|
|
2
|
+
constructor(ssp) {
|
|
3
|
+
this.ssp = ssp;
|
|
4
|
+
this.treeData = [];
|
|
5
|
+
this.modelData = [];
|
|
6
|
+
}
|
|
7
|
+
async load(path, needJoinSuffix = false) {
|
|
8
|
+
const { xmlToJson, isArray, isObject, } = this.ssp.utils;
|
|
9
|
+
const FileInfoFullPath = needJoinSuffix ? `${path}/FileInfo.xml` : path;
|
|
10
|
+
this.fileInfo = await xmlToJson(FileInfoFullPath);
|
|
11
|
+
const getFileExtensionFc = this._getFileExtensionFc(this.fileInfo);
|
|
12
|
+
const basePath = FileInfoFullPath.split('FileInfo.xml')[0];
|
|
13
|
+
const folderName = this.fileInfo.folder._attributes.name;
|
|
14
|
+
this.sceneInfo = await xmlToJson(`${basePath}${folderName}.xml`);
|
|
15
|
+
const { Project: { Building: { Floors, ObjectHierarchy, }, }, } = this.sceneInfo;
|
|
16
|
+
const parseFloor = async (FloorData) => {
|
|
17
|
+
var _a, _b, _c;
|
|
18
|
+
const { _attributes, FileSource, } = FloorData;
|
|
19
|
+
const { id: floorId, name, } = _attributes;
|
|
20
|
+
const { name: floorFilePath, } = FileSource._attributes;
|
|
21
|
+
const floorModelInfo = {
|
|
22
|
+
id: floorId,
|
|
23
|
+
name,
|
|
24
|
+
url: this._pathModeChange(basePath, floorFilePath),
|
|
25
|
+
children: [],
|
|
26
|
+
userData: FloorData,
|
|
27
|
+
};
|
|
28
|
+
this._pushModelData(floorModelInfo);
|
|
29
|
+
const floorGroup = await this.ssp.loadModelToGroup({
|
|
30
|
+
id: `${floorModelInfo.id}_group`,
|
|
31
|
+
}, [floorModelInfo]);
|
|
32
|
+
if (!floorGroup)
|
|
33
|
+
return;
|
|
34
|
+
let floorEntity = null;
|
|
35
|
+
if (isArray(ObjectHierarchy.Entity)) {
|
|
36
|
+
floorEntity = ObjectHierarchy.Entity.find(({ _attributes: { id, type, }, }) => type === 'Floor' && id === floorId);
|
|
37
|
+
}
|
|
38
|
+
else if (isObject(ObjectHierarchy.Entity)) {
|
|
39
|
+
const { id, type, } = ObjectHierarchy.Entity._attributes;
|
|
40
|
+
if (id === floorId && type === 'Floor') {
|
|
41
|
+
floorEntity = ObjectHierarchy.Entity;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
if (!floorEntity)
|
|
45
|
+
return;
|
|
46
|
+
let facilityEntity = null;
|
|
47
|
+
if (isArray(floorEntity.Entity)) {
|
|
48
|
+
facilityEntity = floorEntity.Entity.filter(({ _attributes: { type, }, }) => type === 'FACILITY');
|
|
49
|
+
}
|
|
50
|
+
else if (isObject(floorEntity.Entity)) {
|
|
51
|
+
if (floorEntity.Entity._attributes.type === 'FACILITY') {
|
|
52
|
+
facilityEntity = floorEntity.Entity;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
if (!facilityEntity)
|
|
56
|
+
return;
|
|
57
|
+
// const facilityEntity = floorEntity.Entity.filter(
|
|
58
|
+
// ( { _attributes: { type, }, }: any ) => type === 'FACILITY'
|
|
59
|
+
// )
|
|
60
|
+
for (let i = 0; i < facilityEntity.length; i++) {
|
|
61
|
+
const { id, longname, visible, position, eular, scale, } = Object.assign(Object.assign({}, facilityEntity[i]._attributes), (_b = (_a = facilityEntity[i].Properties) === null || _a === void 0 ? void 0 : _a._attributes) !== null && _b !== void 0 ? _b : {});
|
|
62
|
+
const facilityEntityModelInfo = {
|
|
63
|
+
id,
|
|
64
|
+
name: longname,
|
|
65
|
+
url: this._pathModeChange(basePath, `/${getFileExtensionFc(longname)}`),
|
|
66
|
+
visible: this._text2Bool(visible),
|
|
67
|
+
position: this._text2IVector3(position),
|
|
68
|
+
rotation: this._text2IVector3(eular),
|
|
69
|
+
scale: this._text2IVector3(scale),
|
|
70
|
+
userData: facilityEntity[i],
|
|
71
|
+
};
|
|
72
|
+
const facilityModel = await this.ssp.loadModel(facilityEntityModelInfo);
|
|
73
|
+
if (!facilityModel)
|
|
74
|
+
continue;
|
|
75
|
+
this.ssp.addObject(facilityModel, floorGroup);
|
|
76
|
+
this._pushModelData(facilityEntityModelInfo);
|
|
77
|
+
(_c = floorModelInfo.children) === null || _c === void 0 ? void 0 : _c.push(facilityEntityModelInfo);
|
|
78
|
+
}
|
|
79
|
+
this.treeData.push(floorModelInfo);
|
|
80
|
+
};
|
|
81
|
+
if (isArray(Floors.Floor)) {
|
|
82
|
+
for (let f = 0; f < Floors.Floor.length; f++) {
|
|
83
|
+
await parseFloor(Floors.Floor[f]);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
else if (isObject(Floors.Floor)) {
|
|
87
|
+
await parseFloor(Floors.Floor);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
_pushModelData(info) {
|
|
91
|
+
const data = this.modelData.find(({ url, }) => url === info.url);
|
|
92
|
+
if (data)
|
|
93
|
+
return;
|
|
94
|
+
this.modelData.push(info);
|
|
95
|
+
}
|
|
96
|
+
_text2IVector3(text) {
|
|
97
|
+
const arr = text.split(', ');
|
|
98
|
+
return {
|
|
99
|
+
x: Number(arr[0]),
|
|
100
|
+
y: Number(arr[1]),
|
|
101
|
+
z: Number(arr[2]),
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
_text2Bool(text) {
|
|
105
|
+
return text === 'True';
|
|
106
|
+
}
|
|
107
|
+
_pathModeChange(basePath, currentPath) {
|
|
108
|
+
const fullPath = basePath + currentPath;
|
|
109
|
+
if (fullPath.includes('://')) {
|
|
110
|
+
const fullPathArr = fullPath.split('://');
|
|
111
|
+
return (fullPathArr[0] + '://' +
|
|
112
|
+
fullPathArr[1].replace('\\', '/').replace('./', '/').replace('//', '/'));
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
return fullPath.replace('\\', '/').replace('./', '/').replace('//', '/');
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
_getFileExtensionFc(fileInfo) {
|
|
119
|
+
var _a;
|
|
120
|
+
const fileList = (_a = fileInfo === null || fileInfo === void 0 ? void 0 : fileInfo.folder) === null || _a === void 0 ? void 0 : _a.file;
|
|
121
|
+
let fileExtensionList = [];
|
|
122
|
+
if (fileList && Array.isArray(fileList)) {
|
|
123
|
+
fileExtensionList = fileList.filter((item => {
|
|
124
|
+
const { Extension, } = item._attributes;
|
|
125
|
+
return Extension === '.sbm' || Extension === '.sbmx';
|
|
126
|
+
}));
|
|
127
|
+
}
|
|
128
|
+
return (longName) => {
|
|
129
|
+
var _a;
|
|
130
|
+
const current = (_a = fileExtensionList.find(file => { var _a; return (_a = file === null || file === void 0 ? void 0 : file._attributes) === null || _a === void 0 ? void 0 : _a.name.startsWith(longName); })) === null || _a === void 0 ? void 0 : _a._attributes;
|
|
131
|
+
return `${longName}${(current === null || current === void 0 ? void 0 : current.Extension) || '.sbm'}`;
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export { SoonbuilderLoaderPlugin as default };
|
|
137
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../src/index.ts"],"sourcesContent":["import SoonSpace, { IVector3, } from 'soonspacejs'\nimport { ModelInfo, } from 'soonspacejs'\n\nexport interface TModelInfo extends ModelInfo {\n children?: TModelInfo[];\n}\n\nexport default class SoonbuilderLoaderPlugin {\n\n fileInfo: any\n sceneInfo: any\n\n treeData: TModelInfo[]\n modelData: ModelInfo[]\n\n constructor ( readonly ssp: SoonSpace ) {\n\n this.treeData = []\n this.modelData = []\n \n }\n\n async load ( path: string, needJoinSuffix = false ) {\n\n const { xmlToJson, isArray, isObject, } = this.ssp.utils\n const FileInfoFullPath = needJoinSuffix ? `${path}/FileInfo.xml` : path\n\n this.fileInfo = await xmlToJson( FileInfoFullPath )\n\n const getFileExtensionFc = this._getFileExtensionFc( this.fileInfo )\n\n const basePath = FileInfoFullPath.split( 'FileInfo.xml' )[ 0 ]\n const folderName = this.fileInfo.folder._attributes.name\n\n this.sceneInfo = await xmlToJson( `${basePath}${folderName}.xml` )\n\n const {\n Project: {\n Building: { Floors, ObjectHierarchy, },\n },\n } = this.sceneInfo\n\n const parseFloor = async ( FloorData: any ) => {\n\n const { _attributes, FileSource, } = FloorData\n const { id: floorId, name, } = _attributes\n const { name: floorFilePath, } = FileSource._attributes\n\n const floorModelInfo: TModelInfo = {\n id: floorId,\n name,\n url: this._pathModeChange( basePath, floorFilePath ),\n children: [],\n userData: FloorData,\n }\n\n this._pushModelData( floorModelInfo )\n\n const floorGroup = await this.ssp.loadModelToGroup(\n {\n id: `${floorModelInfo.id}_group`,\n },\n [ floorModelInfo ]\n )\n\n if ( !floorGroup ) return\n\n let floorEntity = null\n\n if ( isArray( ObjectHierarchy.Entity ) ) {\n\n floorEntity = ObjectHierarchy.Entity.find(\n ( { _attributes: { id, type, }, }: any ) =>\n type === 'Floor' && id === floorId\n )\n \n } else if ( isObject( ObjectHierarchy.Entity ) ) {\n\n const { id, type, } = ObjectHierarchy.Entity._attributes\n\n if ( id === floorId && type === 'Floor' ) {\n\n floorEntity = ObjectHierarchy.Entity\n \n }\n \n }\n\n if ( !floorEntity ) return\n\n let facilityEntity = null\n\n if ( isArray( floorEntity.Entity ) ) {\n\n facilityEntity = floorEntity.Entity.filter(\n ( { _attributes: { type, }, }: any ) => type === 'FACILITY'\n )\n \n } else if ( isObject( floorEntity.Entity ) ) {\n\n if ( floorEntity.Entity._attributes.type === 'FACILITY' ) {\n\n facilityEntity = floorEntity.Entity\n\n }\n \n }\n\n if ( !facilityEntity ) return\n\n // const facilityEntity = floorEntity.Entity.filter(\n // ( { _attributes: { type, }, }: any ) => type === 'FACILITY'\n // )\n\n for ( let i = 0; i < facilityEntity.length; i++ ) {\n\n const { id, longname, visible, position, eular, scale, } =\n {\n ...facilityEntity[ i ]._attributes,\n ...facilityEntity[ i ].Properties?._attributes ?? {},\n } as any\n\n const facilityEntityModelInfo: TModelInfo = {\n id,\n name: longname,\n url: this._pathModeChange( basePath, `/${getFileExtensionFc( longname )}` ),\n visible: this._text2Bool( visible ),\n position: this._text2IVector3( position ),\n rotation: this._text2IVector3( eular ),\n scale: this._text2IVector3( scale ),\n userData: facilityEntity[ i ],\n }\n\n const facilityModel = await this.ssp.loadModel( facilityEntityModelInfo )\n\n if ( !facilityModel ) continue\n this.ssp.addObject( facilityModel, floorGroup )\n\n this._pushModelData( facilityEntityModelInfo )\n floorModelInfo.children?.push( facilityEntityModelInfo )\n \n }\n\n this.treeData.push( floorModelInfo )\n \n }\n\n if ( isArray( Floors.Floor ) ) {\n\n for ( let f = 0; f < Floors.Floor.length; f++ ) {\n\n await parseFloor( Floors.Floor[ f ] )\n \n }\n \n } else if ( isObject( Floors.Floor ) ) {\n\n await parseFloor( Floors.Floor )\n \n }\n \n }\n\n private _pushModelData ( info: ModelInfo ) {\n\n const data = this.modelData.find( ( { url, } ) => url === info.url )\n\n if ( data ) return\n\n this.modelData.push( info )\n \n }\n\n private _text2IVector3 ( text: string ): IVector3 {\n\n const arr = text.split( ', ' )\n\n return {\n x: Number( arr[ 0 ] ),\n y: Number( arr[ 1 ] ),\n z: Number( arr[ 2 ] ),\n }\n \n }\n\n private _text2Bool ( text: string ): boolean {\n\n return text === 'True'\n \n }\n\n private _pathModeChange ( basePath: string, currentPath: string ) {\n\n const fullPath = basePath + currentPath\n\n if ( fullPath.includes( '://' ) ) {\n\n const fullPathArr = fullPath.split( '://' )\n\n return (\n fullPathArr[ 0 ] + '://' +\n fullPathArr[ 1 ].replace( '\\\\', '/' ).replace( './', '/' ).replace( '//', '/' )\n )\n \n } else {\n\n return fullPath.replace( '\\\\', '/' ).replace( './', '/' ).replace( '//', '/' )\n \n }\n \n }\n\n private _getFileExtensionFc ( fileInfo: any ) {\n\n const fileList = fileInfo?.folder?.file\n\n let fileExtensionList: any[] = []\n\n if ( fileList && Array.isArray( fileList ) ) {\n\n fileExtensionList = fileList.filter( ( item => {\n\n const { Extension, } = item._attributes\n\n return Extension === '.sbm' || Extension === '.sbmx'\n\n } ) )\n \n }\n\n return ( longName: string ) => {\n\n const current = fileExtensionList.find( file => file?._attributes?.name.startsWith( longName ) )?._attributes\n\n return `${longName}${current?.Extension || '.sbm'}`\n \n }\n \n }\n\n}\n"],"names":[],"mappings":"AAOc,MAAO,uBAAuB,CAAA;AAQ1C,IAAA,WAAA,CAAuB,GAAc,EAAA;QAAd,IAAG,CAAA,GAAA,GAAH,GAAG,CAAW;AAEnC,QAAA,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAA;AAClB,QAAA,IAAI,CAAC,SAAS,GAAG,EAAE,CAAA;KAEpB;AAED,IAAA,MAAM,IAAI,CAAG,IAAY,EAAE,cAAc,GAAG,KAAK,EAAA;AAE/C,QAAA,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAA;AACxD,QAAA,MAAM,gBAAgB,GAAG,cAAc,GAAG,CAAG,EAAA,IAAI,CAAe,aAAA,CAAA,GAAG,IAAI,CAAA;QAEvE,IAAI,CAAC,QAAQ,GAAG,MAAM,SAAS,CAAE,gBAAgB,CAAE,CAAA;QAEnD,MAAM,kBAAkB,GAAG,IAAI,CAAC,mBAAmB,CAAE,IAAI,CAAC,QAAQ,CAAE,CAAA;QAEpE,MAAM,QAAQ,GAAG,gBAAgB,CAAC,KAAK,CAAE,cAAc,CAAE,CAAE,CAAC,CAAE,CAAA;QAC9D,MAAM,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAA;AAExD,QAAA,I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KAAJ,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,IAAI,CAAE,WAAW,MAAE,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAI,CAAC,UAAU,CAAE,QAAQ,CAAE,CAAA,EAAA,CAAE,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAE,WAAW,CAAA;AAE7G,YAAA,OAAO,CAAG,EAAA,QAAQ,CAAG,EAAA,CAAA,OAAO,KAAP,IAAA,IAAA,OAAO,KAAP,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,OAAO,CAAE,SAAS,KAAI,MAAM,EAAE,CAAA;AAErD,SAAC,CAAA;KAEF;AAEF;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soonspacejs/plugin-soonbuilder-loader",
|
|
3
3
|
"pluginName": "SoonbuilderLoaderPlugin",
|
|
4
|
-
"version": "2.13.
|
|
4
|
+
"version": "2.13.14",
|
|
5
5
|
"description": "soonbuilder-loader plugin for SoonSpace.js",
|
|
6
6
|
"main": "dist/index.esm.js",
|
|
7
7
|
"module": "dist/index.esm.js",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
],
|
|
14
14
|
"author": "xunwei",
|
|
15
15
|
"license": "UNLICENSED",
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "71d91773a54276b7cbb0a0525ba5f921345f121f",
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"soonspacejs": "2.13.
|
|
18
|
+
"soonspacejs": "2.13.14"
|
|
19
19
|
}
|
|
20
20
|
}
|