@vectojs/three 0.1.1 → 0.1.2

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.js CHANGED
@@ -590,8 +590,8 @@ var ThreeAdapter = class {
590
590
  * Dispatches pointer events mapped from UV coordinates [0, 1] to VectoJS entities.
591
591
  */
592
592
  dispatchAtUv(type, uv, pointerId, originalEvent) {
593
- const px = uv.x * this.canvas.width;
594
- const py = (1 - uv.y) * this.canvas.height;
593
+ const px = uv.x * this.vectoScene.width;
594
+ const py = (1 - uv.y) * this.vectoScene.height;
595
595
  this.vectoScene.markDirty();
596
596
  const hitEntity = this.vectoScene.findEntityAt(px, py);
597
597
  const state = this.activePointers.get(pointerId);
package/dist/index.mjs CHANGED
@@ -552,8 +552,8 @@ var ThreeAdapter = class {
552
552
  * Dispatches pointer events mapped from UV coordinates [0, 1] to VectoJS entities.
553
553
  */
554
554
  dispatchAtUv(type, uv, pointerId, originalEvent) {
555
- const px = uv.x * this.canvas.width;
556
- const py = (1 - uv.y) * this.canvas.height;
555
+ const px = uv.x * this.vectoScene.width;
556
+ const py = (1 - uv.y) * this.vectoScene.height;
557
557
  this.vectoScene.markDirty();
558
558
  const hitEntity = this.vectoScene.findEntityAt(px, py);
559
559
  const state = this.activePointers.get(pointerId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectojs/three",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },