@pascal-app/editor 1.0.0-beta.2 → 1.0.0-beta.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pascal-app/editor",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0-beta.3",
4
4
  "description": "Pascal building editor component",
5
5
  "type": "module",
6
6
  "exports": {
@@ -11,8 +11,8 @@
11
11
  "check-types": "tsgo --noEmit"
12
12
  },
13
13
  "peerDependencies": {
14
- "@pascal-app/core": "^1.0.0-beta.2",
15
- "@pascal-app/viewer": "^1.0.0-beta.2",
14
+ "@pascal-app/core": "^1.0.0-beta.3",
15
+ "@pascal-app/viewer": "^1.0.0-beta.3",
16
16
  "@react-three/drei": "^10",
17
17
  "@react-three/fiber": "^9",
18
18
  "next": ">=15",
@@ -56,8 +56,8 @@
56
56
  "zustand": "^5.0.11"
57
57
  },
58
58
  "devDependencies": {
59
- "@pascal-app/core": "^1.0.0-beta.2",
60
- "@pascal-app/viewer": "^1.0.0-beta.2",
59
+ "@pascal-app/core": "^1.0.0-beta.3",
60
+ "@pascal-app/viewer": "^1.0.0-beta.3",
61
61
  "@pascal/typescript-config": "*",
62
62
  "@types/blob-stream": "^0.1.33",
63
63
  "@types/bun": "^1.3.0",
package/src/index.tsx CHANGED
@@ -518,6 +518,7 @@ export {
518
518
  snapBuildingLocalToWorldGrid,
519
519
  snapWorldXZForActiveBuilding,
520
520
  } from './lib/world-grid-snap'
521
+ export { subscribeCameraPose } from './store/camera-pose-store'
521
522
  export { default as useAlignmentGuides } from './store/use-alignment-guides'
522
523
  export { default as useAudio } from './store/use-audio'
523
524
  export { type CommandAction, useCommandRegistry } from './store/use-command-registry'
@@ -14,6 +14,7 @@ import {
14
14
  type HeightPatch,
15
15
  isDatumField,
16
16
  minBrushRadius,
17
+ persistedTerrainFieldOf,
17
18
  pointInPolygon2D,
18
19
  quantize,
19
20
  runAsSingleSceneHistoryStep,
@@ -21,7 +22,6 @@ import {
21
22
  sampleTarget,
22
23
  type TerrainField,
23
24
  type TerrainVerb,
24
- terrainFieldOf,
25
25
  useLiveTerrain,
26
26
  useScene,
27
27
  } from '@pascal-app/core'
@@ -97,7 +97,7 @@ export function fieldExtentForSite(site: Pick<SiteNode, 'polygon'> | null | unde
97
97
  * here is that the tool must not have to know how to size a grid.
98
98
  */
99
99
  export function sculptFieldForSite(site: SiteNode): TerrainField {
100
- return terrainFieldOf(site) ?? createTerrainField(fieldExtentForSite(site))
100
+ return persistedTerrainFieldOf(site) ?? createTerrainField(fieldExtentForSite(site))
101
101
  }
102
102
 
103
103
  /** Whether an XZ point belongs to the editable property footprint. */