Site plans with roads, water, ground and maps. More detail for walls, doors, windows, roofs and stairs. Blocks with size rules, a faster plan editor, and richer drawing sheets. Every plan turn is now counter-clockwise, which breaks callers that send turns. Read the first list before you upgrade.
Check these when you upgrade
- Breaking: every plan turn is counter-clockwise, seen from above. A column’s and a stair’s
rotation, a roof’s and a context building’sridgeDirection, a room label’s, a reference marker’s, a viewport’s and a sheet text’srotationDegturned clockwise before. The building model is now version 6, the project version 4 and the paper document version 2. An older file is moved when you open it, with each turn negated, so nothing moves on screen. A host that writes these fields itself writes the new versions with counter-clockwise turns;migratePlanRotationsmoves a model for you (Coordinates and units). - Breaking: negate the yaws and placement turns that you send. The
yawDegoftransform-wall,transform-slab,transform-space,transform-roof,transform-stairand of the free-opening commands turns counter-clockwise at every model version, and so does therotationofstartPlacementandplacementSnap. A command has no version, so Floorkit cannot tell an old value from a new one. Code that negated a placement turn to match a saved block stops negating it. - Install
@opengeometry/catalogwith Floorkit. It is a new peer package: Floorkit reads and builds each block with its reader. It is not on npm and installs from its private GitHub repository, so the install needs read access (Installation). - A wall reshape keeps doors where they are.
move-wall-point,move-network-wall-endandtranslate-network-wallnow keep each opening at its place in the world. Sendopenings: 'keep-station'for the old rule (Move and reshape). - A batch is judged on its end state. The model between two commands of a
batchmay be invalid; the model after the last command gets every check. A batch that failed at a middle command can land now (Editing and history). - Refusals name their own fault. A bad window division, light, door lite, pull bar or track panel gives a specific code such as
divisions-not-ascending, in place ofbad-divisions,bad-lights,bad-leafLites,bad-pullBarandbad-slidingPanels. Update code that matches the old codes. - A rail on a stair stands its height above the nosings. It ran one riser lower. Saved files with a hosted rail draw it one riser higher.
- A stair with no
structureDepthstands on a waist, not on a solid mass down to the floor. - Joined roofs end at the walls of the higher roof. A roof with
trimToloses the part and the overhang that ran inside the higher roof. An upper plan draws a lower roof that its cut passes through as seen;roofsBelowAcrossCut: 'cut'keeps the old drawing (Join two roofs). - Eaves drop by their own overhang. When every eave edge has the same overhang of its own, the eaves sit that overhang below the plate, not the roof’s
overhang. - Floor area leaves out more.
storeyFloorAreas, and the GFA, FAR and coverage of a site, no longer count a deck outside the walls or a demolished slab or wall. - Close level heads stack on sections and elevations, with a leader from the true level.
settings.levelHeadStacking: 'off'keeps the old placement (Cut a section). - The presets
graphite,ink-sketchandnapkindraw a layered wall in one fill. A wallfillorhatchof a paper style now reaches every layer of a wall. - Type changes.
Annotationhas a new member with nobuildingId(a scheduleof: 'sheets').HatchSpecis a union oflines,studandbatt. IngetPhysicalParts()a window sash has the rolesashand the bottom rail of a door leaf the rolerail. The parcel line of a plan hasogType: 'SITE_BOUNDARY'.
Added
Site, maps and zoning- Roads, waters and context buildings. A site holds
roadsandwaters, each as a centreline with a width or as an outline, with their own commands (add-site-road,add-site-water,add-context-buildingand their replace and remove forms). Site and block plans draw them, name them and can fill them (siteFills); the 3D build shows them. - Ground and contours.
site.surroundingGroundis the ground around the plot,site.existingGroundPointsthe ground before the works, andcontoursdraws contour lines on a site or block plan.siteGroundMesh,siteContoursandsurroundingGroundAtread the ground. - Maps under a site plan. A project keeps GeoJSON map layers and PNG or JPEG map images on any projected metre grid. A layer names its features (
labels) and fills them by a property (style) (Location and block plans). - Block plans for a planning application. A block plan draws each building as an outline at 1:1000 and smaller, and takes
detailLines,blocks: 'draw',slopeShading,wallsBelow,contextBuildings: 'omit',roadsandcontextNames. The parcel draws in red and owned land in blue. - Zoning and areas for a walled building.
evaluateBuildingZoningchecks the rules on a building drawn with walls,buildingFootprintmeasures it to the outer wall faces, and eachstoreyFloorAreasresult names the slabs it counted (Draw a wall).
- A wall starts above or below its storey (
baseOffset), runs down to the ground (baseToGround), stands on aplinthof another material with gaps, and carriesbandsof another material. - A wall layer closes beside openings and at free ends (
closureon a layer of a wall type). - Phases at a join.
joinsAcrossPhases: falsekeeps a demolished and a new wall apart;demolishedOpenings: 'closed'draws a demolished wall whole. - Curtain walls take a head band under a roof (
head), a bar along a raked head (headBar) and plans without mullions.curtainWallRunsgives the stretch the grid is laid on. - Read walls without the kernel.
resolveWallJoinsnames every join of a storey andsavedWallTopgives the top of a saved wall.
- The frame has a place across the wall.
framePlacesets the frame depth, the face it stands at and its reveal. - Door leaves with detail. Glass lites (
leafLites), a pull bar, planked and ribbed leaves, lever and centre handles, a threshold, a bottom rail and a frame head. - Sliding doors with panels in tracks.
slidingPanelsmakes 2 to 8 panels, fixed or sliding, and a sliding door takes aleafStyle. - Windows. Hinge blocks, mullions joined to the frame, a foot that runs through, and one transom list for each column.
- Bay windows and dormers. A bay continues into the bay above, has a band and a base to the ground. A dormer hosts doors and takes its own material, fascia, gutter and downpipes.
- An overhang for each edge.
set-roof-edge-overhangsets one edge;roofEdgeKindsnames each edge as eave, gable or half-hip. - Roof detail. A square eave cut (
eaveCut), a ridge tile (trim.ridge), materials for trim and edges, gutters on chosen edges, swan-neck downpipes, and a flat roof that falls to one edge (fall). - Roofs that meet.
join-roofstrims one roof against another andcutByremoves the part inside another roof. A roof inside the rooms above it warnsroof-inside-storey. - Chimneys and soil stacks. A storey takes
chimneyswith a stack, breast, pots and cap, andsoilStacks(Add a chimney, Add a soil stack).
- Stair layout. A stair can end with a riser (
endWithRiser), split its flights unevenly (risersBeforeTurnon L and U stairs), set the gap between U flights (flightGap) and be built of boards (treadThickness). - Check a stair against a rule.
rulesholds limits for rise, going and pitch;STAIR_RULE_SETS.ukPrivateis the UK private stair. A breach warnsstair-rule-breachandstairRuleBreachesreturns it as data (Add a stair). - A slab hole fitted to its stair.
fit-stair-slab-holesizes the hole from the stair outline and a margin. - Glass railings. Pane width, gaps round the panes, clamps, base plates and no top rail.
- A block says the sizes it offers.
sizingin a definition gives a range, a step or a list;sizeLimitsandofferedSizeread it, and an edit to another size is refused. - Size grips in the plan and in 3D. A drag takes the nearest offered size as one undo step.
- Read a placed block as a plain definition with
instanceDefinition.
- Move a whole building with
move-building, with an optional turn. Its saved views go with it. - Move a set of walls with
translate-walls, and add a corner withinsert-wall-point(Move and reshape). - Check a model for clashes on demand with
checkBuildingClashes. - Read the model in one state.
modelInState(model, 'complete' | 'existing')returns the building as the drawings of that state show it (Existing and proposed). replaceFieldsreaches more. A roof’strim, a stair’s layout fields and a railing’s panel fields change in place.
- Type exact points. Wall, outline and segment drafts read a typed start, length and angle. A point typed off the view brings the view to it.
- Select several elements with Shift-click or a box, and read them with
selection()andonSelectionChange. - Pick what you mean. A press picks in drafting order, Tab steps through the elements under the pointer, and one hover mark shows what a press would pick.
- Draft with tracking. A draft locks on wall ends and edges, snaps to grids and working planes, and takes polar steps (
setPolarIncrements). - One length format.
setLengthFormatsets the unit of every label, readout and typed length. - An empty storey opens in the plan editor and draws empty.
- Hide elements in one view with
hiddenElements, and choose the buildings of a section or an elevation withbuildingIds. - Plan views. Stair symbols (
stairSymbol: break line, flight above the cut, walkline, words), morelinesAboveCutkeys, roofs below the cut with their material pattern, low walls drawn as cut (lowWallsAsCut), headroom lines, opening symbols and tag shapes, andunfittedOpenings: 'omit'. - Room labels. Templates for area and ceiling height, a smallest printed height, clearance from lines, and a turn for a label placed by hand.
- Sections and elevations. Ground line options, room outlines, opening detail (
openingDetail), level heads on or off and a plain break line. - Roof plans. No roof pattern, ridges as bands, rooflight tags, the site boundary and context, and section markers.
- Material colours on seen faces.
surfaceBackgroundandsurfacePatternColorcolour a material in elevations and sections.
- Your own font.
registerDrawingFontembeds a TrueType family in the PDF and the SVG. - Finer paper styles. Pens for each cut material (
materials), line role (roles), named part (parts), edge class and phase;hatch: 'material'; the hatchesstudandbatt; a paper background under text; line opacity. - Scale bar and north arrow tools.
renderer.setTool('scaleBar')andsetTool('northArrow')place the mark with one click;markPlacementsays where one can go (Compose a sheet). - Fit a plan on its building. A viewport takes
centerOn: 'building', andviewportExtentgives the box a viewport is fitted on. - A drawing list and a legend. A schedule
of: 'sheets'lists every sheet; alegendannotation draws a key from the paper style (Tables and schedules). - Titles and marks. A view title has a size and six positions, a title-block field wraps and shrinks inside its box, a leader ends in an arrow, a dot or nothing, and the north arrow has more forms.
- Images in a drawing.
DrawingImageplaces a PNG or JPEG in a drawing.
- Line work.
BuildingSession.setOutlineWidthsets the width of 3D lines, an outlined body also draws its silhouette, andrefreshDisplaydraws again the look that a host gave live bodies.
Fixed
- Room label lines printed at the wrong spacing at sheet scales other than 1:100.
- A PDF fill after a text printed in the colour of the text.
- Touching fills of one colour showed a light seam in SVG, PDF and the sheet on screen.
- A roof outline a few nanometres off the grid failed to build, or drew stray lines in an elevation.
- A wall drawn inside the walls it joins stopped the plan. It now builds no body and warns
wall-absorbed. - Walls whose outer ring meets itself stopped a site plan that prints areas.
- Outside steps up to their own storey’s floor warned
stair-misses-storey. - A stair that only touches the edge of its slab hole was reported as a clash.
- Fan, curved and spiral stairs drew as straight pieces in plan. They draw true arcs.
- A round gutter, soil stack or chimney pot removed the surface pattern of the face behind it.
- Plans and sheets held lines of zero length.
- Title-block text did not take the typography of the sheet style.
- A dormer exported to IFC without its windows.
- A roof material that is not known stopped a file from opening. It warns
unknown-material, as on a wall. - A void refused
phaseinadd-hosted-openingandreplace-hosted-opening. - A dimension whose wall is gone gave no warning.
- A drag of the middle grip of a mass, room or flat roof edge saved a row of corners. It saves one true arc.
Floorkit runs on OpenGeometry 3.0. Curves across the model, one fit rule for doors, windows and holes in walls, drawings that read like construction documents, and in-place edits for each element. This release breaks callers of 1.2.0. Read the first list before you upgrade.
Check these when you upgrade
- Breaking: Floorkit runs on OpenGeometry 3.0. Install
opengeometry@^3.0.0.setupOpenGeometrytakes the address of the WebAssembly file,{ wasmURL }or{ wasmModule }, then the options{ workerURL, tessellation }. Servetessellation-worker.jswithopengeometry_bg.wasmand pass its address, or pass{ tessellation: 'inline' }. Vite apps addoptimizeDeps: { exclude: ['opengeometry'] }. Code of your own that calls the kernel moves to the 3.0 API. See Installation. - Breaking:
addElementToWorldGraphandaddOpenElementToWorldGraphare removed, with their typesWorldGraphElement,WorldGraphNodePlacement,ElementWorldGraphReportandOpenElementWorldGraphReport. OpenGeometry 3.0 has noWorldGraph. Build the kernel hierarchy withSystemAssembly(addChildor theparentoption) and export it withOpenGeometry.exportStep({ nodes }). - Breaking: a model under a moved group does not follow it. A model built with
buildFromBuildingModel(model, parent), or asession.rootadded to a group, keeps its kernel world position. Keep that parent at identity. - Breaking: the primitive classes are plain Three.js objects.
LinePrimitive,PolylinePrimitiveandArcPrimitiveextend a Three.jsLine;PolygonPrimitiveandRectanglePrimitiveextend a flat Three.jsMesh. They keep their names,ogid,propertySetand their own methods. The members inherited from the 2.0 kernel are gone: change thepropertySetwithsetOPConfig. - Breaking: the
baseOffsetof a pitched roof is the wall-plate height at its outline. The eave isoverhang × tan(pitch)lower, so a pitched roof sits on its walls. A pitched roof of 1.2.0 that setbaseOffsetto its eave now sits higher: lower itsbaseOffsetby that amount. FLAT roofs do not change. See Add a roof. - Breaking:
LineDimensionis retired. It is deprecated and warns once. Use a storeydimensionannotation (Dimensions on a storey) or a sheetmeasure(Compose a sheet).createDimensionthrows forarea,diameter,volumeandcustom. - Breaking: a field that Floorkit does not know is refused.
validateBuildingModelgivesunknown-fieldat the path of the key, on the model, the site, a building, a storey, a mass and every element, in a file of every version. 1.2.0 kept such a field, such aspanelon a railing orrampson a storey, and built nothing from it. Keep data of your own in the model’smetadataor thepropertySetsof an element. A thickness, height, width, depth or radius above 100 000 m, or abaseOffsetbeyond ±10 000 m, is refused before the build. See validateBuildingModel. - Breaking: stricter checks, with new refusal codes. A size that cannot build is refused with its path and value. The paper document is checked when a project opens and on
apply: a point must be{ x, y }. Add these codes to the error handling of your app:opening-does-not-fit,wall-not-buildable,edit-not-available,bad-asset-definition,bad-void-profile,bad-door-quadrant,bad-swing-angle,bad-usage,bad-scale,duplicate-label,zero-length-grid,opening-above-roof,opening-overruns-height,unknown-annotation-kind,unknown-viewportandinvalid-annotation. A file with adoorQuadrantoutside 1 to 4 or aswingAngleDegreesoutside 0 to 180 no longer opens. - Breaking: a door that does not fit stays at its saved offset. 1.2.0 drew it at the nearest place that fits. Now the build draws it at its saved offset without a hole and gives the warning
opening-does-not-fitwith itsopeningFitnumbers. UseopeningFit.nearestOffsetwithmove-hosted-openingto repair it.validateBuildingModelno longer reportsopening-overruns-segment. See Doors and windows in walls. - Breaking:
Wall.openingFitreplacesWall.inspectOpeningPlacement.attachOpeningandmoveOpeningplace an opening at the station that they get. SeeWall. - Breaking:
resolveViewEditCandidateneeds the build. Passsession.currentBuildas the last argument. - Breaking: the kernel-free
applyBuildingEditrefuses more edits. A move or rehost of a hosted opening, and amove-wall-pointin a storey with hosted openings, giveresolved-edit-required. UseBuildingSessionorapplyBuildingEditResolved. - Plans look different. A wall outline is one closed polyline per ring, with one poché per group of joined walls. Beams, columns, roofs and low walls use new pens for cut, below and above. A wall with a BRICK, CONCRETE or WOOD material draws its hatch. Sections and elevations of a project with a site draw a ground line, and they draw a level head for each storey in place of the storey labels. Update screenshot and PDF expectations.
- Round and arched holes in straight walls are facets. STEP export of these holes is faceted.
- With a
ProjectManager, one revision number. A step of the views, sheets or markers also raisesmanager.session.revision. A revision read before such a step is stale. deleteWallis deprecated. UsedeleteElement.- Breaking for TypeScript:
BmWall.thicknessis optional. A wall with a wall type (typeRef) has no thickness of its own, so code that reads it getsnumber | undefined. Read the thickness of a saved wall withsavedWallThickness(wall, model.wallTypes). A wall with nothicknessand notypeRefis now refused withmissing-thicknessin place ofbad-thickness.facadeDimensionsandfacadeDimensionExtentneed walls with athickness: passwalls.map((wall) => ({ ...wall, thickness: savedWallThickness(wall, model.wallTypes) })). - Sections and elevations draw curved walls with their doors and windows, and slabs and FLAT roofs with arcs or rounded corners, as true curves. The outline of a curved face is drawn where the face turns away from the view, and a smooth join draws no line. The elevation marks of a door or window on a curved wall are on its frame.
- Breaking: a section or elevation that meets a curved wall with a round void is refused with
unsupported-curved-wall. It wasunsupported-element, so a check forerror.code === 'unsupported-element'no longer catches it. Setsettings.curvedWalls: 'leave-out'to draw the view without those walls and the doors and windows they host, with one warning naming the walls. The check reads only the view’selementIdsand building. See Cut a section. - New refusal codes for wall types. Add
layer-join-rejected,wall-type-in-use,unknown-wall-type,type-sets-thickness,missing-thickness,empty-wall-type,layer-thickness,layer-join-rank,bad-layer-function,bad-flipped,bad-wall-type-nameandbad-wall-typesto the error handling of your app. - Plain walls of BLOCK, INSULATION or STEEL draw a hatch. Before, they drew the solid poché.
- Two SDK control defaults changed. When nothing is set, editor readouts have
0.625remcorners (was9999px) and the wall drawing label uses--op-ui-font(wassystem-ui). The plan faint ink is#777777for every element type, column poché is#cccccc, unlisted element types are#555555(was#333333), the sheet page border is#777777, and the unsnapped sheet snap marker is#777777(was#888888). Set the variables in the theme table ofCONSUMING.mdto keep the old look. The licence screen and badge text is#000000in the system monospace font; a page cannot change it. - Walls, slabs, roofs, columns, beams, stairs and railings draw through per-storey batches. These batches are instanced drawables. A 3D hit on them is on the batch: find the element with
instancedElementId, not by walking parents.OpenGeometry.resolveHitdoes not resolve such a hit. A change made in place to a body’s material no longer shows: set the appearance instead, which takes the body out of the batch.
Added
- Curtain wall colours and checks.
curtain.frameColorandcurtain.glassColorcolour the frame and the glass. Curtain positions are checked on the real wall length, every grid issue is reported, and a bay that would sag off its arc is refused withcurtain-bay-off-arc. An arc curtain wall draws its mullions and glazing in plan (Make a curtain wall). - Curtain walls at storey lines and corners. A curtain wall on a curtain wall below drops its sill over whole bays, so the storey line shows one member.
curtain.cornerMullionbuilds one mullion at an L corner (Make a curtain wall). - Plans of a multi-storey building. A plan draws the storey above dashed, lower elements that cross the cut, and column grid tags; a roof plan draws balconies below the eave (Create a plan view).
- Curtain walls under a roof. A curtain wall that follows a roof is cut to the roof line, and an inspector can edit its grid through one
curtaincontrol (Make a curtain wall). - Insert, copy and restack a storey.
insert-storey,copy-storeyandreplace-storey-settingswithrestack: truemove the storeys above (Add a storey). - A floor under every stacked part.
massToShellputs aFloorslab under a part that stands on another part and anOverhangslab under the piece past it, so the floor area of each storey is its footprint (Model a mass). - A plate with holes. A cuboid model object on a vertical working plane is a plate as thick as its height, so a screen with holes is one extrusion.
- Fan, curved, spiral and winder stairs.
StairLayoutgainsFAN,CURVED,SPIRALandWINDER, sized byinnerRadius,sweepAngleandwinderCount.StairStepgainsoutline,StairFlight.walklinegainspathandStairPlanCutPointgainsdirection. A stair whose top misses the next storey warnsstair-misses-storeyunless it setsservesLanding: true, and a stair whose top is not within the slab of itsslabHolewarnsslab-hole-level(Add a stair). - Glass railings. A railing takes a glass
panelon posts, spigots or clamps in place of its balusters, and on a stair the panels follow the pitch. Path points have grips,replaceFieldssaves a railing, andGUIEditor.startRailingDrawingdraws one in 3D.RailingOptions.hostRiserand afixingmember ofPhysicalPartRoleare new. A hosted rail draws on the plan above, and a path outside its storey warnspath-outside-storey(Add a railing). - Cut regions by element. Every drawing primitive carries
data-og-typein SVG, and each element owns its part of a section cut. A GLASS wall and curtain glazing draw as two lines with no fill in plan and section, and columns have their own pen (Cut a section). - Slab edges. A slab takes an
edgeProfile, a nose swept along the outline edges you choose, andedgeMaterialandsoffitMaterialbesidematerial. A profiled slab exports to IFC asFREEFORM_ANALYTIC, and a face field on a ceiling is refused withceiling-face-field(Add a floor slab). - A window over a door in plan. A window above the plan cut that stands over a door or opening the cut meets draws dashed. A high window on its own is still left out (Create a plan view).
- Columns on grids.
snapToGrids(building, point, tolerance = 0.3)snaps a point to the nearest grid crossing or grid line. A column’s grid reference comes from its position and is not saved. A column whose height differs from its storey’s warnsheight-differs-from-storey, and a cut CONCRETE, STEEL or TIMBER column draws its material hatch in plan and section (Add a column). - Glass is tagged. Every glass body carries a
userData.glazingtag (curtain-pane,window-pane,door-pane,glass-wallorrailing-panel), and underclasskeying the conditioning export masks tagged glass as WINDOW, so curtain glass is no longer masked as WALL. - Curved slab and roof edges. Slab and FLAT roof outlines take
arcs, athroughpoint per edge as on a wall. They build as true curves, draw as true arcs in plan and count exactly in storey floor area. Sections and elevations draw them as true curves. Arcs on a stair-linked hole, a ceiling, a pitched roof or a roof with an overhang are refused (Add a floor slab). - Curves across the model. A slab or a FLAT roof with no overhang takes
cornerRadii, andset-corner-radiusrounds one corner or a whole ring (Round a slab corner).fillet-wallsreplaces the corner of two joined walls with a curved wall, andbend-wallbends a straight segment into an arc (Round a wall corner). Rooms, room separation lines, railings, ramps, grid lines, site boundaries, mass footprints and custom column and beam profiles take arcs. The managed wall tool draws arcs in the plan and in 3D, plan snapping finds arc ends, midpoints, quadrants, centres and tangents, and a selection reports the corner, edge or joint that was picked. Storey dimensions of kindradiusandarc-lengthfollow their arc, andpickArcEdgefinds the arc under a click (Dimensions on a storey). - Ramps. A storey takes
ramps(BmRamp): a path with a width that rises between two storey-relative elevations, with an optionalmaxSlopeand landings. A turn must sit in a landing, which builds as one mitred corner plate. The plan draws one outline with an arrow to the higher end, dashed above the cut, and sections cut it with ogType RAMP (Ramp). - Change an element in place.
replace-wall-settings,replace-hosted-openingandreplace-free-openingchange a wall, a door or a window as one undo step.ProjectManager.replaceFieldssaves the inspector fields of a wall, opening, room, block, slab, roof, column or beam. - More wall edits.
split-wallandmerge-walls(Move and reshape). A wall can hold arc segments (Add a curved wall). A wall withtopFollowsRoofreaches the roof underside. - Doors and windows by type. Each door type and window type builds and draws its own way. See Door types and Window types. Grips resize a door or a window. A void can be round or arched.
- Frames, stairs and railings. Draw beams in the plan editor (Add a beam). Columns, beams and free railings move and turn in both editors, and Delete removes any selected element. A railing can follow its stair (
host). A stair can have a waist and a linked slab hole that moves with it (Add a stair). - Roofs. GABLE and HIP roofs build on any simple outline. A floor plan draws a roof above the cut as its dashed eave outline. A new
roof-planview shows every roof of a building, with the ridge, hips, valleys, slope arrows and pitch. See Add a roof. - Drawings. Plans draw elements by their state against the cut, upper parts of a lower stair, door, window and wall tags, room separation lines, grids and levels. Dimensions, notes and leaders saved on a storey draw on each plan of the storey (Dimensions on a storey). A plan view with no
storeyIdis a site plan.labelMmprints plan text at one paper size at any scale. - Sheets. North arrow, scale bar, revisions, tables and schedules. See Compose a sheet and Schedules.
- Furniture. A project file keeps the
.optext of its blocks, and a block can be mirrored. See Place furniture. - Block catalog. Free blocks of furniture, fixtures and equipment come from the public Floorkit block catalog, licensed under CC BY 4.0. Load a block with its loader from a pinned release tag. See Use the block catalog.
- Zoning. No-build zones, a limit on part of the lot and an envelope plane on one lot edge.
- Wall types. A wall type is a list of layers, each with a material, a thickness and a function. A wall with
typeRefbuilds one body for each layer, also on arcs; the layers of walls that meet join by rank; plans and sections draw one hatched strip for each layer. Add, change and remove types withadd-wall-type,replace-wall-typeandremove-wall-type, each one undo step. The plan editor example has a Type select and a Wall types panel. See Use wall types. - Storey areas without a mass.
storeyFloorAreasmeasures each storey from its slabs, or inside its outer ring of walls when it has no slab. A site plan prints the area of each storey of a building that has no mass.
Changed
- One theme for the SDK controls. Every
--op-*variable has one default, exported asopThemeDefaults. The sheet snap marker reads--op-snap-color, the sheet page reads the new--op-sheet-page, readouts and inputs read--op-ui-font-sizeand--op-ui-input-font-size, and the plan inks of site, zoning, MEP and data-centre elements have their own--op-plan-ink-*variables. - The examples site has a light and dark mode. It uses stock shadcn components and layout, and in dark mode the drawings go dark too.
- Plan opening tags number by the storey, as the schedule does.
- The sheet editor edits text, leader and dimension labels in place, and deletes them.
Fixed
- A plate with many holes draws its sections and elevations in seconds: a 300-hole perforated plate’s elevation takes about 2 s and its section about 4.5 s, where they took minutes.
- A window above a door at the same place along a wall no longer counts as an overlap. Two openings overlap only when they overlap along the wall and up it.
- A
-0in a building command is saved as0. - A wall that joins a split T keeps its far corner mitre.
- An opening that does not fit no longer blocks new walls of its storey, and a wall edit no longer rewrites an opening that it does not carry.
- The connected-walls grip of the 3D editor can be pressed on every wall.
Create and edit site massing with one project and one undo history, through commands and the plan and 3D editors. See Site massing for a worked study.
Check these when you upgrade
- Breaking: create and edit a
Buildingthrough a project. UsemassBuildingCommandwithProjectManager.apply, then edit through commands or the managed editors. Standalonenew Building({ profile, height }), segments without storeys,storeyHeight,Building.setStoreys,Building.addSegment,Building.removeSegment,regenerateStoreys,storeyHeightForandSTOREY_HEIGHT_BY_USEare removed. See Model a mass. - Files with
showMassingneed 1.2.0. Floorkit 1.1.0 refuses that new plan-view field. Files without it still open in both versions. Update custom saved-view validators to accept it. BuildingEditCommandhas new members. Addreplace-mass,add-building,remove-buildingandreplace-siteto exhaustive switches.ProjectFileErroralso addsbuilding-in-useandsite-in-use;storey-in-usecan now be reported by a mass edit.- Recheck floor area against the site’s grade and area definitions. A storey entirely at or below grade is a basement. Basement, parking, core and mechanical areas do not count toward FAR unless the rules include them. Set
BmStorey.areaKindexplicitly where needed; pass{ grade }tomassQuantitiesorBuilding.quantitiesfor a site above or below zero. - Sections and elevations can draw masses. With
showMassing: trueon the view, a section cuts each part of a mass with its courtyards and an elevation shows each part; off by default. Both draw the ground line of the site. A view that lists a mass without the switch is refused withunsupported-element. - Masses use colours by use when no colour is set. Set
coloron the mass or passmassColors: {}to keep the previous default. Plan views and sheets can now fill mass parts with their colours; update screenshot or PDF expectations accordingly. - The plan editor reports deselection after undo. A select listener must accept
undefinedwhen undo removes the selected element. A storey-setting edit in a mass building also reports the changed objects. - Custom editable targets can supply
activePart. The editors preserve the selected mass part during gestures and after saving or undoing. Hosts with customEditableTargetimplementations can provide its saved part id alongsideselectPart.
Added
- Mass, building and site commands.
replace-mass,add-building,remove-buildingandreplace-sitework throughBuildingSessionandProjectManager, including batches, undo and redo.massBuildingCommandcreates a mass from an outline;massSegmentHeightCommandchanges a part’s height in whole storeys. - Plan and 3D mass editing. Select a part, reshape, move, turn or delete it. Push/pull changes its height in 3D. Each completed gesture saves one command; edits that break a saved view or remove occupied storeys are refused.
- Draw a building in the plan.
ManagedPlanEditor.startMassDrawingdraws and saves a new mass as one step.startOutlineDrawingreturns an outline for an app’s own creation flow. Escape cancels without saving. - Site massing on plans and sheets.
showMassing: truedraws mass parts, the parcel and the at-grade setback line in plan views, sheets and PDF exports.ProjectManager.setBuildableEnvelopeshows the supplied envelope in 3D; it is a display setting, not part of a saved project. - Area kinds and colours for mass parts. Save
BmStorey.areaKindand optionalBmMassSegment.color.GUIEditor.onDragexposes live figures during supported gestures before the command is saved.
Changed
- Mass, building and site edits preserve unaffected objects. A storey-setting edit in a mass building rebuilds the affected storey and mass.
- A rebuilt mass keeps its active part. Height drags keep materials and unchanged parts across geometry writes.
Fixed
- Setback checks measure clearance edge to edge, including concave parcels.
- Basement classification uses site grade when calculating floor area ratios.
- Editor keyboard focus and selection grips recover correctly after mass edits and undo. Plan move/turn feedback works when an app loads another copy of Three.js.
One object for an open project, commands for each element of a storey, and edits that stay fast in a large building.
Check these when you upgrade
- The mouse wheel pans the 2D plan and the sheet. In 1.0.0 it zoomed. Call
setNavigation(MOUSE_NAVIGATION)on the view to keep the zoom. SeecreateModelRenderer. - Install
opengeometry@^2.0.18. Floorkit needs 2.0.18 or later. - Selection and hover are blue. Set
--op-accent: #000000on the editor container to keep the black look. - Drawing text uses Paper Mono. On screen and in SVG, load Paper Mono in your page, or the text shows in Courier. A PDF needs no font. To keep the old look, set
fontFamilyin the typography of the sheet style and in the dimension styles. - Editor readouts use the system monospace font. Set
--op-ui-fonton the editor container for a different font. - TypeScript: two unions are larger.
BuildingEditCommandhas new kinds, and thekindof a change event can berestore. Aswitchthat must cover each member needs the new cases. onChangereports are more exact. A moved block givesmoveand an added element givescreate. The labels of a door or a window that moves off its wall or to a different wall changed.ogidsnames only the elements that the step changed.- Objects stay the same after an edit. An edit builds again only what changed, so the other objects are not new objects. Do not write
position,rotationorscaleon a Floorkit object below a storey group: use an edit command. Do not write into a drawing that the plan editor made. - The model check is stricter. A column, a beam or a railing with a number that the build cannot use is refused when a file opens. A stair with more than 1,000 risers is refused.
Added
ProjectManager. One object holds an open project: the building, the views, the sheets and the markers. It has one undo history, it mounts a plan editor, it connects a 3D editor, and it exports sheets.- Commands for the elements of a storey.
add-element,replace-elementandremove-elementchange slabs, roofs, spaces, stairs, columns, beams, railings and blocks. - Commands for block definitions and for storeys.
add-asset,replace-asset,remove-asset,add-storey,remove-storeyandreplace-storey-settings. - A batch command.
{ kind: 'batch', commands: [...] }applies several commands as one step with one undo. When one command fails, nothing changes. - A change event names what changed. The events of
BuildingSession.subscribeandProjectManager.subscribehave an optionalchangedlist of live ids, so your app can refresh only those elements. setNavigation. Set how the wheel and the mouse buttons move the 2D plan and the sheet.- A block moves and turns in both editors.
Changed
- Edits are fast in a large building. An edit builds again only the elements that changed, and the plan editor draws again only those. In a storey of 160 rooms, a slab move takes about 5 ms (before about 2.2 s), and a door move takes about 46 ms (before about 2.2 s).
- The first plan draw of a large storey is faster. At 160 rooms it takes about 0.24 s. It took about 64 s.
- More moves of a wall at a corner are accepted.
- A body up to 1 km from the origin of the model draws in a plan, a section and an elevation.
- A selected wall in the 2D plan editor shows its outline, with no bounding box and no rotate dot.
Fixed
- A dragged wall end joins the wall it is released on.
- The wall outline stays whole after a wall drag.
- A drag that is refused or cancelled puts the element back, and the 2D plan shows the saved plan again.
- The undo of a live edit puts the element back exactly.
- The plan symbol of a door or a window no longer shows in the 3D view.
- A wall cuts its holes again when only its axis moves.
LineDimensionprints no debug logs.- A door, a window or a wall opening disposes its kernel bodies.