editor: complete floorplan construction documentation (#531)
* Add roof surface placement support for items Items (e.g. solar panels) can now be placed on sloped roof surfaces. The placement system computes euler rotation from the roof surface normal so items sit flush on the slope instead of going inside. - Add roofStrategy to placement-strategies with enter/move/click/leave - Wire roof:enter/move/click/leave events in the placement coordinator - Add calculateRoofRotation in placement-math using surface normals - Support full 3D cursor rotation for sloped surfaces - Items on roofs are parented to the level with world-space rotation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fixed conflict * feat(floorplan): add construction dimension strings * feat(floorplan): coordinate opening dimensions * feat(floorplan): add opening documentation * feat(floorplan): add construction dimensions and notes * feat(floorplan): add interior dimensions and curved note leaders * feat(floorplan): improve construction dimensions and document plan * feat(floorplan): harden construction document output * feat(floorplan): add annotation collision diagnostics * feat(floorplan): size export annotations in paper space * feat(floorplan): automatically separate overlapping labels * fix(floorplan): resolve dense label overlaps * fix(floorplan): remove stale collision warning overlays * fix(floorplan): treat mark pills as collision obstacles * feat(floorplan): place short dimension values outside * fix(floorplan): preserve dimension string order * fix(floorplan): avoid architectural geometry in label layout * feat(floorplan): add dimension side fallback leaders * docs(floorplan): update chapter 17 implementation status * fix(floorplan): dimension subdivided interior walls * feat: add associative floor plan dimensions * feat: add continuous construction dimension strings * feat: add structural floor plan grids * feat: coordinate columns with structural grids Snap column placement and movement to structural axes and intersections, derive associative grid references, and preserve floor-plan rotation by allowing secondary-button pointer moves through the grid drafting layer. * feat: add architectural room documentation Add room-role metadata, editable documentation fields, centered room labels, and persisted live/PDF visibility while preserving generic zone behavior. * feat: generate architectural room schedules Add registry-driven room schedule rows with unit-aware areas and heights, natural room ordering, enclosure resolution, and document-quality warnings. * feat: add reliable room clear dimensions Derive unit-aware clear dimensions from proven modeled inside wall faces for straight rectangular rooms, including rotated and split-wall enclosures, while suppressing unproven datums. * feat: add architectural stair documentation Add level-aware UP/DN graphics, derived flight and rail notes, plan break and overhead conventions, linked destination-level projection, and persisted live/PDF visibility. * feat: add typed specialty construction notes Add schema-validated specialty payloads, standardized plan notation, contract-scope metadata, configurable overhead outlines, and editor authoring controls. * feat: add curved and circular dimensions Add associative radius, diameter, center, chord, arc-length, angular, and coordinate modes with unit-aware notation, repeated-feature labels, 2D authoring, and document controls. * feat: coordinate floor plan drawing types Add persistent floor, foundation, reflected-ceiling, roof, and site plan views with per-dimension show, omit, reference, and foundation-controller behavior across live and PDF output. * feat: add associative curved wall dimensions Bind radius, center, chord, arc-length, and angular construction dimensions directly to curved wall geometry so annotations update when the host curve changes. * fix: render automatic curved wall dimensions The wall floor-plan builder explicitly skipped curved walls, leaving the associative authoring workflow as the only dimension path. Render a concentric arc-length dimension automatically and keep it governed by automatic-dimension visibility. * fix: use radius callout for curved walls Replace the automatic arc-length annotation with the source-standard radius method: computed center mark, radial leader, curve arrow, and R value. Keep adjacent linear strings responsible for locating the curve tangencies and depth. * Implement construction dimension string editing * Add construction dimension standards controls * Apply drawing standards to automatic dimensions * Add floorplan overhead and reference visibility controls * Add view-specific dimension segment suppression * Add persistent drawing sheet model * Plot floorplan exports at fixed scale * Apply paper-space annotation profiles * Compose floorplan PDF sheets * Support sheet paper sizes and preflight * Persist pinned annotation layout overrides * Expand annotation collision obstacles * Add floorplan annotation preflight surface * Add reusable drawing sheet general notes * Add drawing sheet keyed note instances * Add drawing sheet document markers * Expand construction note leader terminators * Add wall assembly layer model * Resolve wall assembly datum references * Add wall assembly floorplan graphics * Add opening documentation dimension policies * Add finish-face room clear dimensions * Extend room clear dimensions to rectilinear rooms * Add construction module advisories * Add clearance advisory profiles * Add dimension completeness audit * Expand dimension completeness audit * Include preflight issues in completeness audit * feat: complete floorplan construction documentation * refactor: remove construction note node * feat: refine floorplan documentation and unit display * fix(editor): improve floorplan PDF dimensions * fix(floorplan): refresh annotation collision layout * fix(floorplan): keep annotations clear and restore registry boundaries * feat(floorplan): refine construction dimension references * fix(floorplan): align documentation tools with architecture --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
2adb50a340
commit
77442861d9
@@ -0,0 +1,513 @@
|
||||
import {
|
||||
type AnyNode,
|
||||
type CabinetModuleNode,
|
||||
type CabinetNode,
|
||||
type DoorNode,
|
||||
type ItemNode,
|
||||
resolveStairTotalRise,
|
||||
type StairNode,
|
||||
type StairSegmentNode,
|
||||
type ZoneNode,
|
||||
} from '@pascal-app/core'
|
||||
import { formatConstructionLength } from './construction-length'
|
||||
|
||||
export type ClearanceAdvisoryCategory =
|
||||
| 'circulation'
|
||||
| 'entry'
|
||||
| 'door-approach'
|
||||
| 'fixture'
|
||||
| 'cabinet'
|
||||
| 'appliance'
|
||||
| 'closet'
|
||||
| 'stair'
|
||||
|
||||
export type ClearanceAdvisorySeverity = 'info' | 'warning'
|
||||
|
||||
export type ClearanceRuleSource = {
|
||||
title: string
|
||||
edition: string
|
||||
section: string
|
||||
url?: string
|
||||
note?: string
|
||||
}
|
||||
|
||||
export type ClearanceRule = {
|
||||
id: string
|
||||
category: ClearanceAdvisoryCategory
|
||||
label: string
|
||||
measurement:
|
||||
| 'clear-width'
|
||||
| 'clear-depth'
|
||||
| 'clear-floor-width'
|
||||
| 'clear-floor-depth'
|
||||
| 'front-clearance'
|
||||
| 'stair-width'
|
||||
| 'tread-depth'
|
||||
| 'riser-height'
|
||||
minValue: number
|
||||
source: ClearanceRuleSource
|
||||
}
|
||||
|
||||
export type ClearanceProfile = {
|
||||
id: string
|
||||
label: string
|
||||
jurisdiction?: string
|
||||
enabled: boolean
|
||||
rules: readonly ClearanceRule[]
|
||||
}
|
||||
|
||||
export type ClearanceEvidence = Readonly<
|
||||
Record<string, Partial<Record<ClearanceRule['id'], number>>>
|
||||
>
|
||||
|
||||
export type BuildClearanceAdvisoriesOptions = {
|
||||
profiles?: readonly ClearanceProfile[]
|
||||
includeDisabled?: boolean
|
||||
evidence?: ClearanceEvidence
|
||||
}
|
||||
|
||||
export type ClearanceAdvisory = {
|
||||
id: string
|
||||
nodeId: string
|
||||
nodeType: string
|
||||
profileId: string
|
||||
profileLabel: string
|
||||
category: ClearanceAdvisoryCategory
|
||||
ruleId: string
|
||||
label: string
|
||||
measured: number | null
|
||||
required: number
|
||||
severity: ClearanceAdvisorySeverity
|
||||
source: ClearanceRuleSource
|
||||
message: string
|
||||
}
|
||||
|
||||
type ClearanceTarget = {
|
||||
nodeId: string
|
||||
nodeType: string
|
||||
category: ClearanceAdvisoryCategory
|
||||
measurements: Partial<Record<ClearanceRule['measurement'], number>>
|
||||
}
|
||||
|
||||
const ADA_2010: Pick<ClearanceRuleSource, 'title' | 'edition' | 'url'> = {
|
||||
title: '2010 ADA Standards for Accessible Design',
|
||||
edition: '2010',
|
||||
url: 'https://www.access-board.gov/ada/',
|
||||
}
|
||||
|
||||
const OFFICE_STANDARD: Pick<ClearanceRuleSource, 'title' | 'edition'> = {
|
||||
title: 'Pascal construction-document advisory profile',
|
||||
edition: '2026-07-21',
|
||||
}
|
||||
|
||||
export const DEFAULT_CLEARANCE_PROFILES: readonly ClearanceProfile[] = [
|
||||
{
|
||||
id: 'us-ada-2010-advisory',
|
||||
label: 'U.S. ADA 2010 advisory checks',
|
||||
jurisdiction: 'US',
|
||||
enabled: false,
|
||||
rules: [
|
||||
{
|
||||
id: 'ada-accessible-route-clear-width',
|
||||
category: 'circulation',
|
||||
label: 'accessible route clear width',
|
||||
measurement: 'clear-width',
|
||||
minValue: 36 * 0.0254,
|
||||
source: {
|
||||
...ADA_2010,
|
||||
section: '403.5.1',
|
||||
note: 'Accessible routes generally require 36 inches minimum clear width.',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'ada-entry-clear-width',
|
||||
category: 'entry',
|
||||
label: 'entry clear width',
|
||||
measurement: 'clear-width',
|
||||
minValue: 36 * 0.0254,
|
||||
source: {
|
||||
...ADA_2010,
|
||||
section: '403.5.1',
|
||||
note: 'Entries serving an accessible route are checked against the route clear width.',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'ada-door-clear-opening',
|
||||
category: 'door-approach',
|
||||
label: 'door clear opening',
|
||||
measurement: 'clear-width',
|
||||
minValue: 32 * 0.0254,
|
||||
source: {
|
||||
...ADA_2010,
|
||||
section: '404.2.3',
|
||||
note: 'Door openings on accessible routes require 32 inches minimum clear width.',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'ada-fixture-clear-floor-width',
|
||||
category: 'fixture',
|
||||
label: 'fixture clear floor space width',
|
||||
measurement: 'clear-floor-width',
|
||||
minValue: 30 * 0.0254,
|
||||
source: {
|
||||
...ADA_2010,
|
||||
section: '305.3',
|
||||
note: 'Clear floor or ground space is 30 inches minimum by 48 inches minimum.',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'ada-fixture-clear-floor-depth',
|
||||
category: 'fixture',
|
||||
label: 'fixture clear floor space depth',
|
||||
measurement: 'clear-floor-depth',
|
||||
minValue: 48 * 0.0254,
|
||||
source: {
|
||||
...ADA_2010,
|
||||
section: '305.3',
|
||||
note: 'Clear floor or ground space is 30 inches minimum by 48 inches minimum.',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
id: 'office-residential-advisory',
|
||||
label: 'Office residential advisory checks',
|
||||
enabled: false,
|
||||
rules: [
|
||||
{
|
||||
id: 'office-cabinet-front-clearance',
|
||||
category: 'cabinet',
|
||||
label: 'cabinet front working clearance',
|
||||
measurement: 'front-clearance',
|
||||
minValue: 0.9,
|
||||
source: {
|
||||
...OFFICE_STANDARD,
|
||||
section: 'Kitchen working clearances',
|
||||
note: 'Office drafting convention for cabinet and drawer operation clearance.',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'office-appliance-front-clearance',
|
||||
category: 'appliance',
|
||||
label: 'appliance front working clearance',
|
||||
measurement: 'front-clearance',
|
||||
minValue: 0.9,
|
||||
source: {
|
||||
...OFFICE_STANDARD,
|
||||
section: 'Kitchen appliance clearances',
|
||||
note: 'Office drafting convention for appliance door and working clearance.',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'office-closet-depth',
|
||||
category: 'closet',
|
||||
label: 'closet clear depth',
|
||||
measurement: 'clear-depth',
|
||||
minValue: 0.6,
|
||||
source: {
|
||||
...OFFICE_STANDARD,
|
||||
section: 'Storage clearances',
|
||||
note: 'Office drafting convention for reach-in closet depth.',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'office-stair-width',
|
||||
category: 'stair',
|
||||
label: 'stair clear width',
|
||||
measurement: 'stair-width',
|
||||
minValue: 0.9,
|
||||
source: {
|
||||
...OFFICE_STANDARD,
|
||||
section: 'Residential stair geometry',
|
||||
note: 'Office drafting convention; verify against local stair code before permit use.',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'office-stair-tread-depth',
|
||||
category: 'stair',
|
||||
label: 'stair tread depth',
|
||||
measurement: 'tread-depth',
|
||||
minValue: 0.25,
|
||||
source: {
|
||||
...OFFICE_STANDARD,
|
||||
section: 'Residential stair geometry',
|
||||
note: 'Office drafting convention; verify against local stair code before permit use.',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'office-stair-riser-height',
|
||||
category: 'stair',
|
||||
label: 'stair riser height',
|
||||
measurement: 'riser-height',
|
||||
minValue: -0.2,
|
||||
source: {
|
||||
...OFFICE_STANDARD,
|
||||
section: 'Residential stair geometry',
|
||||
note: 'Negative minValue means measured riser height must be less than or equal to the absolute value.',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
] as const
|
||||
|
||||
export function buildClearanceAdvisories(
|
||||
nodes: Readonly<Record<string, AnyNode>>,
|
||||
options: BuildClearanceAdvisoriesOptions = {},
|
||||
): ClearanceAdvisory[] {
|
||||
const profiles = (options.profiles ?? DEFAULT_CLEARANCE_PROFILES).filter(
|
||||
(profile) => options.includeDisabled === true || profile.enabled,
|
||||
)
|
||||
if (profiles.length === 0) return []
|
||||
|
||||
const targets = Object.values(nodes).flatMap((node) => clearanceTargets(node, nodes))
|
||||
const advisories: ClearanceAdvisory[] = []
|
||||
|
||||
for (const target of targets) {
|
||||
for (const profile of profiles) {
|
||||
for (const rule of profile.rules) {
|
||||
if (rule.category !== target.category) continue
|
||||
const measured =
|
||||
target.measurements[rule.measurement] ?? options.evidence?.[target.nodeId]?.[rule.id]
|
||||
if (measured === undefined) {
|
||||
advisories.push(clearanceAdvisory({ target, profile, rule, measured: null }))
|
||||
continue
|
||||
}
|
||||
if (violatesClearanceRule(measured, rule)) {
|
||||
advisories.push(clearanceAdvisory({ target, profile, rule, measured }))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return advisories.sort((left, right) => left.id.localeCompare(right.id))
|
||||
}
|
||||
|
||||
function clearanceTargets(
|
||||
node: AnyNode,
|
||||
nodes: Readonly<Record<string, AnyNode>>,
|
||||
): ClearanceTarget[] {
|
||||
if (node.type === 'zone') return zoneTargets(node)
|
||||
if (node.type === 'door') return doorTargets(node)
|
||||
if (node.type === 'item') return itemTargets(node)
|
||||
if (node.type === 'cabinet' || node.type === 'cabinet-module') return cabinetTargets(node)
|
||||
if (node.type === 'stair') return stairTargets(node, nodes)
|
||||
if (node.type === 'stair-segment') return stairSegmentTargets(node)
|
||||
return []
|
||||
}
|
||||
|
||||
function zoneTargets(zone: ZoneNode): ClearanceTarget[] {
|
||||
const role = normalizedText([zone.name, zone.occupancy, String(zone.metadata ?? '')])
|
||||
const dimensions = zoneClearDimensions(zone)
|
||||
const targets: ClearanceTarget[] = []
|
||||
|
||||
if (containsAny(role, ['hall', 'hallway', 'corridor', 'passage', 'circulation'])) {
|
||||
targets.push({
|
||||
nodeId: zone.id,
|
||||
nodeType: zone.type,
|
||||
category: 'circulation',
|
||||
measurements: { 'clear-width': dimensions.minSpan },
|
||||
})
|
||||
}
|
||||
|
||||
if (containsAny(role, ['entry', 'entrance', 'vestibule', 'foyer'])) {
|
||||
targets.push({
|
||||
nodeId: zone.id,
|
||||
nodeType: zone.type,
|
||||
category: 'entry',
|
||||
measurements: { 'clear-width': dimensions.minSpan },
|
||||
})
|
||||
}
|
||||
|
||||
if (containsAny(role, ['closet', 'wardrobe'])) {
|
||||
targets.push({
|
||||
nodeId: zone.id,
|
||||
nodeType: zone.type,
|
||||
category: 'closet',
|
||||
measurements: { 'clear-depth': dimensions.minSpan },
|
||||
})
|
||||
}
|
||||
|
||||
return targets
|
||||
}
|
||||
|
||||
function doorTargets(door: DoorNode): ClearanceTarget[] {
|
||||
return [
|
||||
{
|
||||
nodeId: door.id,
|
||||
nodeType: door.type,
|
||||
category: 'door-approach',
|
||||
measurements: { 'clear-width': door.width },
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
function itemTargets(item: ItemNode): ClearanceTarget[] {
|
||||
const text = normalizedText([
|
||||
item.asset.name,
|
||||
item.asset.category,
|
||||
...(item.asset.tags ?? []),
|
||||
...(item.asset.functionTags ?? []),
|
||||
])
|
||||
const targets: ClearanceTarget[] = []
|
||||
|
||||
if (containsAny(text, ['toilet', 'lavatory', 'sink', 'fixture', 'tub', 'shower', 'wc'])) {
|
||||
targets.push({
|
||||
nodeId: item.id,
|
||||
nodeType: item.type,
|
||||
category: 'fixture',
|
||||
measurements: {},
|
||||
})
|
||||
}
|
||||
|
||||
if (containsAny(text, ['appliance', 'fridge', 'refrigerator', 'oven', 'range', 'dishwasher'])) {
|
||||
targets.push({
|
||||
nodeId: item.id,
|
||||
nodeType: item.type,
|
||||
category: 'appliance',
|
||||
measurements: {},
|
||||
})
|
||||
}
|
||||
|
||||
return targets
|
||||
}
|
||||
|
||||
function cabinetTargets(cabinet: CabinetNode | CabinetModuleNode): ClearanceTarget[] {
|
||||
const targets: ClearanceTarget[] = [
|
||||
{
|
||||
nodeId: cabinet.id,
|
||||
nodeType: cabinet.type,
|
||||
category: 'cabinet',
|
||||
measurements: {},
|
||||
},
|
||||
]
|
||||
|
||||
if ((cabinet.stack ?? []).some((compartment) => isApplianceCompartment(compartment.type))) {
|
||||
targets.push({
|
||||
nodeId: cabinet.id,
|
||||
nodeType: cabinet.type,
|
||||
category: 'appliance',
|
||||
measurements: {},
|
||||
})
|
||||
}
|
||||
|
||||
if ((cabinet.stack ?? []).some((compartment) => compartment.type === 'sink')) {
|
||||
targets.push({
|
||||
nodeId: cabinet.id,
|
||||
nodeType: cabinet.type,
|
||||
category: 'fixture',
|
||||
measurements: {},
|
||||
})
|
||||
}
|
||||
|
||||
return targets
|
||||
}
|
||||
|
||||
function stairTargets(
|
||||
stair: StairNode,
|
||||
nodes: Readonly<Record<string, AnyNode>>,
|
||||
): ClearanceTarget[] {
|
||||
const measurements: ClearanceTarget['measurements'] = { 'stair-width': stair.width }
|
||||
const totalRise = resolveStairTotalRise(stair, nodes as Record<string, AnyNode>)
|
||||
if (stair.stepCount > 0 && totalRise > 0) {
|
||||
measurements['riser-height'] = totalRise / stair.stepCount
|
||||
}
|
||||
|
||||
return [
|
||||
{
|
||||
nodeId: stair.id,
|
||||
nodeType: stair.type,
|
||||
category: 'stair',
|
||||
measurements,
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
function stairSegmentTargets(segment: StairSegmentNode): ClearanceTarget[] {
|
||||
const measurements: ClearanceTarget['measurements'] = { 'stair-width': segment.width }
|
||||
if (segment.segmentType === 'stair' && segment.stepCount > 0) {
|
||||
measurements['tread-depth'] = segment.length / segment.stepCount
|
||||
if (segment.height > 0) measurements['riser-height'] = segment.height / segment.stepCount
|
||||
}
|
||||
|
||||
return [
|
||||
{
|
||||
nodeId: segment.id,
|
||||
nodeType: segment.type,
|
||||
category: 'stair',
|
||||
measurements,
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
function clearanceAdvisory(args: {
|
||||
target: ClearanceTarget
|
||||
profile: ClearanceProfile
|
||||
rule: ClearanceRule
|
||||
measured: number | null
|
||||
}): ClearanceAdvisory {
|
||||
const { target, profile, rule, measured } = args
|
||||
const measuredLabel =
|
||||
measured === null ? 'not verified' : formatConstructionLength(measured, 'metric')
|
||||
const requiredLabel = formatConstructionLength(Math.abs(rule.minValue), 'metric')
|
||||
const comparator = rule.minValue < 0 ? 'at most' : 'at least'
|
||||
|
||||
return {
|
||||
id: ['clearance', profile.id, target.nodeId, rule.id].join(':'),
|
||||
nodeId: target.nodeId,
|
||||
nodeType: target.nodeType,
|
||||
profileId: profile.id,
|
||||
profileLabel: profile.label,
|
||||
category: rule.category,
|
||||
ruleId: rule.id,
|
||||
label: rule.label,
|
||||
measured,
|
||||
required: Math.abs(rule.minValue),
|
||||
severity: measured === null ? 'info' : 'warning',
|
||||
source: rule.source,
|
||||
message:
|
||||
measured === null
|
||||
? `${titleCase(target.nodeType)} ${target.nodeId} requires ${rule.label} verification (${comparator} ${requiredLabel}) per ${rule.source.title} ${rule.source.edition} ${rule.source.section}.`
|
||||
: `${titleCase(target.nodeType)} ${target.nodeId} ${rule.label} ${measuredLabel} is below ${requiredLabel} per ${rule.source.title} ${rule.source.edition} ${rule.source.section}.`,
|
||||
}
|
||||
}
|
||||
|
||||
function violatesClearanceRule(measured: number, rule: ClearanceRule): boolean {
|
||||
if (!Number.isFinite(measured)) return true
|
||||
if (rule.minValue < 0) return measured > Math.abs(rule.minValue)
|
||||
return measured < rule.minValue
|
||||
}
|
||||
|
||||
function zoneClearDimensions(zone: ZoneNode): { minSpan: number } {
|
||||
const xs = zone.polygon.map((point) => point[0])
|
||||
const zs = zone.polygon.map((point) => point[1])
|
||||
if (xs.length === 0 || zs.length === 0) return { minSpan: 0 }
|
||||
return {
|
||||
minSpan: Math.min(Math.max(...xs) - Math.min(...xs), Math.max(...zs) - Math.min(...zs)),
|
||||
}
|
||||
}
|
||||
|
||||
function normalizedText(parts: readonly string[]): string {
|
||||
return parts.join(' ').toLowerCase()
|
||||
}
|
||||
|
||||
function containsAny(text: string, needles: readonly string[]): boolean {
|
||||
return needles.some((needle) => text.includes(needle))
|
||||
}
|
||||
|
||||
function isApplianceCompartment(type: string): boolean {
|
||||
return [
|
||||
'oven',
|
||||
'microwave',
|
||||
'dishwasher',
|
||||
'cooktop-gas',
|
||||
'cooktop-induction',
|
||||
'fridge-single',
|
||||
'fridge-double',
|
||||
'fridge-top-freezer',
|
||||
'fridge-bottom-freezer',
|
||||
].includes(type)
|
||||
}
|
||||
|
||||
function titleCase(value: string): string {
|
||||
return value.charAt(0).toUpperCase() + value.slice(1)
|
||||
}
|
||||
Reference in New Issue
Block a user