viral-viewer-2 0.2.9 → 0.3.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.
@@ -2,12 +2,14 @@ import { ViralViewerApi } from "../../viral-viewer-api";
2
2
  import { CubeCamera } from "./components/cube-camera";
3
3
  import { CubeRenderer } from "./components/cube-renderer";
4
4
  import { CubeScene } from "./components/cube-scene";
5
+ import { CubeMouse } from "./components/cube.mouse";
5
6
  export declare class ViralNavigationCube {
6
7
  viralViewerApi: ViralViewerApi;
8
+ targetElement: HTMLElement | null;
7
9
  cubeScene: CubeScene | null;
8
10
  cubeRenderer: CubeRenderer | null;
9
11
  cubeCamera: CubeCamera | null;
10
- targetElement: HTMLElement | null;
12
+ cubeMouse: CubeMouse | null;
11
13
  constructor(viralViewerApi: ViralViewerApi);
12
14
  private injectCubeWrapperElement;
13
15
  }
@@ -4,19 +4,22 @@ exports.ViralNavigationCube = void 0;
4
4
  const cube_camera_1 = require("./components/cube-camera");
5
5
  const cube_renderer_1 = require("./components/cube-renderer");
6
6
  const cube_scene_1 = require("./components/cube-scene");
7
+ const cube_mouse_1 = require("./components/cube.mouse");
7
8
  class ViralNavigationCube {
8
9
  constructor(viralViewerApi) {
9
10
  this.viralViewerApi = viralViewerApi;
11
+ this.targetElement = null;
10
12
  this.cubeScene = null;
11
13
  this.cubeRenderer = null;
12
14
  this.cubeCamera = null;
13
- this.targetElement = null;
15
+ this.cubeMouse = null;
14
16
  this.injectCubeWrapperElement();
15
17
  this.targetElement = document.getElementById('orientCubeWrapper');
16
18
  if (this.targetElement) {
17
19
  this.cubeScene = new cube_scene_1.CubeScene(this);
18
20
  this.cubeRenderer = new cube_renderer_1.CubeRenderer(this);
19
21
  this.cubeCamera = new cube_camera_1.CubeCamera(this);
22
+ this.cubeMouse = new cube_mouse_1.CubeMouse(this);
20
23
  this.cubeRenderer.anim();
21
24
  }
22
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"viral-navigation-cube.js","sourceRoot":"","sources":["../../../src/components/navigation-cube/viral-navigation-cube.ts"],"names":[],"mappings":";;;AACA,0DAAsD;AACtD,8DAA0D;AAC1D,wDAAoD;AAEpD,MAAa,mBAAmB;IAM5B,YAAmB,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;QALjD,cAAS,GAAqB,IAAI,CAAC;QACnC,iBAAY,GAAwB,IAAI,CAAC;QACzC,eAAU,GAAsB,IAAI,CAAC;QACrC,kBAAa,GAAuB,IAAI,CAAC;QAGrC,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAChC,IAAI,CAAC,aAAa,GAAG,QAAQ,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC;QAClE,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,IAAI,CAAC,SAAS,GAAG,IAAI,sBAAS,CAAC,IAAI,CAAC,CAAC;YACrC,IAAI,CAAC,YAAY,GAAG,IAAI,4BAAY,CAAC,IAAI,CAAC,CAAC;YAC3C,IAAI,CAAC,UAAU,GAAG,IAAI,wBAAU,CAAC,IAAI,CAAC,CAAC;YACvC,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;SAC5B;IACL,CAAC;IACO,wBAAwB;QAC5B,MAAM,SAAS,GAAG,QAAQ,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QAEvD,IAAI,SAAS,EAAE;YACX,SAAS,CAAC,SAAS,IAAI;;;;;;2BAMR,CAAA;SAClB;IAGL,CAAC;CACJ;AA/BD,kDA+BC"}
1
+ {"version":3,"file":"viral-navigation-cube.js","sourceRoot":"","sources":["../../../src/components/navigation-cube/viral-navigation-cube.ts"],"names":[],"mappings":";;;AACA,0DAAsD;AACtD,8DAA0D;AAC1D,wDAAoD;AACpD,wDAAoD;AAEpD,MAAa,mBAAmB;IAM5B,YAAmB,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;QALjD,kBAAa,GAAuB,IAAI,CAAC;QACzC,cAAS,GAAqB,IAAI,CAAC;QACnC,iBAAY,GAAwB,IAAI,CAAC;QACzC,eAAU,GAAsB,IAAI,CAAC;QACrC,cAAS,GAAqB,IAAI,CAAC;QAE/B,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAChC,IAAI,CAAC,aAAa,GAAG,QAAQ,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC;QAClE,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,IAAI,CAAC,SAAS,GAAG,IAAI,sBAAS,CAAC,IAAI,CAAC,CAAC;YACrC,IAAI,CAAC,YAAY,GAAG,IAAI,4BAAY,CAAC,IAAI,CAAC,CAAC;YAC3C,IAAI,CAAC,UAAU,GAAG,IAAI,wBAAU,CAAC,IAAI,CAAC,CAAC;YACvC,IAAI,CAAC,SAAS,GAAG,IAAI,sBAAS,CAAC,IAAI,CAAC,CAAC;YACrC,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;SAC5B;IACL,CAAC;IACO,wBAAwB;QAC5B,MAAM,SAAS,GAAG,QAAQ,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;QAEvD,IAAI,SAAS,EAAE;YACX,SAAS,CAAC,SAAS,IAAI;;;;;;2BAMR,CAAA;SAClB;IAGL,CAAC;CACJ;AAhCD,kDAgCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viral-viewer-2",
3
- "version": "0.2.9",
3
+ "version": "0.3.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",