Created
February 22, 2020 21:49
-
-
Save jodyheavener/bfbb3b957a24603f152e3aeade8b90a2 to your computer and use it in GitHub Desktop.
Creating a simple Rectangle with DTPM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { insert, Rectangle } from 'dtpm/document'; | |
| const rectangle = new Rectangle({ | |
| name: 'Example', | |
| width: 100, | |
| height: 200, | |
| fill: '#2345ac' | |
| }); | |
| // insert it in the page afterward | |
| insert(rectangle); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment