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
194 changes: 0 additions & 194 deletions i18n/literal-baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -739,153 +739,6 @@
"Top Taper",
"Width"
],
"packages/nodes/src/chimney/panel.tsx": [
"Above Ridge",
"Actions",
"Back",
"Bands",
"Cap",
"Chimney",
"Chimney Type",
"Corbeled",
"Corner Bevel",
"Count",
"Cricket",
"Cutout Offset",
"Delete",
"Depth",
"Depth",
"Diameter",
"Diameter",
"Double",
"Extent",
"Extent",
"Flat",
"Flues",
"Footprint",
"Front",
"Height",
"Height",
"Height",
"Height",
"Height",
"Hollow Depth",
"Length",
"None",
"None",
"None",
"None",
"None",
"Offset",
"Overhang",
"Panels",
"Position",
"Rectangular",
"Rotation",
"Round",
"Round",
"Shoulder",
"Side Margin",
"Simple",
"Single",
"Sloped",
"Spacing",
"Square",
"Square",
"Stepped",
"Style",
"Tapered",
"Thickness",
"Thickness",
"Top Offset",
"Wall Thickness",
"Wall Thickness",
"Width"
],
"packages/nodes/src/column/panel.tsx": [
"A-Frame",
"Actions",
"Apply preset...",
"Apply proportion...",
"Bottom Depth",
"Bottom Height",
"Bottom Spread",
"Bottom Step Spread",
"Bottom Tiers",
"Bottom Width",
"Bottom Width",
"Box Frame",
"Brace Depth",
"Brace Width",
"Bulge",
"Bulged",
"Column",
"Connector Plates",
"Delete",
"Depth",
"Dimensions",
"Edge Softness",
"End Width",
"End Width",
"Ends",
"Fork Spread",
"Heavy",
"Height",
"Height and footprint are controlled by the lean-to extension. Rotate or change the support style here; resize from the parent lean-to.",
"Hourglass",
"K Brace",
"Move",
"Neck Width",
"No Bottom",
"No Top",
"Plinth Thickness",
"Portal Frame",
"Preset",
"Rectangular",
"Ring Pairs",
"Ring Spread",
"Ring Thickness",
"Round",
"Round Band Width",
"Rounded Bottom",
"Rounded Top",
"Segment Twist",
"Shaft",
"Shaft Corner Radius",
"Shaft Width",
"Shape",
"Short / Stout",
"Simple Block Bottom",
"Simple Top",
"Single Strut",
"Slender",
"Square",
"Square Plinth Bottom",
"Standard",
"Stepped Bottom",
"Stepped Top",
"Straight",
"Taper",
"Tapered",
"Top Depth",
"Top Height",
"Top Spread",
"Top Step Spread",
"Top Tiers",
"Top Width",
"Top Width",
"Transform",
"Trestle",
"Tripod",
"Twist Segments",
"V Support",
"Vertical",
"Waist",
"Width",
"X Brace",
"Y Support",
"Yaw"
],
"packages/nodes/src/construction-dimension/panel.tsx": [
"Above line",
"Actions",
Expand Down Expand Up @@ -1021,53 +874,6 @@
"R/T rotate",
"Snapped to duct"
],
"packages/nodes/src/elevator/panel.tsx": [
"Access",
"Actions",
"Cab",
"Cab Height",
"Center opening",
"Default Floor",
"Delete",
"Depth",
"Destination",
"Disabled",
"Disabled",
"Door Height",
"Door Time",
"Door Type",
"Door Width",
"Doors",
"Duplicate",
"Dwell",
"Elevator",
"From",
"Glass",
"Glass frame",
"Motion",
"Move",
"Opening Style",
"Position",
"Rotation",
"Segmented panel",
"Service",
"Service",
"Service",
"Shaft",
"Shaft Depth",
"Shaft Style",
"Shaft Width",
"Single left",
"Single right",
"Solid",
"Solid panel",
"Speed",
"Stop {stopOrder}",
"To",
"Wall Thickness",
"Width",
"Yaw"
],
"packages/nodes/src/eyebrow-vent/panel.tsx": [
"Actions",
"Back height",
Expand Down
37 changes: 37 additions & 0 deletions i18n/pseudo-surfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { cabinetPresetById } from '../packages/nodes/src/cabinet/presets'
import {
CabinetModuleNode,
CabinetNode,
ChimneyNode,
ColumnNode,
RoofNode,
RoofSegmentNode,
StairNode,
Expand Down Expand Up @@ -102,6 +104,27 @@ const kitchenPath = async (base: string) =>
// Preset module names are stored scene data, like room names.
const kitchenData = [...furnishedData, 'Base Cabinet', 'Sink Base']

/** The furnished scene plus a column, and a chimney on the roof. */
function structuresScene() {
const graph = furnishedScene() as unknown as {
nodes: Record<string, { children?: string[] }>
}
const chimney = ChimneyNode.parse({
id: 'chimney_audit',
parentId: 'rseg_audit',
roofSegmentId: 'rseg_audit',
position: [1, 0, 1.5],
})
const column = ColumnNode.parse({ id: 'column_audit', parentId: 'level_0', position: [6, 0, 6] })
for (const node of [chimney, column]) graph.nodes[node.id] = node
graph.nodes.rseg_audit?.children?.push(chimney.id)
graph.nodes.level_0?.children?.push(column.id)
return graph as unknown as SceneGraph
}

const structuresPath = async (base: string) =>
`/project/${await auditScene(base, 'structures', structuresScene())}`

const escapeRegExp = (text: string) => text.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')

/** The rail and layer names stay English until the left-panel migration lands. */
Expand Down Expand Up @@ -382,6 +405,20 @@ export const surfaces: PseudoSurface[] = [
},
scope: '[data-node-action-menu], [role="tooltip"]',
},
{
name: 'column-panel',
path: structuresPath,
steps: (page) => openLayer(page, 'Column'),
scope: '[data-editor-inspector]',
data: furnishedData,
},
{
name: 'chimney-panel',
path: structuresPath,
steps: (page) => openLayer(page, 'Chimney'),
scope: '[data-editor-inspector]',
data: furnishedData,
},
{
name: 'icon-rail',
path: apartmentPath,
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/i18n/locales/en-XA/messages.ts

Large diffs are not rendered by default.

Loading
Loading