Scope

Github Logo
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 import React, { useState } from 'react'; import type { NextPage } from 'next'; import { Page, Container, Canvas, Code } from 'components/content'; import { PaperScope, View, Layer, Circle } from 'react-paper-bindings'; // PaperScope needs to be imported from react-paper-bindings // for the instanceof checks to work properly in renderer const ScopePage: NextPage = () => { const [scope] = useState(new PaperScope()); return ( <Page title="Scope"> <Container> <Canvas scope={scope}> <View> <Layer> <Circle fillColor="red" center={[75, 75]} radius={30} /> </Layer> </View> </Canvas> </Container> </Page> ); }; export default ScopePage;
react-paper-bindings
  • Editor
  • Scope
  • Multi Canvas
  • Animations
  • Layers
  • Tools
  • Events
  • Refs
  • Selection
  • Reorder
  • CompoundPath