mifi / mifi/editly

How to set custom func parameters when type=canvas

Open
#159 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.