WSUVCapstoneTeam7 / SeatMapViewer

Uses a JSON file created with the SeatMapMaker to load a map instance where seats can be purchased.
MIT License
6 stars 3 forks source link

Load viewer map from file #5

Closed DennisVargas closed 4 years ago

DennisVargas commented 6 years ago

I found a method in Fabric.js to stop items from being selected gonna attempt this on the viewer.

cfeener commented 6 years ago

I can be your helper!

DennisVargas commented 6 years ago

https://github.com/kangax/fabric.js/issues/586 reveals how to load fabric data but setting it so that it doesn't move. This also allows for the objects to still be selectable.

cfeener commented 6 years ago

Implemented! See branch "5-load-viewer"

DennisVargas commented 6 years ago

We may need to re-evaluate this since I have made significant changes to the format of the json file. Fabric will load the file directly but everything will be grouped. It will be loader responsibility to ungroup the objects. Unless I write out the file ungrouped and regroup only if the file is loaded on the maker side.

cfeener commented 6 years ago

Good thing we caught that scalable issue. Will continue on that later.

DennisVargas commented 6 years ago

once we load the objects out of the fabCanvas rather than the data object we may be in good shape.

cfeener commented 6 years ago

Scalability is solved!