excali-tool
v0.1.1
Published
A tool for excalidraw, running on node.js
Downloads
16
Readme
Excali Tool
Some excalidraw function runs on Node.js. (Server Side)
Install
https://www.npmjs.com/package/excali-tool
npm i excali-tool
Usage
convertToExcalidrawElements
import { ExcalidrawElementSkeleton } from 'excali-tool/dist/data/transform'
import { convertToExcalidrawElements } from 'excali-tool'
const rawData: Array<ExcalidrawElementSkeleton> = [
{
type: 'text',
x: 100,
y: 100,
text: 'Hello world',
customData: {
createdBy: 'user1'
}
}
]
const convertedElements = convertToExcalidrawElements(rawData)
console.log(convertedElements)