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 +1 -1
- package/src/three-lunchbox.ts +4 -4
package/package.json
CHANGED
package/src/three-lunchbox.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
253
|
+
match.element?.dispatchEvent(new CustomEvent(THREE_CLICK_EVENT_NAME, { detail: match }));
|
|
254
254
|
});
|
|
255
255
|
}
|
|
256
256
|
|