MCPcopy Create free account
hub / github.com/editablejs/editable / setPercentage

Function setPercentage

packages/plugins/image/src/utils.ts:91–93  ·  view source on GitHub ↗
(editor: Editor, path: Path, percentage: number)

Source from the content-addressed store, hash-verified

89}
90
91export const setPercentage = (editor: Editor, path: Path, percentage: number) => {
92 Transforms.setNodes<Image>(editor, { percentage }, { at: path })
93}
94
95export const insertImage = (editor: Editor, options: Partial<Image>) => {
96 const image: Image = {

Callers 1

uploadImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…