bimdown-cli 0.3.0 → 0.5.1
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/README.md +24 -3
- package/dist/chunk-4SKM4RHY.js +142 -0
- package/dist/chunk-4SKM4RHY.js.map +1 -0
- package/dist/chunk-4YHVOWS4.js +255 -0
- package/dist/chunk-4YHVOWS4.js.map +1 -0
- package/dist/chunk-AYAXRYGP.js +2129 -0
- package/dist/chunk-AYAXRYGP.js.map +1 -0
- package/dist/chunk-EC5MR5ZH.js +648 -0
- package/dist/chunk-EC5MR5ZH.js.map +1 -0
- package/dist/chunk-HS3PO2LB.js +487 -0
- package/dist/chunk-HS3PO2LB.js.map +1 -0
- package/dist/chunk-IQJA3EFO.js +179 -0
- package/dist/chunk-IQJA3EFO.js.map +1 -0
- package/dist/chunk-JY6KWRDB.js +80 -0
- package/dist/chunk-JY6KWRDB.js.map +1 -0
- package/dist/chunk-KWSGJUMZ.js +2501 -0
- package/dist/chunk-KWSGJUMZ.js.map +1 -0
- package/dist/chunk-LWYIPR64.js +35 -0
- package/dist/chunk-LWYIPR64.js.map +1 -0
- package/dist/chunk-OBY3UYCO.js +44 -0
- package/dist/chunk-OBY3UYCO.js.map +1 -0
- package/dist/chunk-XC6WHJRL.js +29 -0
- package/dist/chunk-XC6WHJRL.js.map +1 -0
- package/dist/chunk-XQU52JKB.js +187 -0
- package/dist/chunk-XQU52JKB.js.map +1 -0
- package/dist/clash-load-D3LNQR6G.js +941 -0
- package/dist/clash-load-D3LNQR6G.js.map +1 -0
- package/dist/cli.js +431 -0
- package/dist/cli.js.map +1 -0
- package/dist/dehydrate-ZHAGOI7Q.js +90 -0
- package/dist/dehydrate-ZHAGOI7Q.js.map +1 -0
- package/dist/diff-T2KOK2WR.js +89 -0
- package/dist/diff-T2KOK2WR.js.map +1 -0
- package/dist/engine-2TPWJVEQ.js +12 -0
- package/dist/engine-2TPWJVEQ.js.map +1 -0
- package/dist/hydrate-V24H7IF3.js +673 -0
- package/dist/hydrate-V24H7IF3.js.map +1 -0
- package/dist/import-ifc-RCZSXDA6.js +5324 -0
- package/dist/import-ifc-RCZSXDA6.js.map +1 -0
- package/dist/info-QC7YXWNX.js +92 -0
- package/dist/info-QC7YXWNX.js.map +1 -0
- package/dist/init-VWDML3UC.js +112 -0
- package/dist/init-VWDML3UC.js.map +1 -0
- package/dist/lib.d.ts +492 -0
- package/dist/lib.js +6528 -0
- package/dist/lib.js.map +1 -0
- package/dist/mep-W4HJI363.js +25 -0
- package/dist/mep-W4HJI363.js.map +1 -0
- package/dist/merge-ESOPDSA5.js +413 -0
- package/dist/merge-ESOPDSA5.js.map +1 -0
- package/dist/publish-3TAXQCUV.js +80 -0
- package/dist/publish-3TAXQCUV.js.map +1 -0
- package/dist/render-UEWYHPN6.js +1807 -0
- package/dist/render-UEWYHPN6.js.map +1 -0
- package/dist/resolve-topology-AQ2RO3W3.js +338 -0
- package/dist/resolve-topology-AQ2RO3W3.js.map +1 -0
- package/dist/spec/csv-schema/annotation/dimension.yaml +77 -0
- package/dist/spec/csv-schema/annotation/tag.yaml +44 -0
- package/dist/spec/csv-schema/annotation/text_note.yaml +52 -0
- package/dist/spec/csv-schema/architecture/ceiling.yaml +8 -1
- package/dist/spec/csv-schema/architecture/column.yaml +5 -1
- package/dist/spec/csv-schema/architecture/curtain_wall.yaml +45 -5
- package/dist/spec/csv-schema/architecture/door.yaml +5 -0
- package/dist/spec/csv-schema/architecture/furniture.yaml +28 -0
- package/dist/spec/csv-schema/architecture/opening.yaml +27 -6
- package/dist/spec/csv-schema/architecture/railing.yaml +35 -0
- package/dist/spec/csv-schema/architecture/roof.yaml +34 -1
- package/dist/spec/csv-schema/architecture/slab.yaml +19 -0
- package/dist/spec/csv-schema/architecture/space.yaml +11 -1
- package/dist/spec/csv-schema/architecture/stair.yaml +49 -0
- package/dist/spec/csv-schema/architecture/stair_landing.yaml +36 -0
- package/dist/spec/csv-schema/architecture/stair_run.yaml +31 -0
- package/dist/spec/csv-schema/architecture/wall.yaml +14 -1
- package/dist/spec/csv-schema/architecture/window.yaml +19 -0
- package/dist/spec/csv-schema/base/element.yaml +20 -11
- package/dist/spec/csv-schema/base/furniture_params.yaml +60 -0
- package/dist/spec/csv-schema/base/hosted_element.yaml +10 -2
- package/dist/spec/csv-schema/base/mep_connectable.yaml +23 -0
- package/dist/spec/csv-schema/base/mep_design.yaml +24 -0
- package/dist/spec/csv-schema/base/mep_insulated.yaml +9 -0
- package/dist/spec/csv-schema/base/mep_system_tag.yaml +12 -0
- package/dist/spec/csv-schema/base/point_element.yaml +1 -0
- package/dist/spec/csv-schema/base/section_profile.yaml +5 -0
- package/dist/spec/csv-schema/base/spatial_line_element.yaml +4 -2
- package/dist/spec/csv-schema/base/structural_section_profile.yaml +50 -0
- package/dist/spec/csv-schema/base/vertical_span.yaml +9 -3
- package/dist/spec/csv-schema/base/wall_bounded.yaml +21 -0
- package/dist/spec/csv-schema/grid.yaml +5 -0
- package/dist/spec/csv-schema/mep/cable_tray.yaml +10 -3
- package/dist/spec/csv-schema/mep/circuit.yaml +70 -0
- package/dist/spec/csv-schema/mep/conduit.yaml +2 -2
- package/dist/spec/csv-schema/mep/connector.yaml +112 -0
- package/dist/spec/csv-schema/mep/duct.yaml +10 -3
- package/dist/spec/csv-schema/mep/equipment.yaml +18 -1
- package/dist/spec/csv-schema/mep/mep_node.yaml +91 -2
- package/dist/spec/csv-schema/mep/mep_system.yaml +21 -0
- package/dist/spec/csv-schema/mep/pipe.yaml +27 -3
- package/dist/spec/csv-schema/mep/terminal.yaml +22 -1
- package/dist/spec/csv-schema/model_group.yaml +40 -0
- package/dist/spec/csv-schema/sheet/sheet.yaml +50 -0
- package/dist/spec/csv-schema/sheet/sheet_viewport.yaml +86 -0
- package/dist/spec/csv-schema/structure/beam.yaml +29 -1
- package/dist/spec/csv-schema/structure/beam_system.yaml +29 -0
- package/dist/spec/csv-schema/structure/brace.yaml +24 -1
- package/dist/spec/csv-schema/structure/foundation.yaml +40 -7
- package/dist/spec/csv-schema/structure/structure_column.yaml +19 -1
- package/dist/spec/csv-schema/structure/structure_slab.yaml +32 -0
- package/dist/spec/csv-schema/structure/structure_wall.yaml +22 -0
- package/dist/spec/csv-schema/types/beam_type.yaml +11 -0
- package/dist/spec/csv-schema/types/ceiling_type.yaml +6 -0
- package/dist/spec/csv-schema/types/column_type.yaml +12 -0
- package/dist/spec/csv-schema/types/curtain_wall_type.yaml +32 -0
- package/dist/spec/csv-schema/types/door_type.yaml +27 -0
- package/dist/spec/csv-schema/types/element_type.yaml +21 -0
- package/dist/spec/csv-schema/types/fenestration.yaml +16 -0
- package/dist/spec/csv-schema/types/foundation_type.yaml +36 -0
- package/dist/spec/csv-schema/types/furniture_type.yaml +11 -0
- package/dist/spec/csv-schema/types/layered_type.yaml +13 -0
- package/dist/spec/csv-schema/types/railing_type.yaml +40 -0
- package/dist/spec/csv-schema/types/roof_type.yaml +7 -0
- package/dist/spec/csv-schema/types/slab_type.yaml +9 -0
- package/dist/spec/csv-schema/types/type_layer.yaml +47 -0
- package/dist/spec/csv-schema/types/wall_type.yaml +6 -0
- package/dist/spec/csv-schema/types/window_type.yaml +31 -0
- package/dist/spec/csv-schema/underlay.yaml +73 -0
- package/dist/spec/csv-schema/view.yaml +36 -0
- package/dist/spec/duckdb-strategy.md +4 -3
- package/dist/spec/geojson-schema/readme.md +380 -0
- package/dist/spec/mep-port-conventions.md +190 -0
- package/dist/spec/migration-guide.md +1 -1
- package/dist/spec/project_metadata.schema.yaml +52 -4
- package/dist/spec/readme.md +356 -97
- package/dist/spec/starter-types/global/beam_type.csv +5 -0
- package/dist/spec/starter-types/global/ceiling_type.csv +3 -0
- package/dist/spec/starter-types/global/column_type.csv +5 -0
- package/dist/spec/starter-types/global/curtain_wall_type.csv +2 -0
- package/dist/spec/starter-types/global/door_type.csv +6 -0
- package/dist/spec/starter-types/global/foundation_type.csv +7 -0
- package/dist/spec/starter-types/global/furniture_type.csv +11 -0
- package/dist/spec/starter-types/global/railing_type.csv +5 -0
- package/dist/spec/starter-types/global/roof_type.csv +3 -0
- package/dist/spec/starter-types/global/slab_type.csv +4 -0
- package/dist/spec/starter-types/global/type_layer.csv +40 -0
- package/dist/spec/starter-types/global/wall_type.csv +8 -0
- package/dist/spec/starter-types/global/window_type.csv +6 -0
- package/dist/spec/svg-schema/readme.md +47 -1
- package/package.json +17 -5
- package/dist/index.js +0 -3366
- package/dist/index.js.map +0 -1
- package/dist/spec/csv-schema/base/mep_connected_segment.yaml +0 -17
- package/dist/spec/csv-schema/base/mep_system.yaml +0 -7
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
id,name,description,material,shape,size_x,size_y,flange,web,thickness,root_radius,designation,material_grade
|
|
2
|
+
colt-concrete-400,Concrete 400 x 400,,concrete,rect,0.4,0.4,,,,,,C30
|
|
3
|
+
colt-concrete-600,Concrete 600 x 600,,concrete,rect,0.6,0.6,,,,,,C30
|
|
4
|
+
colt-concrete-round-400,Concrete round 400,,concrete,round,0.4,,,,,,,C30
|
|
5
|
+
colt-steel-hea-300,Steel HEA 300,European wide-flange section,steel,i_shape,0.3,0.29,0.014,0.0085,,0.027,HEA 300,S355
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
id,name,description,material,u_spacing,v_spacing,panel_material,mullion_width,mullion_depth,mullion_profile,solid_material,u_value,shgc,vt
|
|
2
|
+
cwt-glazed-1500,Glazed 1500 grid,Aluminium stick system with double-glazed panels,aluminum,1.5,1.5,glass,0.05,0.15,rect,aluminum,1.6,0.35,0.6
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
id,name,description,material,width,height,operation,frame_width,u_value,shgc,vt
|
|
2
|
+
dt-single-900,Single 900 x 2100,Flush timber door,wood,0.9,2.1,single_swing,0.05,2.0,,
|
|
3
|
+
dt-single-1000,Single 1000 x 2100,Accessible flush timber door,wood,1.0,2.1,single_swing,0.05,2.0,,
|
|
4
|
+
dt-double-1800,Double 1800 x 2100,Pair of flush timber leaves,wood,1.8,2.1,double_swing,0.05,2.0,,
|
|
5
|
+
dt-ext-1000,Exterior insulated 1000 x 2200,Insulated entrance door,aluminum,1.0,2.2,single_swing,0.07,1.3,,
|
|
6
|
+
dt-sliding-glass-2400,Sliding glass 2400 x 2100,Double-glazed aluminium patio door,aluminum,2.4,2.1,sliding,0.07,1.6,0.45,0.6
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
id,name,description,material,kind,width,length,thickness,material_grade
|
|
2
|
+
fdt-pad-1500,Pad 1500 x 1500 x 500,Isolated pad footing,concrete,pad,1.5,1.5,0.5,C30
|
|
3
|
+
fdt-pad-2000,Pad 2000 x 2000 x 600,Isolated pad footing,concrete,pad,2,2,0.6,C30
|
|
4
|
+
fdt-pad-2500,Pad 2500 x 2500 x 700,Isolated pad footing,concrete,pad,2.5,2.5,0.7,C30
|
|
5
|
+
fdt-strip-800,Strip 800 x 400,Continuous wall footing,concrete,strip,0.8,,0.4,C30
|
|
6
|
+
fdt-pile-600,Bored pile 600 x 15 m,Bored cast-in-place pile,concrete,pile,0.6,,15,C35
|
|
7
|
+
fdt-cap-1000,Pile cap 1000,Pile cap,concrete,pile_cap,,,1,C35
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
id,name,description,family,variant,size_x,size_y,height
|
|
2
|
+
fut-desk-1600,Desk 1600 x 800,Office desk,desk,standard,1.6,0.8,0.75
|
|
3
|
+
fut-desk-1400,Desk 1400 x 700,Compact office desk,desk,standard,1.4,0.7,0.75
|
|
4
|
+
fut-office-chair,Office chair,Swivel task chair,office_chair,,,,
|
|
5
|
+
fut-meeting-table-8,Meeting table 8 seats,Rectangular meeting table,meeting_table,rect,2.4,1.2,0.75
|
|
6
|
+
fut-bed-double,Bed double 1600,Double bed,bed,double,1.6,2,
|
|
7
|
+
fut-bed-single,Bed single 900,Single bed,bed,single,0.9,2,
|
|
8
|
+
fut-sofa-3,Sofa 3-seat,Three-seat sofa,sofa,3_seat,,,
|
|
9
|
+
fut-wardrobe-1200,Wardrobe 1200,Hinged-door wardrobe,wardrobe,hinged,1.2,0.6,2.2
|
|
10
|
+
fut-base-cabinet-600,Base cabinet 600,Kitchen base cabinet,base_cabinet,doors,0.6,0.6,0.9
|
|
11
|
+
fut-refrigerator,Refrigerator,Single-door refrigerator,refrigerator,single,,,
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
id,name,description,material,height,top_rail_shape,top_rail_size,infill,baluster_spacing,baluster_size
|
|
2
|
+
rlt-steel-1000,Steel balusters 1000,Round steel top rail on square balusters,steel,1.0,round,0.05,balusters,0.12,0.025
|
|
3
|
+
rlt-steel-1100,Steel guard 1100,Guard for landings and slab edges,steel,1.1,rect,0.06,balusters,0.11,0.025
|
|
4
|
+
rlt-glass-1000,Glass 1000,Glass panels under a steel top rail,steel,1.0,round,0.05,glass,1.0,0.03
|
|
5
|
+
rlt-timber-900,Timber handrail 900,Timber rail on timber balusters,wood,0.9,rect,0.06,balusters,0.12,0.04
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
id,name,description,material,thickness
|
|
2
|
+
rot-flat-insulated,Flat roof - Membrane + PIR 150 on concrete 200,Warm flat roof: waterproofing on PIR insulation on a concrete deck with plaster soffit,concrete,0.37
|
|
3
|
+
rot-pitched-tile,Pitched roof - Tiles on insulated rafters,Clay tiles on battens over timber rafters filled with mineral wool,wood,0.25
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
id,name,description,material,thickness,material_grade
|
|
2
|
+
slt-concrete-200,Concrete 200,Plain concrete slab,concrete,0.2,C30
|
|
3
|
+
slt-floor-tile,Floor - Tile + screed on concrete 200,Ceramic tile on cement screed on a concrete slab,concrete,0.26,
|
|
4
|
+
slt-ground-insulated,Ground floor - Screed + XPS 100 on concrete 200,Screed on XPS insulation and damp-proof membrane on a concrete slab,concrete,0.362,
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
id,type_id,seq,function,material,thickness,conductivity,name
|
|
2
|
+
tl-1,wt-concrete-200,1,core,concrete,0.2,2.3,Reinforced concrete
|
|
3
|
+
tl-2,wt-ext-concrete-eps,1,finish,composite,0.01,0.7,Exterior render
|
|
4
|
+
tl-3,wt-ext-concrete-eps,2,insulation,insulation,0.1,0.035,EPS 100
|
|
5
|
+
tl-4,wt-ext-concrete-eps,3,core,concrete,0.2,2.3,Reinforced concrete
|
|
6
|
+
tl-5,wt-ext-concrete-eps,4,finish,gypsum,0.015,0.4,Gypsum plaster
|
|
7
|
+
tl-6,wt-ext-brick-cavity,1,finish,brick,0.1,0.77,Facing brick
|
|
8
|
+
tl-7,wt-ext-brick-cavity,2,air_gap,,0.04,,Ventilated cavity
|
|
9
|
+
tl-8,wt-ext-brick-cavity,3,insulation,insulation,0.05,0.035,Mineral wool
|
|
10
|
+
tl-9,wt-ext-brick-cavity,4,core,brick,0.1,0.77,Brick inner leaf
|
|
11
|
+
tl-10,wt-ext-brick-cavity,5,finish,gypsum,0.01,0.4,Gypsum plaster
|
|
12
|
+
tl-11,wt-ext-timber-frame,1,finish,fiber_cement,0.015,0.35,Fibre-cement cladding
|
|
13
|
+
tl-12,wt-ext-timber-frame,2,air_gap,,0.025,,Battens and ventilation
|
|
14
|
+
tl-13,wt-ext-timber-frame,3,core,wood,0.145,0.045,Timber studs with mineral wool
|
|
15
|
+
tl-14,wt-ext-timber-frame,4,finish,gypsum,0.015,0.25,Gypsum board
|
|
16
|
+
tl-15,wt-int-stud-100,1,finish,gypsum,0.0125,0.25,Gypsum board
|
|
17
|
+
tl-16,wt-int-stud-100,2,core,insulation,0.075,0.04,Steel studs with mineral wool
|
|
18
|
+
tl-17,wt-int-stud-100,3,finish,gypsum,0.0125,0.25,Gypsum board
|
|
19
|
+
tl-18,wt-int-masonry-150,1,finish,gypsum,0.015,0.4,Gypsum plaster
|
|
20
|
+
tl-19,wt-int-masonry-150,2,core,brick,0.12,0.6,Brick
|
|
21
|
+
tl-20,wt-int-masonry-150,3,finish,gypsum,0.015,0.4,Gypsum plaster
|
|
22
|
+
tl-21,wt-concrete-300,1,core,concrete,0.3,2.3,Reinforced concrete
|
|
23
|
+
tl-22,slt-concrete-200,1,core,concrete,0.2,2.3,Reinforced concrete
|
|
24
|
+
tl-23,slt-floor-tile,1,finish,ceramic,0.01,1.3,Ceramic tile
|
|
25
|
+
tl-24,slt-floor-tile,2,substrate,concrete,0.05,1.4,Cement screed
|
|
26
|
+
tl-25,slt-floor-tile,3,core,concrete,0.2,2.3,Reinforced concrete
|
|
27
|
+
tl-26,slt-ground-insulated,1,substrate,concrete,0.06,1.4,Cement screed
|
|
28
|
+
tl-27,slt-ground-insulated,2,insulation,insulation,0.1,0.034,XPS
|
|
29
|
+
tl-28,slt-ground-insulated,3,membrane,pvc,0.002,0.17,Damp-proof membrane
|
|
30
|
+
tl-29,slt-ground-insulated,4,core,concrete,0.2,2.3,Reinforced concrete
|
|
31
|
+
tl-30,rot-flat-insulated,1,membrane,pvc,0.005,0.17,Waterproofing membrane
|
|
32
|
+
tl-31,rot-flat-insulated,2,insulation,insulation,0.15,0.022,PIR
|
|
33
|
+
tl-32,rot-flat-insulated,3,core,concrete,0.2,2.3,Reinforced concrete
|
|
34
|
+
tl-33,rot-flat-insulated,4,finish,gypsum,0.015,0.4,Gypsum plaster
|
|
35
|
+
tl-34,rot-pitched-tile,1,finish,ceramic,0.025,1,Clay tiles
|
|
36
|
+
tl-35,rot-pitched-tile,2,air_gap,,0.025,,Battens and ventilation
|
|
37
|
+
tl-36,rot-pitched-tile,3,core,wood,0.18,0.045,Rafters with mineral wool
|
|
38
|
+
tl-37,rot-pitched-tile,4,finish,gypsum,0.02,0.25,Gypsum board
|
|
39
|
+
tl-38,clt-gypsum-board,1,finish,gypsum,0.0125,0.25,Gypsum board
|
|
40
|
+
tl-39,clt-acoustic-tile,1,finish,composite,0.02,0.05,Mineral fibre tile
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
id,name,description,material,thickness
|
|
2
|
+
wt-concrete-200,Concrete 200,Plain cast-in-place concrete wall,concrete,0.2
|
|
3
|
+
wt-ext-concrete-eps,Exterior - Concrete 200 + EPS 100,Render on EPS insulation on a concrete core with interior plaster,concrete,0.325
|
|
4
|
+
wt-ext-brick-cavity,Exterior - Brick cavity 300,Brick outer leaf; ventilated cavity; mineral wool; brick inner leaf; plaster,brick,0.3
|
|
5
|
+
wt-ext-timber-frame,Exterior - Timber frame 200,Fibre-cement cladding on battens; insulated timber studs; gypsum board,wood,0.2
|
|
6
|
+
wt-int-stud-100,Interior - Stud partition 100,Gypsum board on both sides of steel studs with mineral wool,gypsum,0.1
|
|
7
|
+
wt-int-masonry-150,Interior - Masonry 120 + plaster,Brick or block wall plastered on both sides,brick,0.15
|
|
8
|
+
wt-concrete-300,Concrete 300,Structural or core concrete wall,concrete,0.3
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
id,name,description,material,width,height,operation,frame_width,u_value,shgc,vt
|
|
2
|
+
wnt-casement-600x1200,Casement 600 x 1200,Double-glazed aluminium casement,aluminum,0.6,1.2,casement,0.06,1.4,0.4,0.6
|
|
3
|
+
wnt-casement-1200x1500,Casement 1200 x 1500,Double-glazed aluminium casement,aluminum,1.2,1.5,casement,0.06,1.4,0.4,0.6
|
|
4
|
+
wnt-fixed-1800x1500,Fixed 1800 x 1500,Double-glazed fixed light,aluminum,1.8,1.5,fixed,0.05,1.3,0.4,0.65
|
|
5
|
+
wnt-sliding-1500x1200,Sliding 1500 x 1200,Double-glazed aluminium slider,aluminum,1.5,1.2,sliding,0.06,1.6,0.45,0.6
|
|
6
|
+
wnt-tilt-turn-900x1400,Tilt and turn 900 x 1400,Triple-glazed PVC tilt-and-turn,pvc,0.9,1.4,tilt_and_turn,0.08,0.9,0.35,0.55
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# BimDown SVG Spec
|
|
2
2
|
|
|
3
|
-
SVG is
|
|
3
|
+
SVG is one of **two interchangeable geometry storage layers** for BimDown — the other is [GeoJSON](../geojson-schema/readme.md). Both are first-class and fully supported; a project picks one, declared by `format_version` (see §7). The CSV attribute layer is identical regardless of which geometry encoding is used.
|
|
4
|
+
|
|
5
|
+
- **SVG** (`format_version: 1`): 2D geometry, the encoding documented here. AI models have extensive SVG training data and strong spatial reasoning with the format.
|
|
6
|
+
- **GeoJSON** (`format_version: 2`): 2D **and** 3D geometry, native JSON, GIS-toolchain compatible. The default for new projects and the encoding the BimDown editor (bim.jouledown.com) consumes.
|
|
7
|
+
|
|
8
|
+
Like GeoJSON, SVG here is **not** used for visualization — it is a structured geometry storage format. Renderers consume the parsed canonical element model, not the raw SVG.
|
|
9
|
+
|
|
10
|
+
A key structural difference: **SVG stores 2D geometry only.** Any Z information — level offsets and the absolute Z of spatial elements — lives in CSV columns (see §6). GeoJSON, by contrast, carries absolute Z in coordinates and Z offsets in feature `properties`.
|
|
4
11
|
|
|
5
12
|
---
|
|
6
13
|
|
|
@@ -163,3 +170,42 @@ The CLI parses SVG elements and injects computed fields into DuckDB:
|
|
|
163
170
|
| `<rect>` | `x`, `y`, `size_x` (width), `size_y` (height), `rotation` |
|
|
164
171
|
| `<circle>` | `x` (cx), `y` (cy), `size_x` (2r), `size_y` (2r), `shape="round"` |
|
|
165
172
|
| `<polygon>` | `points` (serialized), `area` |
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## 6. Attribute Split: SVG vs CSV
|
|
177
|
+
|
|
178
|
+
As in the GeoJSON encoding, **CSV is the attribute source of truth** — material, thickness, sizes, enums, foreign keys (`host_id`, `base_level_id`, `top_level_id`), and parametric placement (`position`) all live in CSV, unchanged.
|
|
179
|
+
|
|
180
|
+
The difference is in the **numeric geometry hints**. The GeoJSON encoding keeps these in feature `properties`; SVG has no per-feature property bag, so each hint maps as follows:
|
|
181
|
+
|
|
182
|
+
| Geometry hint | GeoJSON encoding | SVG encoding |
|
|
183
|
+
|---|---|---|
|
|
184
|
+
| Point orientation (`rotation`) | `properties.rotation` | `transform="rotate(angle, cx, cy)"` on `<rect>`/`<circle>` |
|
|
185
|
+
| Arc curvature (`arc`) | `properties.arc = {radius, large_arc, sweep}` | path `A rx,ry rot large-arc sweep x,y` command |
|
|
186
|
+
| Level Z offsets (`base_offset`, `top_offset`) | `properties.base_offset` / `top_offset` | **CSV columns** `base_offset` / `top_offset` (SVG carries no Z) |
|
|
187
|
+
| Absolute Z of spatial elements (beam, duct, …) | 3rd coordinate `[x, y, z]` | **CSV columns** `start_z` / `end_z` (SVG `<path>` is 2D) |
|
|
188
|
+
|
|
189
|
+
Everything else — `length`, `area`, `x`/`y`, `start_*`/`end_*` — is **computed** at hydrate time (§5), never stored, in both encodings.
|
|
190
|
+
|
|
191
|
+
> Rule of thumb when porting a field between encodings: geometry the SVG element can express *intrinsically* (2D position, arc, rotation) stays in SVG; any Z, and all non-geometric attributes, move to CSV.
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
## 7. Format Version
|
|
196
|
+
|
|
197
|
+
`project_metadata.json` declares the geometry encoding via `format_version`:
|
|
198
|
+
|
|
199
|
+
```json
|
|
200
|
+
{
|
|
201
|
+
"format_version": 1,
|
|
202
|
+
"project_name": "…",
|
|
203
|
+
"units": "m",
|
|
204
|
+
"source": "revit"
|
|
205
|
+
}
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
- `format_version: 1` — CSV + **SVG** (this spec). Fully supported.
|
|
209
|
+
- `format_version: 2` — CSV + **GeoJSON** (see [geojson-schema/readme.md](../geojson-schema/readme.md)). Fully supported; default for new projects.
|
|
210
|
+
|
|
211
|
+
Both encodings are maintained; neither is deprecated. Tools may also detect the encoding directly from the geometry files present (`*.svg` vs `*.geojson`). Conversion in either direction is lossless for the 2D subset; the `bimdown migrate` command and `scripts/svg-to-geojson.ts` convert SVG → GeoJSON (3D fidelity for spatial elements is gained, not lost, in that direction).
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bimdown-cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.5.1",
|
|
4
|
+
"description": "CLI for BimDown, an open building data format (CSV + GeoJSON): build, render, query with SQL, diff, publish.",
|
|
5
5
|
"author": "NovaShang",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://github.com/NovaShang/BimDown.git"
|
|
10
10
|
},
|
|
11
|
-
"homepage": "https://
|
|
11
|
+
"homepage": "https://bim.jouledown.com",
|
|
12
12
|
"bugs": {
|
|
13
13
|
"url": "https://github.com/NovaShang/BimDown/issues"
|
|
14
14
|
},
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
"duckdb",
|
|
19
19
|
"csv",
|
|
20
20
|
"svg",
|
|
21
|
+
"geojson",
|
|
22
|
+
"ifc",
|
|
21
23
|
"llm",
|
|
22
24
|
"ai",
|
|
23
25
|
"agent",
|
|
@@ -31,10 +33,18 @@
|
|
|
31
33
|
],
|
|
32
34
|
"type": "module",
|
|
33
35
|
"bin": {
|
|
34
|
-
"bimdown": "dist/
|
|
36
|
+
"bimdown": "dist/cli.js"
|
|
37
|
+
},
|
|
38
|
+
"main": "./dist/lib.js",
|
|
39
|
+
"types": "./dist/lib.d.ts",
|
|
40
|
+
"exports": {
|
|
41
|
+
".": {
|
|
42
|
+
"types": "./dist/lib.d.ts",
|
|
43
|
+
"import": "./dist/lib.js"
|
|
44
|
+
}
|
|
35
45
|
},
|
|
36
46
|
"scripts": {
|
|
37
|
-
"build": "tsup",
|
|
47
|
+
"build": "rm -rf dist && tsup",
|
|
38
48
|
"dev": "tsup --watch",
|
|
39
49
|
"test": "vitest run",
|
|
40
50
|
"test:watch": "vitest"
|
|
@@ -44,7 +54,9 @@
|
|
|
44
54
|
"commander": "^13.1.0",
|
|
45
55
|
"fast-xml-parser": "^5.2.0",
|
|
46
56
|
"fflate": "^0.8.2",
|
|
57
|
+
"jsts": "^2.12.1",
|
|
47
58
|
"sharp": "^0.34.5",
|
|
59
|
+
"web-ifc": "^0.0.77",
|
|
48
60
|
"yaml": "^2.7.0"
|
|
49
61
|
},
|
|
50
62
|
"devDependencies": {
|