web3dlink 2.0.1 → 2.0.3

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 CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "web3dlink",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "",
5
+ "private": false,
5
6
  "main": "Web3DLink.es.js",
6
7
  "scripts": {
7
8
  "test": "echo \"Error: no test specified\" && exit 1"
package/web3dlink.es.js CHANGED
@@ -624,6 +624,13 @@ function config(g) {
624
624
  value: g.y_AroundSpeed,
625
625
  defaultValue: 3,
626
626
  min: 0
627
+ })), m.push(...validateOptionalNumber({
628
+ normalized: u,
629
+ field: "fov",
630
+ value: g.fov,
631
+ defaultValue: 90,
632
+ min: 1,
633
+ max: 179
627
634
  })), {
628
635
  errors: m,
629
636
  normalized: u
@@ -19001,13 +19008,21 @@ class LoadStream {
19001
19008
  }
19002
19009
  this._gameApi = null, this._larksr = null;
19003
19010
  }
19011
+ // 新增获取 larksr 实例的方法
19012
+ getLarkSR() {
19013
+ return this._larksr;
19014
+ }
19004
19015
  }
19005
19016
  const loadStream = new LoadStream(), createAndInitLarkSR = loadStream.constructor.createAndInitLarkSR;
19006
19017
  function closeGameApi() {
19007
19018
  return loadStream.close();
19008
19019
  }
19020
+ function getLarkSR() {
19021
+ return loadStream.getLarkSR();
19022
+ }
19009
19023
  export {
19010
19024
  closeGameApi,
19011
19025
  createAndInitLarkSR,
19012
- loadStream as default
19026
+ loadStream as default,
19027
+ getLarkSR
19013
19028
  };