
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-floorplanner
Advanced tools
react-floorplanner is a React Component for plans design. Draw a 2D floorplan and navigate it in 3D mode.
(this is a fork of react-planner by CVDLAB)
react-floorplanner is a React component which can be used to draw model buildings. Drag & drop from a catalog of customizable and ready-to-use objects, you can start from 2D wireframes and land on 3D models. As a developer you can provide your users with new objects by adding them to the catalog.
import React from 'react';
import ReactDOM from 'react-dom';
import {Map} from 'immutable';
import {createStore} from 'redux';
import {Provider} from 'react-redux';
import { ExampleCatalog } from 'react-floorplanner';
import {
Models as PlannerModels,
reducer as PlannerReducer,
ReactPlanner,
Plugins as PlannerPlugins,
} from 'react-floorplanner'; //react-floorplanner
//define state
let AppState = Map({
'react-floorplanner': new PlannerModels.State()
});
//define reducer
let reducer = (state, action) => {
state = state || AppState;
state = state.update('react-floorplanner', plannerState => PlannerReducer(plannerState, action));
return state;
};
//init store
let store = createStore(reducer, null, window.devToolsExtension ? window.devToolsExtension() : f => f);
let plugins = [
PlannerPlugins.Keyboard(),
PlannerPlugins.Autosave('react-floorplanner_v0'),
PlannerPlugins.ConsoleDebugger(),
];
//render
ReactDOM.render(
(
<Provider store={store}>
<ReactPlanner catalog={MyCatalog} width={800} height={600} plugins={plugins}
stateExtractor={state => state.get('react-floorplanner')}
/>
</Provider>
),
document.getElementById('app')
);
Cooming soon!
Your contributions (issues and pull request) are very appreciated!
MIT
FAQs
react-floorplanner is a React Component for plans design. Draw a 2D floorplan and navigate it in 3D mode.
The npm package react-floorplanner receives a total of 25 weekly downloads. As such, react-floorplanner popularity was classified as not popular.
We found that react-floorplanner demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.