@jbaysolutions/floorplan-pack-mobility
v1.0.0
Published
Mobility pack for JBay Floorplan: parking bays and car parks, cars, vans, buses, trucks, motorbikes and bicycles, road markings, EV chargers, barriers and street furniture, in 2D and 3D
Readme
@jbaysolutions/floorplan-pack-mobility
Website · Live demo · Documentation
The mobility pack for @jbaysolutions/floorplan-vue,
@jbaysolutions/floorplan-react and @jbaysolutions/floorplan-elements (2.4 or later): 43 items for car parks and
streets, each with a 2D symbol and a 3D model, under their own Mobility button in the editor (shortcut P).
They go with the library's roads and its asphalt floor.
- Parking bays: a bay, rows of bays (straight, double, angled at 60°), accessible bay, EV charging bay, motorbike bays, loading bay
- Vehicles: car, hatchback, SUV, taxi, van, pickup truck, bus, truck, motorbike, bicycle
- Road markings: zebra crossing, arrows (straight on, left, right), stop line, box junction, speed bump
- Parking equipment: EV charger, EV wallbox, barrier gate, ticket machine, pay station, bollard, wheel stop, height barrier, parking sign
- Street furniture: street lamp, traffic light, bus shelter, bus stop sign, bike shelter, litter bin, fire hydrant, road sign, traffic cone
npm install @jbaysolutions/floorplan-pack-mobilityimport { registerPack } from '@jbaysolutions/floorplan-vue'
import { mobility } from '@jbaysolutions/floorplan-pack-mobility'
registerPack(mobility)
// only if you use the 3D viewer
import { registerPack3D } from '@jbaysolutions/floorplan-vue/3d'
import { mobility3D } from '@jbaysolutions/floorplan-pack-mobility/3d'
registerPack3D(mobility3D)Item kinds are mobility/<key>, for example mobility/bay-row. Rows of bays add 2.5 m bays as they get longer.
Placed on a road, an item stands on the road's surface. Vehicles drive towards +y: park one nose-in by turning it to
its bay's rotation + 180°.
parkingSpots(item) returns where each parking space is, in plan coordinates, for occupancy markers or bookings:
import { parkingSpots } from '@jbaysolutions/floorplan-pack-mobility'
const spaces = floor.furniture.flatMap((f) => parkingSpots(f)) // [{ x, y, rot }, …]See Add-on packs in the documentation for every item and its default size.
Licence
Included in every JBay Floorplan licence, free or commercial, at no extra cost. See LICENSE.md.
© JBay Solutions.
