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 CHANGED
@@ -13,7 +13,7 @@
13
13
  "types": "./src/types.d.ts"
14
14
  }
15
15
  },
16
- "version": "2.1.15",
16
+ "version": "2.1.16",
17
17
  "type": "module",
18
18
  "types": "./src/types.d.ts",
19
19
  "scripts": {
@@ -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');
@@ -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 }));