lunchboxjs 2.2.2 → 2.2.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
@@ -13,7 +13,7 @@
13
13
  "types": "./src/types.d.ts"
14
14
  }
15
15
  },
16
- "version": "2.2.2",
16
+ "version": "2.2.3",
17
17
  "type": "module",
18
18
  "types": "./src/types.d.ts",
19
19
  "scripts": {
@@ -2,7 +2,7 @@ import { LitElement, css, html } from 'lit';
2
2
  import * as THREE from 'three';
3
3
  import { THREE_UUID_ATTRIBUTE_NAME } from './utils';
4
4
  import { RAYCASTABLE_ATTRIBUTE_NAME } from './three-base';
5
- import { AFTER_RENDER_EVENT_NAME, BEFORE_RENDER_EVENT_NAME, Lunchbox, THREE_CLICK_EVENT_NAME, THREE_MOUSE_MOVE_EVENT_NAME, THREE_POINTER_MOVE_EVENT_NAME, ThreeIntersectEvent } from '.';
5
+ import { AFTER_RENDER_EVENT_NAME, BEFORE_RENDER_EVENT_NAME, Lunchbox, THREE_CLICK_EVENT_NAME, THREE_MOUSE_MOVE_EVENT_NAME, THREE_POINTER_MOVE_EVENT_NAME } from '.';
6
6
  import { setThreeProperty } from './setThreeProperty';
7
7
  import { property } from 'lit/decorators.js';
8
8
  import { parseAttributeOrPropertyValue } from './parseAttributeValue';
@@ -223,10 +223,10 @@ export class ThreeLunchbox extends LitElement {
223
223
  matches.forEach((match: any) => {
224
224
  if (evt.type === 'pointermove') {
225
225
  match.element?.dispatchEvent(new PointerEvent('pointermove'));
226
- match.element?.dispatchEvent(new CustomEvent<ThreeIntersectEvent>(THREE_POINTER_MOVE_EVENT_NAME, { detail: match }));
226
+ match.element?.dispatchEvent(new CustomEvent(THREE_POINTER_MOVE_EVENT_NAME, { detail: match }));
227
227
  } else if (evt.type === 'mousemove') {
228
228
  match.element?.dispatchEvent(new MouseEvent('mousemove'));
229
- match.element?.dispatchEvent(new CustomEvent<ThreeIntersectEvent>(THREE_MOUSE_MOVE_EVENT_NAME, { detail: match }));
229
+ match.element?.dispatchEvent(new CustomEvent(THREE_MOUSE_MOVE_EVENT_NAME, { detail: match }));
230
230
  }
231
231
  });
232
232
  }
@@ -250,7 +250,7 @@ export class ThreeLunchbox extends LitElement {
250
250
  }
251
251
 
252
252
  matches.forEach(match => {
253
- match.element?.dispatchEvent(new CustomEvent<ThreeIntersectEvent>(THREE_CLICK_EVENT_NAME, { detail: match }));
253
+ match.element?.dispatchEvent(new CustomEvent(THREE_CLICK_EVENT_NAME, { detail: match }));
254
254
  });
255
255
  }
256
256