Skip to content
This repository has been archived by the owner on May 20, 2022. It is now read-only.
/ svg Public archive

SVG utilities for TLDraw and maybe you, too.

License

Notifications You must be signed in to change notification settings

tldraw/svg

Repository files navigation

@tldraw/svg

This package contains SVG utility functions used by tldraw.

💕 Love this library? Consider becoming a sponsor.

Installation

Use your package manager of choice to install @tldraw/svg and its peer dependencies.

yarn add @tldraw/svg
# or
npm i @tldraw/svg

Usage

This library exports several functions that can be used to create SVG path data.

import { moveTo, lineTo, bezierTo } from "@tldraw/svg"

const pathData = [
  moveTo([5, 5]),
  lineTo([10, 20]),
  bezierTo([12, 22], [16, 32], [16, 30]),
].join()

Community

Support

Need help? Please open an issue for support.

Discussion

Want to connect with other devs? Visit the Discord channel.

License

This project is licensed under MIT. If you're using the library in a commercial product, please consider becoming a sponsor.

Author

About

SVG utilities for TLDraw and maybe you, too.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published