lunchboxjs 2.1.15 → 2.1.16
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/html-anchor.ts +1 -1
- package/src/three-lunchbox.ts +1 -1
package/package.json
CHANGED
package/src/html-anchor.ts
CHANGED
|
@@ -17,7 +17,7 @@ export class HtmlAnchor extends LitElement {
|
|
|
17
17
|
// const lunchboxParent = closestPassShadow(this, 'three-lunchbox') as ThreeLunchbox | null;
|
|
18
18
|
const lunchboxParent = closestPassShadow(this, (el) => {
|
|
19
19
|
return !!(el as ThreeLunchbox)?.three?.renderer;
|
|
20
|
-
}) as Pick<ThreeLunchbox, 'three'> | null;
|
|
20
|
+
}) as unknown as Pick<ThreeLunchbox, 'three'> | null;
|
|
21
21
|
|
|
22
22
|
if (!lunchboxParent) {
|
|
23
23
|
console.error('three-lunchbox parent required for html-anchor');
|
package/src/three-lunchbox.ts
CHANGED
|
@@ -209,7 +209,7 @@ export class ThreeLunchbox extends LitElement {
|
|
|
209
209
|
// ==================
|
|
210
210
|
onPointerMove(evt: PointerEvent | MouseEvent) {
|
|
211
211
|
const matches = this.runRaycast.bind(this)(evt);
|
|
212
|
-
matches.forEach(match => {
|
|
212
|
+
matches.forEach((match: any) => {
|
|
213
213
|
if (evt.type === 'pointermove') {
|
|
214
214
|
match.element?.dispatchEvent(new PointerEvent('pointermove'));
|
|
215
215
|
match.element?.dispatchEvent(new CustomEvent<ThreeIntersectEvent>(THREE_POINTER_MOVE_EVENT_NAME, { detail: match }));
|