@adatechnology/game-floorplan-three 0.10.2 → 0.10.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/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RoomRects, T as Three, H as HouseRendererOptions, a as HouseRenderer, b as HouseRecord } from './testing-BK7QmoUq.js';
2
- export { A as AreaContext, B as BuildOptions, D as DEFAULT_SPECIMENS, c as Damageable, F as FLOORPLAN_AREA_ID, d as FloorplanEngineLike, e as FloorplanTestOptions, f as House, g as HouseBoxCollider, h as HouseFurnitureCollider, i as HouseInteractable, j as HouseInteractives, k as HousePart, l as HousePlan, m as HousePoint, n as HouseTargetOptions, L as LightingOptions, M as Messages, S as SPECIMEN_AT, o as SpecimenDef, p as TemplateGroup, q as Translate, r as buildSpecimenMeshes, s as createFloorplanTestModule, t as createHouseScenarios, u as createTranslator, v as en, w as locales, x as ptBR, y as specimenSpec } from './testing-BK7QmoUq.js';
1
+ import { R as RoomRects, T as Three, H as HouseRendererOptions, a as HouseRenderer, b as HouseRecord } from './testing-DWLAejq6.js';
2
+ export { A as AreaContext, B as BuildOptions, D as DEFAULT_SPECIMENS, c as Damageable, F as FLOORPLAN_AREA_ID, d as FloorplanEngineLike, e as FloorplanTestOptions, f as House, g as HouseBoxCollider, h as HouseFurnitureCollider, i as HouseInteractable, j as HouseInteractives, k as HousePart, l as HousePlan, m as HousePoint, n as HouseTargetOptions, L as LightingOptions, M as Messages, S as SPECIMEN_AT, o as SpecimenDef, p as TemplateGroup, q as Translate, r as buildSpecimenMeshes, s as createFloorplanTestModule, t as createHouseScenarios, u as createTranslator, v as en, w as locales, x as ptBR, y as specimenSpec } from './testing-DWLAejq6.js';
3
3
  import { DestructionEvent, DestructionWorld } from '@adatechnology/game-destruction';
4
4
  import { DestructibleSpec, WarmUpProbes } from '@adatechnology/game-contracts';
5
5
  import * as THREE_NS from 'three';
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var GameFloorplanThree = (() => {
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -20632,7 +20633,8 @@ uniform mat4 uNodes[${nodes.length}]; attribute float aNodeIndex; attribute vec3
20632
20633
  l.push(it);
20633
20634
  };
20634
20635
  root.updateMatrixWorld(true);
20635
- root.traverse((o) => {
20636
+ root.traverse((o0) => {
20637
+ const o = o0;
20636
20638
  if (o.isMesh && o.userData.ranges) {
20637
20639
  const nv = o.geometry.attributes.position.count;
20638
20640
  for (const f of o.userData.ranges) add(f.id, { mesh: o, v0: f.v0, v1: f.v1, i0: f.i0, i1: f.i1, whole: f.v0 === 0 && f.v1 === nv });
@@ -21127,7 +21129,7 @@ uniform mat4 uNodes[${nodes.length}]; attribute float aNodeIndex; attribute vec3
21127
21129
  return { center: local(chip.center), along: a, up: u };
21128
21130
  }
21129
21131
  function newView(hostId) {
21130
- const items = structure.meshesOf(hostId).filter((it) => it.mesh);
21132
+ const items = structure.meshesOf(hostId).filter((it) => !!it.mesh);
21131
21133
  if (!items.length) return null;
21132
21134
  const parts = [hostId, ...riders(hostId)].filter((id) => structure.byId.get(id) && specOf(id)?.units);
21133
21135
  const mask = maskOf(hostId, parts), core = maskOf(hostId, parts);