Video projection mapping library in React.
Contain the following component:
- Layer: Allow you to transform the children element as you wish (3d tranform and translate)
- Grid: Add a background grid to help with accuracy while you are mapping in edit mode
This is a work in progress library.
Allow you to transform the children element as you wish (3d tranform and translate)
<Layer isEditMode={true}>
<video src="A_VIDEO_SOURCE" style={{ width: 640, height: 390 }}/>
</Layer>- style :
React.CSSPropertiesStyle applied to the container of the children element - anchorStyle :
React.CSSPropertiesStyle applied to the anchor component - className :
stringClasses applied to the container of the children element - anchorClassName :
stringClasses applied to the anchor component - isEditMode :
booleanif true, switch to edit mode and make anchors visible, if false, switch to view mode and anchor are not visible. - x :
numberInitial x position of the child element - y :
numberInitial y position of the child element
<Grid/>- rows :
numbernumber of rows to display - columns :
numbernumber of columns to display
-
Add layer grid
-
Add magnet
-
Add reset functionality
-
Add more key controls
-
Add save to localstorage
-
Add layer container style when selecting a layer
This library has been inspired from the following blog posts / library: