@soonspacejs/plugin-sspx 2.13.7 → 2.13.8

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 CHANGED
@@ -1,33 +1,33 @@
1
- # @soonspacejs/sspx
2
-
3
- > Ssp instance store for SoonSpace.js
4
-
5
- ## Use
6
- ```js
7
- import SoonSpace from "soonspacejs"
8
- import Sspx from "@soonspacejs/plugin-sspx"
9
-
10
- const ssp = new SoonSpace({
11
- el: '#view',
12
- options: {
13
- showGrid: true,
14
- },
15
- events: {},
16
- });
17
-
18
- // 保存 ssp 实例
19
- Sspx.add("firstSsp", ssp)
20
-
21
- // 加载一个测试模型
22
- ssp
23
- .loadSbm({
24
- id: "test_model",
25
- url: "./model/changjing02/changjing02_1F_0.sbm",
26
- })
27
- .then(() => {
28
- ssp.flyMainViewpoint()
29
- })
30
-
31
- // 获取已保存 ssp 实例
32
- console.log("Sspx get", Sspx.get("firstSsp"))
33
- ```
1
+ # @soonspacejs/sspx
2
+
3
+ > Ssp instance store for SoonSpace.js
4
+
5
+ ## Use
6
+ ```js
7
+ import SoonSpace from "soonspacejs"
8
+ import Sspx from "@soonspacejs/plugin-sspx"
9
+
10
+ const ssp = new SoonSpace({
11
+ el: '#view',
12
+ options: {
13
+ showGrid: true,
14
+ },
15
+ events: {},
16
+ });
17
+
18
+ // 保存 ssp 实例
19
+ Sspx.add("firstSsp", ssp)
20
+
21
+ // 加载一个测试模型
22
+ ssp
23
+ .loadSbm({
24
+ id: "test_model",
25
+ url: "./model/changjing02/changjing02_1F_0.sbm",
26
+ })
27
+ .then(() => {
28
+ ssp.flyMainViewpoint()
29
+ })
30
+
31
+ // 获取已保存 ssp 实例
32
+ console.log("Sspx get", Sspx.get("firstSsp"))
33
+ ```
@@ -0,0 +1,8 @@
1
+ import SoonSpace from 'soonspacejs';
2
+ declare const _default: {
3
+ store: Map<string, SoonSpace>;
4
+ add(name: string, ssp: SoonSpace): void;
5
+ get(name: string): SoonSpace | undefined;
6
+ remove(name: string): boolean;
7
+ };
8
+ export default _default;
package/dist/index.esm.js CHANGED
@@ -1,15 +1 @@
1
- var index = {
2
- store: new Map(),
3
- add(name, ssp) {
4
- this.store.set(name, ssp);
5
- },
6
- get(name) {
7
- return this.store.get(name);
8
- },
9
- remove(name) {
10
- return this.store.delete(name);
11
- },
12
- };
13
-
14
- export { index as default };
15
- //# sourceMappingURL=index.esm.js.map
1
+ var e={store:new Map,add(e,t){this.store.set(e,t)},get(e){return this.store.get(e)},remove(e){return this.store.delete(e)}};export{e as default};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@soonspacejs/plugin-sspx",
3
3
  "pluginName": "sspxPlugin",
4
- "version": "2.13.7",
4
+ "version": "2.13.8",
5
5
  "description": "Ssp instance store 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": "550040550bf20ec0015982ff1159d0cfe9b35ed3",
16
+ "gitHead": "d6b6f55e087ba0621e8bb404fc63c99fd4389660",
17
17
  "peerDependencies": {
18
- "soonspacejs": "2.13.7"
18
+ "soonspacejs": "2.13.8"
19
19
  }
20
20
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.esm.js","sources":["../src/index.ts"],"sourcesContent":["import SoonSpace from 'soonspacejs'\r\n\r\nexport default {\r\n\r\n store: new Map<string, SoonSpace>(),\r\n\r\n add ( name: string, ssp: SoonSpace ): void {\r\n\r\n this.store.set( name, ssp )\r\n \r\n },\r\n\r\n get ( name: string ): SoonSpace | undefined {\r\n\r\n return this.store.get( name )\r\n \r\n },\r\n\r\n remove ( name: string ): boolean {\r\n\r\n return this.store.delete( name )\r\n \r\n },\r\n\r\n}\r\n"],"names":[],"mappings":"AAEA,YAAe;IAEb,KAAK,EAAE,IAAI,GAAG,EAAqB;IAEnC,GAAG,CAAG,IAAY,EAAE,GAAc,EAAA;QAEhC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAE,IAAI,EAAE,GAAG,CAAE,CAAA;KAE5B;AAED,IAAA,GAAG,CAAG,IAAY,EAAA;QAEhB,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAE,IAAI,CAAE,CAAA;KAE9B;AAED,IAAA,MAAM,CAAG,IAAY,EAAA;QAEnB,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAE,IAAI,CAAE,CAAA;KAEjC;CAEF;;;;"}