componentDidMount() { const { active, fullscreen } = this.props; const { container, image, canvas } = this.refs;
const ClimbuddyCanvas = require('../ClimbuddyCanvas');
this.canvas = new PaperCanvas({ container: container, image: image, canvas: canvas, active: active, fullscreen: fullscreen });}
componentDidUpdate(prevProps, prevState) { const { active, image, route, fullscreen } = this.props; if (active !== prevProps.active) { this.canvas.setActive(active); } if (image !== prevProps.image) { this.canvas.loadImage(image); } if (route !== prevProps.route) { this.canvas.setRoute(route); } if (fullscreen !== prevProps.fullscreen) { this.canvas.resize(); }}<Paper width={600} height={400}> <Project> <Layer> <PathCircle center={[80, 50]} radius={30} strokeColor={'black'} /> </Layer> <Layer> <PathCircle center={[180, 150]} radius={40} strokeColor={'red'} /> </Layer> </Project> <Tools> <Tool name={'pen'} onMouseDown={this.draw} /> <Tool name={'eraser'} onMouseDown={this.erase} /> </Tools></Paper>--
You received this message because you are subscribed to a topic in the Google Groups "Paper.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/paperjs/_6fTuEnciA0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to paperjs+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.