Drawing & Annotations
Available since v0.23
We have drauu built-in for drawing and annotation that could enhance your presentation further.
To start, click the icon in the toolbar and start drawing. It's also available in the Presenter Mode. Drawings and annotations you created will be synced up automatically across all instances in real-time.
Use with Stylus Pen
When using a stylus pen on a tablet (for example, iPad with Apple Pencil), Slidev could smartly detect the input type. You can directly draw on your slides with the pen without turning on the drawing mode, while having your fingers or mouse control the navigation.
The following frontmatter configuration allows you to persist your drawings as SVGs under
.slidev/drawings directory and have them inside your exported pdf or hosted site.
--- drawings: persist: true ---
--- drawings: enabled: false ---
Only in Development:
--- drawings: enabled: dev ---
Only in Presenter Mode:
--- drawings: presenterOnly: true ---
By default, Slidev syncs up your drawings across all instances. If you are sharing your slides with others, you might want to disable the syncing by:
--- drawings: syncAll: false ---
With this config, only the drawing from the presenter instance will be able to sync with others.