You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A nice feature would be to able to control the sketch-data from the parent-component/props. This way two persons can draw together by sharing and mutating external data for example.
Adding this to componentWillReceiveProps, could be a quick solution:
if(defaultData) {
if ('json' === defaultDataType) {
this.fromJSON(defaultData);
}
if ('url' === defaultDataType) {
this.fromDataURL(defaultData);
}
}
or maybe have another prop?
The text was updated successfully, but these errors were encountered:
**0.4.0** New Features and fixes
- Fixes
-- Upgraded to latest packages (thanks @fjogeleit)
-- Fix for undo/redo (thanks @pomelyu)
-- Issue #9 fixed
-- Issue #10 and #15 you can no longer give dataUrl as value only as background image and/or by adding the image as an object
- Breaking Changes
-- `data` and `dataType` properties have been replaced with `value` and `defaultValue`
to be able to use the component as controlled component
-- node support of 6,7 and 8
- New Features
-- ability to add an image as object
A nice feature would be to able to control the sketch-data from the parent-component/props. This way two persons can draw together by sharing and mutating external data for example.
Adding this to componentWillReceiveProps, could be a quick solution:
or maybe have another prop?
The text was updated successfully, but these errors were encountered: