@xeokit/xeokit-sdk 2.6.9 → 2.6.10

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeokit/xeokit-sdk",
3
- "version": "2.6.9",
3
+ "version": "2.6.10",
4
4
  "description": "Web Programming Toolkit for 3D/2D BIM and AEC Graphics",
5
5
  "module": "./dist/xeokit-sdk.es.js",
6
6
  "main": "./dist/xeokit-sdk.cjs.js",
@@ -59,8 +59,8 @@ function getCanvasPosFromEvent(event, canvas, canvasPos) {
59
59
  canvasPos[1] = event.y;
60
60
  } else {
61
61
  const { left, top } = canvas.getBoundingClientRect();
62
- canvasPos[0] = event.clientX - left - window.scrollX;
63
- canvasPos[1] = event.clientY - top - window.scrollY;
62
+ canvasPos[0] = event.clientX - left;
63
+ canvasPos[1] = event.clientY - top;
64
64
  }
65
65
  return canvasPos;
66
66
  }
@@ -65,7 +65,7 @@ const tempVec4b = math.vec4();
65
65
  * });
66
66
  *
67
67
  * // Create the Marker, associated with our Mesh Entity
68
- * const myMarker = new Marker({
68
+ * const myMarker = new Marker(viewer, {
69
69
  * entity: entity,
70
70
  * worldPos: [10,0,0],
71
71
  * occludable: true