@anov/3d 0.0.6 → 0.0.7

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.
@@ -8,7 +8,7 @@ declare class Develop implements BaseModule {
8
8
  objectsCount: number;
9
9
  trianglesCount: number;
10
10
  verticesCount: number;
11
- drawcal: number;
11
+ drawcall: number;
12
12
  memorySize: any;
13
13
  };
14
14
  };
@@ -28,7 +28,7 @@ var Develop = /*#__PURE__*/function () {
28
28
  objectsCount: objects,
29
29
  trianglesCount: triangles,
30
30
  verticesCount: vertices,
31
- drawcal: scene.renderer.info.render.calls,
31
+ drawcall: scene.renderer.info.render.calls,
32
32
  memorySize: memory.usedJSHeapSize
33
33
  }
34
34
  };
@@ -1 +1 @@
1
- {"version":3,"names":["getSceneInfo","Develop","app","scene","sceneControl","objects","vertices","triangles","memory","performance","total","objectsCount","trianglesCount","verticesCount","drawcal","renderer","info","render","calls","memorySize","usedJSHeapSize"],"sources":["../../../src/module/develop/index.ts"],"sourcesContent":["import type { BaseModule } from '../../utils/abstract'\nimport type Anov3D from '../../sdkEntry'\nimport { getSceneInfo } from '../../utils/index'\n\nclass Develop implements BaseModule {\n app: Anov3D\n\n constructor(app: Anov3D) {\n this.app = app\n }\n\n getInfo() {\n const scene = this.app.sceneControl\n const {\n objects,\n vertices,\n triangles,\n } = getSceneInfo(scene.scene!)\n\n // @ts-ignore\n const memory = performance.memory as any\n\n return {\n total: {\n objectsCount: objects,\n trianglesCount: triangles,\n verticesCount: vertices,\n drawcal: scene.renderer!.info.render.calls,\n memorySize: memory.usedJSHeapSize,\n },\n }\n }\n}\n\nexport default Develop"],"mappings":";;;;;;;AAEA,SAASA,YAAY;AAA2B,IAE1CC,OAAO;EAGX,iBAAYC,GAAW,EAAE;IAAA;IAAA;IACvB,IAAI,CAACA,GAAG,GAAGA,GAAG;EAChB;EAAC;IAAA;IAAA,OAED,mBAAU;MACR,IAAMC,KAAK,GAAG,IAAI,CAACD,GAAG,CAACE,YAAY;MACnC,oBAIIJ,YAAY,CAACG,KAAK,CAACA,KAAK,CAAE;QAH5BE,OAAO,iBAAPA,OAAO;QACPC,QAAQ,iBAARA,QAAQ;QACRC,SAAS,iBAATA,SAAS;;MAGX;MACA,IAAMC,MAAM,GAAGC,WAAW,CAACD,MAAa;MAExC,OAAO;QACLE,KAAK,EAAE;UACLC,YAAY,EAAEN,OAAO;UACrBO,cAAc,EAAEL,SAAS;UACzBM,aAAa,EAAEP,QAAQ;UACvBQ,OAAO,EAAEX,KAAK,CAACY,QAAQ,CAAEC,IAAI,CAACC,MAAM,CAACC,KAAK;UAC1CC,UAAU,EAAEX,MAAM,CAACY;QACrB;MACF,CAAC;IACH;EAAC;EAAA;AAAA;AAGH,eAAenB,OAAO"}
1
+ {"version":3,"names":["getSceneInfo","Develop","app","scene","sceneControl","objects","vertices","triangles","memory","performance","total","objectsCount","trianglesCount","verticesCount","drawcall","renderer","info","render","calls","memorySize","usedJSHeapSize"],"sources":["../../../src/module/develop/index.ts"],"sourcesContent":["import type { BaseModule } from '../../utils/abstract'\nimport type Anov3D from '../../sdkEntry'\nimport { getSceneInfo } from '../../utils/index'\n\nclass Develop implements BaseModule {\n app: Anov3D\n\n constructor(app: Anov3D) {\n this.app = app\n }\n\n getInfo() {\n const scene = this.app.sceneControl\n const {\n objects,\n vertices,\n triangles,\n } = getSceneInfo(scene.scene!)\n\n // @ts-ignore\n const memory = performance.memory as any\n\n return {\n total: {\n objectsCount: objects,\n trianglesCount: triangles,\n verticesCount: vertices,\n drawcall: scene.renderer!.info.render.calls,\n memorySize: memory.usedJSHeapSize,\n },\n }\n }\n}\n\nexport default Develop"],"mappings":";;;;;;;AAEA,SAASA,YAAY;AAA2B,IAE1CC,OAAO;EAGX,iBAAYC,GAAW,EAAE;IAAA;IAAA;IACvB,IAAI,CAACA,GAAG,GAAGA,GAAG;EAChB;EAAC;IAAA;IAAA,OAED,mBAAU;MACR,IAAMC,KAAK,GAAG,IAAI,CAACD,GAAG,CAACE,YAAY;MACnC,oBAIIJ,YAAY,CAACG,KAAK,CAACA,KAAK,CAAE;QAH5BE,OAAO,iBAAPA,OAAO;QACPC,QAAQ,iBAARA,QAAQ;QACRC,SAAS,iBAATA,SAAS;;MAGX;MACA,IAAMC,MAAM,GAAGC,WAAW,CAACD,MAAa;MAExC,OAAO;QACLE,KAAK,EAAE;UACLC,YAAY,EAAEN,OAAO;UACrBO,cAAc,EAAEL,SAAS;UACzBM,aAAa,EAAEP,QAAQ;UACvBQ,QAAQ,EAAEX,KAAK,CAACY,QAAQ,CAAEC,IAAI,CAACC,MAAM,CAACC,KAAK;UAC3CC,UAAU,EAAEX,MAAM,CAACY;QACrB;MACF,CAAC;IACH;EAAC;EAAA;AAAA;AAGH,eAAenB,OAAO"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anov/3d",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "MIT",