docs: adding PR guidelines for contributors (#2736)

This commit is contained in:
Carl Sverre 2021-01-06 15:53:12 -05:00 committed by GitHub
parent 629341da4d
commit a13c4f72f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 84 additions and 66 deletions

View file

@ -4,6 +4,4 @@
First release of `@excalidraw/utils` to provide utilities functions.
- Added `exportToBlob` and `exportToSvg` to export an Excalidraw diagram definition, respectively,
to a [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob) and
to a [SVGElement](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement) ([#2246](https://github.com/excalidraw/excalidraw/pull/2246))
- Added `exportToBlob` and `exportToSvg` to export an Excalidraw diagram definition, respectively, to a [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob) and to a [SVGElement](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement) ([#2246](https://github.com/excalidraw/excalidraw/pull/2246))

View file

@ -24,8 +24,7 @@ Export an Excalidraw diagram to a [SVGElement](https://developer.mozilla.org/en-
## Usage
Excalidraw utils is published as a UMD (Universal Module Definition).
If you are using a Web bundler (for instance, Webpack), you can import it as an ES6 module:
Excalidraw utils is published as a UMD (Universal Module Definition). If you are using a Web bundler (for instance, Webpack), you can import it as an ES6 module:
```js
import { exportToSvg, exportToBlob } from "@excalidraw/utils";