How to set custom func parameters when type=canvas
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.5k
- Forks
- 374
- PR merge metrics
- No merged PRs in 30d
Description
How to set custom func parameters when type=canvas
async function funcCanvas({ width, height, canvas}) {
const image = await loadImage('./assets_my/IMG_4870.jpg')
function onRender(progress) {
}
function onClose() {
// Cleanup if you initialized anything
}
return { onRender, onClose };
}
For example, I want to customize the path of the picture
Thanks!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue only provides a funcCanvas example and asks how to customize the image path. Start by locating the canvas custom-function API and its parameter-handling documentation or examples. Done means explaining the supported way to pass a custom path, with an example that matches the shown function.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100