Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/F-star/suika
/ functions
Functions
1,502 in github.com/F-star/suika
⨍
Functions
1,502
◇
Types & classes
399
↓ 158 callers
Method
render
()
packages/core/src/scene/scene_graph.ts:39
↓ 104 callers
Method
get
(id: string)
packages/core/src/graphics/graphics_manger.ts:29
↓ 98 callers
Method
get
(key: K)
packages/core/src/setting.ts:180
↓ 94 callers
Method
getItems
({ excludeLocked = false } = {})
packages/core/src/selected_elements.ts:39
↓ 64 callers
Method
set
(key: K, value: SettingValue[K])
packages/core/src/setting.ts:176
↓ 62 callers
Method
updateAttrs
( partialAttrs: Partial<StarAttrs> & IAdvancedAttrs, options?: { finishRecomputed?: boolean }, )
packages/core/src/graphics/star.ts:216
↓ 60 callers
Method
on
(eventName: K, handler: Events[K])
apps/suika-multiplayer/src/store/y-suika.ts:148
↓ 49 callers
Function
isWindows
()
packages/common/src/common.ts:175
↓ 44 callers
Method
off
(eventName: K, handler: Events[K])
apps/suika-multiplayer/src/store/y-suika.ts:152
↓ 44 callers
Method
translate
(dx: number, dy: number)
packages/core/src/viewport_manager.ts:219
↓ 43 callers
Method
apply
* Get a new position with the current transformation applied. * Can be used to go from a child's coordinate space to the world coordinate space. (e
packages/geo/src/geo/geo_matrix_class.ts:95
↓ 40 callers
Method
emit
(eventName: K, ...args: Parameters<T[K]>)
packages/common/src/event_emitter.ts:19
↓ 38 callers
Method
getWorldTransform
()
packages/core/src/graphics/canvas.ts:30
↓ 35 callers
Method
add
(graphics: SuikaGraphics)
packages/core/src/graphics/graphics_manger.ts:15
↓ 33 callers
Method
getChildren
()
packages/core/src/graphics/graphics/graphics.ts:855
↓ 33 callers
Method
getGraphicsById
(id: string)
packages/core/src/graphics/document.ts:56
↓ 33 callers
Method
register
(keybinding: IKeyBinding)
packages/core/src/key_binding_manager.ts:126
↓ 30 callers
Method
save
()
apps/suika/src/store/auto-save-graphs.ts:42
↓ 28 callers
Method
getZoom
()
packages/core/src/viewport_manager.ts:46
↓ 28 callers
Method
recordOld
(id: string, attrs: Partial<ATTRS>)
packages/core/src/transaction.ts:15
↓ 27 callers
Method
commit
(desc: string)
packages/core/src/transaction.ts:57
↓ 26 callers
Method
getParent
()
packages/core/src/graphics/graphics/graphics.ts:963
↓ 25 callers
Method
getCurrentCanvas
()
packages/core/src/graphics/document.ts:77
↓ 25 callers
Method
getSceneCursorXY
get cursor scene xy
packages/core/src/editor.ts:238
↓ 25 callers
Method
getWorldTransform
()
packages/core/src/graphics/graphics/graphics.ts:844
↓ 23 callers
Function
distance
(p1: IPoint, p2: IPoint)
packages/geo/src/geo/geo_point.ts:34
↓ 23 callers
Method
drawControlHandles
(addedControlHandles: ControlHandle[] = [])
packages/core/src/path_editor/path_editor.ts:184
↓ 23 callers
Method
setCursor
(cursor: ICursor)
packages/core/src/cursor_manager/cursor_manager.ts:84
↓ 23 callers
Method
toViewportPt
(point: IPoint)
packages/core/src/editor.ts:221
↓ 22 callers
Method
pushCommand
( command: ICommand, hooks?: { beforeRedo?: () => void; beforeUndo?: () => void; },
packages/core/src/commands/command_manager.ts:128
↓ 21 callers
Function
getClosestTimesVal
(value: number, segment: number)
packages/common/src/common.ts:44
↓ 21 callers
Method
scale
* Applies a scale transformation to the matrix. * @param x - The amount to scale horizontally * @param y - The amount to scale vertically * @
packages/geo/src/geo/geo_matrix_class.ts:148
↓ 21 callers
Method
setSelection
(selection: Partial<ISelection>)
packages/core/src/text/selection_manager.ts:35
↓ 20 callers
Method
getArray
* Creates an array from the current Matrix object. * @returns The newly created array which contains the matrix
packages/geo/src/geo/geo_matrix_class.ts:85
↓ 20 callers
Method
isActive
()
packages/core/src/text/text_editor.ts:60
↓ 19 callers
Method
update
(attrs: SettingValue, changedKey: keyof SettingValue)
packages/core/src/setting.ts:7
↓ 18 callers
Function
cn
(...inputs: ClassValue[])
apps/suika-multiplayer/src/lib/utils.ts:4
↓ 18 callers
Function
cn
(...inputs: ClassValue[])
apps/suika/src/lib/utils.ts:4
↓ 18 callers
Method
isVisible
()
packages/core/src/graphics/graphics/graphics.ts:607
↓ 18 callers
Method
on
(eventName: K, handler: Events[K])
packages/core/src/tools/tool_manager.ts:301
↓ 18 callers
Function
parseHexToRGBA
(hex: string)
packages/common/src/color.ts:81
↓ 18 callers
Method
update
(id: string, attrs: Partial<ATTRS>)
packages/core/src/transaction.ts:20
↓ 18 callers
Method
updateParentSize
(elements: SuikaGraphics[])
packages/core/src/transaction.ts:37
↓ 17 callers
Method
insertChild
(graphics: SuikaGraphics, sortIdx?: string)
packages/core/src/graphics/graphics/graphics.ts:893
↓ 17 callers
Function
parseRGBAStr
({ r, g, b, a }: IRGBA)
packages/common/src/color.ts:11
↓ 16 callers
Method
applyInverse
* Get a new position with the inverse of the current transformation applied. * Can be used to go from the world coordinate space to a child's coord
packages/geo/src/geo/geo_matrix_class.ts:110
↓ 16 callers
Method
clear
()
packages/core/src/graphics/document.ts:50
↓ 16 callers
Method
getSortIndex
()
packages/core/src/graphics/graphics/graphics.ts:1017
↓ 16 callers
Method
rotate
* Applies a rotation transformation to the matrix. * @param angle - The angle in radians. * @returns This matrix. Good for chaining method calls
packages/geo/src/geo/geo_matrix_class.ts:164
↓ 16 callers
Method
setItems
(items: ISelectedIdxInfo[])
packages/core/src/path_editor/selected_control.ts:297
↓ 15 callers
Method
getOpacity
()
packages/core/src/graphics/graphics/graphics.ts:268
↓ 15 callers
Function
isFrameGraphics
( graphics: SuikaGraphics, )
packages/core/src/graphics/frame/frame.ts:352
↓ 15 callers
Method
isGroup
()
packages/core/src/graphics/frame/frame.ts:188
↓ 15 callers
Function
multiplyMatrix
(m1: IMatrixArr, m2: IMatrixArr)
packages/geo/src/geo/geo_matrix.ts:7
↓ 14 callers
Method
getBbox
()
packages/core/src/graphics/graphics/graphics.ts:214
↓ 14 callers
Method
off
(eventName: K, handler: Events[K])
packages/core/src/tools/tool_manager.ts:304
↓ 14 callers
Function
onChange
(value: number)
apps/suika-multiplayer/src/components/input/PercentInput.tsx:21
↓ 14 callers
Function
onChange
(value: number)
apps/suika/src/components/input/PercentInput.tsx:21
↓ 14 callers
Method
translate
* Translates the matrix on the x and y. * @param x - How much to translate x by * @param y - How much to translate y by * @returns This matri
packages/geo/src/geo/geo_matrix_class.ts:135
↓ 13 callers
Method
destroy
()
packages/core/src/editor.ts:38
↓ 13 callers
Function
getSweepAngle
( a: IPoint, b: IPoint, anticlockwise?: boolean, )
packages/geo/src/geo/geo_angle.ts:54
↓ 13 callers
Function
isPointInPolygon
(polygon: IPoint[], pt: IPoint)
packages/geo/src/geo/geo_polygon.ts:62
↓ 13 callers
Method
registerToolCtor
(toolCtor: IToolClassConstructor)
packages/core/src/tools/tool_manager.ts:93
↓ 12 callers
Method
addItems
(graphicsArr: SuikaGraphics[])
packages/core/src/scene/scene_graph.ts:54
↓ 12 callers
Method
append
* Appends the given Matrix to this Matrix. * @param matrix - The matrix to append. * @returns This matrix. Good for chaining method calls.
packages/geo/src/geo/geo_matrix_class.ts:187
↓ 12 callers
Function
arrangeAndRecord
(editor: SuikaEditor, type: ArrangeType)
packages/core/src/service/arrange_and_record.ts:9
↓ 12 callers
Function
getDefaultAttrs
()
packages/core/src/control_handle_manager/util.ts:117
↓ 12 callers
Method
removeFromParent
()
packages/core/src/graphics/graphics/graphics.ts:976
↓ 12 callers
Method
setDeleted
(val: boolean)
packages/core/src/graphics/graphics/graphics.ts:619
↓ 11 callers
Function
arrMap
( array: T[], cb: (item: T, index: number) => U, )
packages/common/src/array_util.ts:15
↓ 11 callers
Method
getLineHeightPx
()
packages/core/src/graphics/text/paragraph.ts:78
↓ 11 callers
Function
getNoConflictObjectName
( parent: SuikaGraphics, objectType: string, )
packages/core/src/utils/common.ts:3
↓ 11 callers
Method
getSelection
()
packages/core/src/text/selection_manager.ts:39
↓ 11 callers
Function
getTransformAngle
( transform: IMatrixArr, angleBase = { x: 0, y: -1 }, )
packages/geo/src/geo/geo_angle.ts:82
↓ 11 callers
Function
invertMatrix
(tf: IMatrixArr)
packages/geo/src/geo/geo_matrix.ts:34
↓ 11 callers
Function
pointAdd
(p1: IPoint, p2: IPoint)
packages/geo/src/geo/geo_point.ts:10
↓ 11 callers
Function
t
(params: { id: MessageIds })
apps/suika-multiplayer/src/components/Header/components/Toolbar/menu/Menu.tsx:32
↓ 11 callers
Function
t
(params: { id: MessageIds })
apps/suika/src/components/Header/components/Toolbar/menu/Menu.tsx:32
↓ 10 callers
Method
getCorrectedPoint
get corrected cursor point
packages/core/src/tools/tool_pen/tool_pen.ts:162
↓ 10 callers
Method
getFont
(fontFamily: string)
packages/core/src/font_manager/font_manager.ts:37
↓ 10 callers
Method
getSelectedCount
()
packages/core/src/selected_elements.ts:160
↓ 10 callers
Method
getSize
()
packages/core/src/graphics/graphics/graphics.ts:264
↓ 10 callers
Method
hitTest
(point: IPoint, _padding?: number)
packages/core/src/graphics/star.ts:223
↓ 10 callers
Function
mergeBoxes
(boxes: IBox[])
packages/geo/src/geo/geo_box.ts:17
↓ 10 callers
Method
setActiveTool
(toolName: string)
packages/core/src/tools/tool_manager.ts:271
↓ 9 callers
Function
boxToRect
(box: IBox)
packages/geo/src/geo/geo_rect.ts:315
↓ 9 callers
Method
fitContent
()
packages/core/src/graphics/text/text.ts:126
↓ 9 callers
Method
getIdSet
()
packages/core/src/selected_elements.ts:46
↓ 9 callers
Method
getOffsetAt
(pos: IPosition)
packages/core/src/graphics/text/paragraph.ts:395
↓ 9 callers
Function
lerp
(start: IPoint, end: IPoint, t: number)
packages/geo/src/geo/geo_point.ts:42
↓ 9 callers
Function
pointSub
(p1: IPoint, p2: IPoint)
packages/geo/src/geo/geo_point.ts:17
↓ 9 callers
Function
rectToVertices
(rect: IRect, tf?: IMatrixArr)
packages/geo/src/geo/geo_rect.ts:215
↓ 9 callers
Method
setWorldTransform
(worldTf: IMatrixArr)
packages/core/src/graphics/graphics/graphics.ts:1121
↓ 8 callers
Method
active
(params: { textGraphics?: SuikaText; pos?: IPoint; selection?: ISelection; })
packages/core/src/text/text_editor.ts:64
↓ 8 callers
Function
alignAndRecord
(editor: SuikaEditor, type: AlignType)
packages/core/src/service/align_and_record.ts:39
↓ 8 callers
Method
getAttrs
()
packages/core/src/setting.ts:183
↓ 8 callers
Function
getParentIdSet
(items: SuikaGraphics[])
packages/core/src/utils/group.ts:8
↓ 8 callers
Method
getPath
()
packages/core/src/path_editor/path_editor.ts:37
↓ 8 callers
Method
isLock
()
packages/core/src/graphics/graphics/graphics.ts:611
↓ 8 callers
Function
normalizeRadian
(radian: number)
packages/geo/src/geo/geo_angle.ts:17
next →
1–100 of 1,502, ranked by callers