Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Hufe921/canvas-editor
/ functions
Functions
1,174 in github.com/Hufe921/canvas-editor
⨍
Functions
1,174
◇
Types & classes
446
↓ 182 callers
Method
add
(payload: Promise<unknown>)
src/editor/core/observer/ImageObserver.ts:8
↓ 153 callers
Method
render
(payload?: IDrawOption)
src/editor/core/draw/Draw.ts:2805
↓ 122 callers
Method
getEditor
()
cypress/global.d.ts:11
↓ 107 callers
Method
getValue
(context?: IControlContext)
src/editor/interface/Control.ts:138
↓ 86 callers
Function
createTestEditor
(params: CreateTestEditorParams = {})
tests/factories/editor.ts:48
↓ 86 callers
Method
getOptions
()
src/editor/core/draw/Draw.ts:633
↓ 84 callers
Method
isReadonly
()
src/editor/core/draw/Draw.ts:375
↓ 74 callers
Method
click
()
src/editor/core/event/CanvasEvent.ts:188
↓ 70 callers
Method
getRange
()
src/editor/core/draw/Draw.ts:669
↓ 70 callers
Method
getRange
()
src/editor/core/draw/control/Control.ts:387
↓ 62 callers
Method
spliceElementList
( elementList: IElement[], start: number, deleteCount: number, items?: IElement[], options
src/editor/core/draw/Draw.ts:817
↓ 56 callers
Method
remove
(elementList: IElement[])
src/editor/core/command/CommandAdapt.ts:2055
↓ 54 callers
Method
addEventListener
()
tests/setup.ts:40
↓ 49 callers
Method
destroy
()
tests/factories/editor.ts:31
↓ 48 callers
Method
getPositionContext
()
src/editor/core/position/Position.ts:513
↓ 46 callers
Method
setRange
( startIndex: number, endIndex: number, tableId?: string, startTdIndex?: number, endTdInde
src/editor/core/range/RangeManager.ts:416
↓ 45 callers
Method
getOriginalElementList
()
src/editor/core/draw/Draw.ts:708
↓ 45 callers
Method
isDisabled
()
src/editor/core/draw/Draw.ts:393
↓ 44 callers
Method
getElementList
()
src/editor/core/draw/Draw.ts:693
↓ 43 callers
Method
getElementList
()
src/editor/core/draw/control/Control.ts:370
↓ 41 callers
Function
deepClone
(obj: T)
src/editor/utils/index.ts:57
↓ 39 callers
Function
getUUID
()
src/editor/utils/index.ts:96
↓ 35 callers
Method
getDraw
()
src/editor/core/event/CanvasEvent.ts:71
↓ 34 callers
Method
getOriginalMainElementList
()
src/editor/core/draw/Draw.ts:719
↓ 34 callers
Method
getRange
()
src/editor/core/command/CommandAdapt.ts:1562
↓ 34 callers
Method
setPositionContext
(payload: IPositionContext)
src/editor/core/position/Position.ts:517
↓ 31 callers
Method
getControl
()
src/editor/core/draw/Draw.ts:966
↓ 30 callers
Method
getPosition
()
src/editor/core/draw/Draw.ts:661
↓ 29 callers
Method
emit
( eventName: K, payload?: EventMap[K] extends (payload: infer P) => void ? P : never )
src/editor/core/event/eventbus/EventBus.ts:18
↓ 29 callers
Method
getZone
()
src/editor/core/draw/Draw.ts:665
↓ 29 callers
Method
render
()
src/editor/core/draw/particle/table/TableTool.ts:85
↓ 29 callers
Method
replace
(payload: string, option?: IReplaceOption)
src/editor/core/draw/interactive/Search.ts:397
↓ 29 callers
Function
zipElementList
( payload: IElement[], options: IZipElementListOption = {} )
src/editor/utils/element.ts:651
↓ 28 callers
Method
getElementList
(htmlText?: string)
src/editor/core/command/CommandAdapt.ts:2250
↓ 28 callers
Method
getText
()
src/editor/core/command/CommandAdapt.ts:1507
↓ 28 callers
Method
isSubscribe
(eventName: K)
src/editor/core/event/eventbus/EventBus.ts:42
↓ 27 callers
Method
getHeight
()
src/editor/core/draw/Draw.ts:443
↓ 27 callers
Method
remove
()
src/editor/core/draw/particle/block/modules/BaseBlock.ts:303
↓ 26 callers
Method
getPositionList
()
src/editor/core/draw/frame/Header.ts:45
↓ 24 callers
Method
toString
()
src/editor/core/range/RangeManager.ts:719
↓ 22 callers
Method
getMargins
()
src/editor/core/draw/Draw.ts:492
↓ 22 callers
Method
removeEventListener
()
tests/setup.ts:41
↓ 21 callers
Method
getActiveControl
()
src/editor/core/draw/control/Control.ts:432
↓ 21 callers
Function
splitText
(text: string)
src/editor/utils/index.ts:116
↓ 20 callers
Function
formatElementList
( elementList: IElement[], options: IFormatElementListOption )
src/editor/utils/element.ts:75
↓ 20 callers
Method
getIsDisabledControl
(context: IControlContext = {})
src/editor/core/draw/control/Control.ts:271
↓ 20 callers
Method
getPosition
()
src/editor/core/draw/control/Control.ts:374
↓ 20 callers
Method
translate
(path: string)
src/editor/core/command/CommandAdapt.ts:2112
↓ 19 callers
Method
complete
()
src/editor/core/draw/particle/TextParticle.ts:123
↓ 19 callers
Method
getInnerWidth
()
src/editor/core/draw/Draw.ts:469
↓ 18 callers
Method
getCursor
()
src/editor/core/draw/Draw.ts:910
↓ 17 callers
Method
addPlaceholder
(startIndex: number, context: IControlContext = {})
src/editor/core/draw/control/Control.ts:896
↓ 17 callers
Method
getCursorPosition
()
src/editor/core/position/Position.ts:509
↓ 17 callers
Function
pickObject
(object: T, pickKeys: (keyof T)[])
src/editor/utils/index.ts:291
↓ 16 callers
Function
formatElementContext
( sourceElementList: IElement[], formatElementList: IElement[], anchorIndex: number, options?: IFormat
src/editor/utils/element.ts:1016
↓ 16 callers
Method
getDraw
()
src/editor/core/draw/control/Control.ts:125
↓ 16 callers
Method
getHeight
(pageNo?: number)
src/editor/core/draw/frame/Header.ts:109
↓ 16 callers
Method
getTableTool
()
src/editor/core/draw/Draw.ts:922
↓ 15 callers
Function
createMockDraw
(options: { disabled: boolean })
tests/core/accessibility/Accessibility.test.ts:4
↓ 15 callers
Method
emitControlContentChange
(options?: IControlChangeOption)
src/editor/core/draw/control/Control.ts:612
↓ 15 callers
Method
getIsCollapsed
()
src/editor/core/range/RangeManager.ts:104
↓ 15 callers
Method
getSelectionElementList
()
src/editor/core/range/RangeManager.ts:125
↓ 14 callers
Method
getExtraHeight
(pageNo?: number)
src/editor/core/draw/frame/Header.ts:120
↓ 14 callers
Method
getFooterElementList
()
src/editor/core/draw/Draw.ts:723
↓ 14 callers
Method
getHeaderElementList
()
src/editor/core/draw/Draw.ts:681
↓ 14 callers
Method
getPageGap
()
src/editor/core/draw/Draw.ts:503
↓ 14 callers
Method
getPageNo
()
src/editor/core/draw/Draw.ts:575
↓ 14 callers
Function
mergeOption
( options: IEditorOption = {} )
src/editor/utils/option.ts:66
↓ 13 callers
Method
_update
()
src/editor/core/draw/particle/date/DatePicker.ts:457
↓ 13 callers
Method
getEventBus
()
src/editor/core/draw/Draw.ts:902
↓ 13 callers
Method
getHeader
()
src/editor/core/draw/Draw.ts:938
↓ 13 callers
Method
getIsRangeWithinControl
()
src/editor/core/draw/control/Control.ts:238
↓ 13 callers
Method
getWidth
()
src/editor/core/draw/Draw.ts:439
↓ 13 callers
Function
omitObject
(object: T, omitKeys: (keyof T)[])
src/editor/utils/index.ts:301
↓ 13 callers
Function
transform
( expr: Expr, sclx: number, scly: number, x: number, y: number, notFirst?: boolean )
src/editor/core/draw/particle/latex/utils/LaTexUtils.ts:210
↓ 12 callers
Method
measureText
( ctx: CanvasRenderingContext2D, element: IElement )
src/editor/core/draw/particle/TextParticle.ts:88
↓ 11 callers
Function
convertNumberToChinese
(num: number)
src/editor/utils/index.ts:217
↓ 11 callers
Function
getIsBlockElement
(element?: IElement)
src/editor/utils/element.ts:1822
↓ 11 callers
Method
getPagePixelRatio
()
src/editor/core/draw/Draw.ts:1133
↓ 11 callers
Method
isDesignMode
()
src/editor/core/draw/Draw.ts:417
↓ 11 callers
Function
isMod
(evt: KeyboardEvent | MouseEvent)
src/editor/utils/hotkey.ts:3
↓ 11 callers
Method
setDefaultStyle
(style: IRangeElementStyle | null)
src/editor/core/range/RangeManager.ts:57
↓ 11 callers
Method
shrinkBoundary
(context: IControlContext = {})
src/editor/core/draw/control/Control.ts:428
↓ 10 callers
Method
dispose
()
src/editor/core/contextmenu/ContextMenu.ts:358
↓ 10 callers
Method
drawCursor
(payload?: IDrawCursorOption)
src/editor/core/cursor/Cursor.ts:110
↓ 10 callers
Method
getContainer
()
src/editor/core/draw/control/Control.ts:366
↓ 10 callers
Method
getMode
()
src/editor/core/draw/Draw.ts:351
↓ 10 callers
Method
getPreviewer
()
src/editor/core/draw/Draw.ts:914
↓ 10 callers
Method
input
(data: string)
src/editor/core/event/CanvasEvent.ts:215
↓ 10 callers
Function
nf
(x: number)
src/editor/core/draw/particle/latex/utils/LaTexUtils.ts:1006
↓ 10 callers
Method
removeControl
( startIndex: number, context: IControlContext = {} )
src/editor/core/draw/control/Control.ts:807
↓ 10 callers
Method
setRange
( startIndex: number, endIndex: number, tableId?: string, startTdIndex?: number, endTdInde
src/editor/core/command/CommandAdapt.ts:223
↓ 10 callers
Method
t
(path: string)
src/editor/core/i18n/I18n.ts:36
↓ 9 callers
Function
cloneProperty
( properties: (keyof T)[], sourceElement: T, targetElement: T )
src/editor/utils/index.ts:266
↓ 9 callers
Method
getHeaderTop
(pageNo?: number)
src/editor/core/draw/frame/Header.ts:92
↓ 9 callers
Method
getOriginalPositionList
()
src/editor/core/position/Position.ts:200
↓ 9 callers
Function
isObject
(type: unknown)
src/editor/utils/index.ts:176
↓ 9 callers
Method
on
( eventName: K, callback: EventMap[K] )
src/editor/core/event/eventbus/EventBus.ts:8
↓ 9 callers
Method
replaceRange
(range: IRange)
src/editor/core/range/RangeManager.ts:469
↓ 8 callers
Function
S4
()
src/editor/utils/index.ts:97
next →
1–100 of 1,174, ranked by callers