cvdlab / react-planner Goto Github PK
View Code? Open in Web Editor NEW:pencil2: A React Component for plans design. Draw a 2D floorplan and navigate it in 3D mode.
Home Page: https://cvdlab.github.io/react-planner
License: MIT License
:pencil2: A React Component for plans design. Draw a 2D floorplan and navigate it in 3D mode.
Home Page: https://cvdlab.github.io/react-planner
License: MIT License
At the moment, the y position for the first person view depends on the bounding box of the entire scene
Now the user can only hide layers with a property change
ReactPlanner.do([
ReactPlanner.linesActions.selectToolDrawingLine('wall'),
ReactPlanner.linesActions.beginDrawingLine('layer-1', 80, 1850),
ReactPlanner.linesActions.endDrawingLine(100, 1800),
ReactPlanner.linesActions.beginDrawingLine('layer-1', 300, 1800),
ReactPlanner.linesActions.endDrawingLine(100, 1800),
ReactPlanner.editingActions.selectToolEdit()
]);
When the user change content from the 3D view to the 2D, it seems that the scene is not deleted from memory...
This bug arise when trying to clean the memory
vertex reference an inexistent line
ReactPlanner.store.subscribe(() => {
console.log('update');
let s = ReactPlanner.getState().scene;
let vv = s.layers['layer-1'].vertices;
let ll = s.layers['layer-1'].lines;
for(let vn in vv){
let v = vv[vn];
v.lines.forEach(lineID => {
if (!ll.hasOwnProperty(lineID)) console.warn(lineID); else console.log('ok')})
}
})
ReactPlanner.do([
ReactPlanner.projectActions.newProject(),
ReactPlanner.linesActions.selectToolDrawingLine('wall'),
ReactPlanner.linesActions.beginDrawingLine('layer-1', 80, 1900),
ReactPlanner.linesActions.endDrawingLine(300, 1700),
ReactPlanner.linesActions.beginDrawingLine('layer-1', 300, 1900),
ReactPlanner.linesActions.updateDrawingLine(300, 1700),
ReactPlanner.linesActions.endDrawingLine(300, 1700),
]);
We need to dispose materials and geometries when removing objects from the scene
When selecting objects the bounding box is not visible against other items
change UNIT_CENTIMETER with scene.unit
This bus comes out when we try to change multiple properties on a single object... We should first group the diff array on order to minimize the number drawings of scene objects
The bug shows up when the line has the bigger vertex on the left
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.