Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,16 @@
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"howler": "^2.2.4",
"jspdf": "^4.2.1",
"lucide-react": "^1.7.0",
"mitt": "^3.0.1",
"motion": "^12.34.3",
"nanoid": "^5.1.6",
"svg2pdf.js": "^2.7.0",
"tailwind-merge": "^3.5.0",
"three-mesh-bvh": "~0.9.8",
"zod": "^4.3.6",
"zustand": "^5.0.11",
"three-mesh-bvh": "~0.9.8"
"zustand": "^5.0.11"
},
"devDependencies": {
"@pascal-app/core": "^0.9.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,7 @@ function buildFloorplanEntryGeometry({
return entry
}

function getFloorplanLevelData(
export function getFloorplanLevelData(
type: string,
nodes: Record<string, AnyNode>,
liveOverrides: Map<string, LiveNodeOverrides>,
Expand Down Expand Up @@ -2426,7 +2426,7 @@ function applyPositionLiveTransform(
} as AnyNode
}

function isFloorplanNodeVisible(node: AnyNode, liveOverride?: LiveNodeOverrides): boolean {
export function isFloorplanNodeVisible(node: AnyNode, liveOverride?: LiveNodeOverrides): boolean {
const overrideVisible = liveOverride?.visible
if (typeof overrideVisible === 'boolean') return overrideVisible
return (node as { visible?: boolean }).visible !== false
Expand All @@ -2452,7 +2452,7 @@ function isFloorplanHierarchyVisible(
return true
}

function buildContext(
export function buildContext(
node: AnyNode,
nodes: Record<string, AnyNode>,
viewState: {
Expand Down Expand Up @@ -2560,7 +2560,7 @@ const OVERLAY_KINDS = new Set<FloorplanGeometry['kind']>([
* / translations apply in both passes. Empty groups collapse to `null`
* so the caller can skip emitting an `<g>` when there's nothing to draw.
*/
function splitFloorplanOverlay(g: FloorplanGeometry): {
export function splitFloorplanOverlay(g: FloorplanGeometry): {
base: FloorplanGeometry | null
overlay: FloorplanGeometry | null
} {
Expand Down Expand Up @@ -2726,7 +2726,7 @@ function depsValueEqual(a: unknown, b: unknown): boolean {
* Sort is stable in modern JS engines, so siblings within the same
* bucket keep their DFS order (= scene tree order).
*/
function floorplanLayerRank(type: string): number {
export function floorplanLayerRank(type: string): number {
switch (type) {
case 'zone':
return 0
Expand Down
Loading
Loading