Loading...
Loading...
Writing SDK documentation for tldraw. Use when creating new documentation articles, updating existing docs, or when documentation writing guidance is needed. Applies to docs in apps/docs/content/.
npx skill4agent add tldraw/tldraw write-docsapps/docs/content/| Directory | Purpose |
|---|---|
| SDK documentation articles |
| Release notes (see write-release-notes skill) |
| Example documentation |
| Quickstart and setup guides |
apps/examples/.mdx---
title: Feature name
status: published
author: steveruizok
date: 3/22/2023
order: 1
keywords:
- keyword1
- keyword2
---[ClassName](?)[ClassName#methodName](?)The [Editor](?) class has many methods. Use [Editor#createShapes](?) to create shapes.<FocusLines><FocusLines lines={[2,6,10]}>
\`\`\`tsx
import { Tldraw } from 'tldraw'
import { useSyncDemo } from '@tldraw/sync'
\`\`\`
</FocusLines><Image
src="/images/api/events.png"
alt="A diagram showing an event being sent to the editor."
title="Caption text here."
/>| Method | Description |
| ------------------------ | ---------------------------------------------- |
| [Editor#screenToPage](?) | Convert a point in screen space to page space. |
| [Editor#pageToScreen](?) | Convert a point in page space to screen space. || Value | Description |
| --------- | ---------------------------------------------------- |
| `default` | Sets the initial zoom to 100%. |
| `fit-x` | The x axis will completely fill the viewport bounds. |../shared/docs-guide.md