Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boardsite-io/boardsite
/ functions
Functions
494 in github.com/boardsite-io/boardsite
⨍
Functions
494
◇
Types & classes
137
↓ 70 callers
Method
getState
()
src/state/view/state/index.ts:27
↓ 55 callers
Method
render
()
src/state/board/state/index.types.ts:47
↓ 42 callers
Function
useGState
(subscription: Subscription)
src/state/subscription/useGState.ts:28
↓ 35 callers
Method
create
* Create a notification with a specified duration * @param id intl message id of notification message * @param duration notification duratio
src/state/notification/state/index.ts:24
↓ 27 callers
Method
isConnected
()
src/state/online/state/index.ts:62
↓ 26 callers
Method
getState
()
src/state/board/state/index.ts:25
↓ 25 callers
Method
saveToLocalStorage
()
src/state/types.ts:21
↓ 20 callers
Method
setTool
(tool: Tool)
src/drawing/livestroke/index.types.ts:7
↓ 19 callers
Method
setDialogState
* Set the session dialog state * @param dialogState new dialog state
src/state/menu/state/index.ts:39
↓ 18 callers
Method
deserialize
(serialized: U)
src/state/types.ts:16
↓ 17 callers
Function
formatMessage
( id: IntlMessageId, values?: FormatMessageArgs[1] )
src/util/testing/index.tsx:48
↓ 16 callers
Method
serialize
()
src/state/types.ts:15
↓ 15 callers
Method
isAuthorized
()
src/state/online/state/index.ts:70
↓ 15 callers
Function
resolveApp
(relativePath)
config/paths.js:10
↓ 14 callers
Function
createOnlineMock
()
src/state/online/state/index.test.ts:67
↓ 13 callers
Method
jsonSend
( method: Method, url: string, useUserValidation?: boolean, data?: unknown
src/api/request.ts:74
↓ 13 callers
Method
setState
(newState: Partial<BoardState>)
src/state/board/state/index.ts:29
↓ 12 callers
Method
closeMainMenu
* Close the main menu
src/state/menu/state/index.ts:56
↓ 12 callers
Method
setID
(pageId: string)
src/drawing/page/index.ts:30
↓ 11 callers
Method
join
(copyOffline?: boolean)
src/state/online/state/index.ts:231
↓ 10 callers
Method
addPages
* Add pages * @param addPageData pages and respective indices to be added
src/state/board/state/index.ts:222
↓ 10 callers
Method
getState
()
src/state/settings/state/index.ts:12
↓ 10 callers
Method
getState
()
src/state/action/state/index.ts:28
↓ 10 callers
Method
setTheme
* Set the global theme * @param theme new theme to be set
src/state/settings/state/index.ts:41
↓ 9 callers
Method
getPageIndex
* Get the index of the current page * @returns the current page index
src/state/view/state/index.ts:46
↓ 9 callers
Method
loadFromLocalStorage
()
src/state/types.ts:22
↓ 8 callers
Method
addOrUpdateStrokes
* Add or update strokes * @param strokes new strokes or stroke updates
src/state/board/state/index.ts:167
↓ 8 callers
Method
getPageSize
* Util function to get the page size of a specified page * @param pageIndex page index * @returns pageSize of target page
src/state/board/state/index.ts:147
↓ 8 callers
Method
updateMeta
(meta: PageMeta)
src/drawing/page/index.ts:39
↓ 8 callers
Method
updateViewTransform
* Update the view transform. Bounds and a pixel scale update are applied if necessary * @param newTransform transform update to be applied
src/state/view/state/index.ts:141
↓ 7 callers
Method
clearTransform
* Clear shape transformer
src/state/board/state/index.ts:85
↓ 7 callers
Function
getHitboxPolygon
( [x1, y1, x2, y2]: number[], stroke: Pick<Stroke, "style" | "scaleX" | "scaleY"> )
src/drawing/hitbox/index.ts:78
↓ 7 callers
Function
getTouchPosition
({ event, pageOffset, transform, }: GetTouchPositionProps)
src/util/drawing/index.ts:31
↓ 7 callers
Method
setMainMenu
* Set the main menu state * @param newState new main menu state
src/state/menu/state/index.ts:48
↓ 7 callers
Method
setPageIndex
* Go to a page of a specified index * @param pageIndex target page index
src/state/view/state/index.ts:54
↓ 7 callers
Method
triggerAction
(action: StackAction)
src/state/action/state/index.ts:70
↓ 6 callers
Method
deletePages
(pageIds: PageId[])
src/state/action/state/index.ts:227
↓ 6 callers
Function
getMousePosition
({ event, pageOffset, transform, }: GetMousePositionProps)
src/util/drawing/index.ts:51
↓ 6 callers
Method
scale
(delta: Point, trHandle: TrHandle)
src/View/Board/RenderNG/Page/Transformer/shapeTransform/index.ts:133
↓ 6 callers
Method
sendStrokes
(strokes: Stroke[])
src/state/online/state/index.ts:266
↓ 6 callers
Method
setPageBackground
* Change the paper setting which will be used when adding new pages * @param paper paper style setting
src/state/drawing/state/index.ts:90
↓ 6 callers
Function
setup
()
src/View/Dialog/OnlineJoin/index.test.tsx:42
↓ 6 callers
Method
updatePages
(pageUpdates: Pick<Page, "pageId" | "meta">[])
src/state/action/state/index.ts:169
↓ 5 callers
Method
getCenterX
()
src/state/view/state/index.ts:267
↓ 5 callers
Method
getHeaders
(useUserValidation?: boolean)
src/api/request.ts:61
↓ 5 callers
Function
getMockStroke
(pageId: PageId, i?: number)
src/state/board/state/index.test.ts:15
↓ 5 callers
Method
getState
()
src/state/online/state/index.ts:37
↓ 5 callers
Function
isValidClick
(e: MouseEvent<HTMLElement>)
src/util/drawing/index.ts:85
↓ 5 callers
Function
startBackgroundJob
( userMessage: IntlMessageId, job: () => Promise<T> )
src/storage/util/index.ts:18
↓ 5 callers
Function
submitJoin
({ alias, sessionId, getByLabelText, getByRole, }: SubmitCreateProps)
src/View/Dialog/OnlineJoin/index.test.tsx:14
↓ 5 callers
Method
syncPages
({ pageRank, pages }: PageSync)
src/state/online/state/index.ts:472
↓ 5 callers
Function
useIntl
()
src/language/index.tsx:35
↓ 4 callers
Function
applyTransform1D
(x: number, scale: number, offset: number)
src/state/view/util/helpers.ts:28
↓ 4 callers
Method
deleteStrokes
* Delete strokes * @param strokes strokes to be deleted
src/state/board/state/index.ts:187
↓ 4 callers
Method
disconnect
()
src/state/online/state/index.ts:201
↓ 4 callers
Function
draw
( ctx: CanvasRenderingContext2D, stroke: Stroke | LiveStroke )
src/util/render/shapes/index.ts:12
↓ 4 callers
Function
drawLiveStroke
( liveStroke: LiveStroke, canvasRef: React.RefObject<HTMLCanvasElement> )
src/util/drawing/index.ts:10
↓ 4 callers
Function
getDefaultBoardState
()
src/state/board/state/default.ts:3
↓ 4 callers
Function
getStyleLoaders
(cssOptions, preProcessor)
config/webpack.config.js:108
↓ 4 callers
Function
getTransformedPoints
(stroke: Stroke)
src/drawing/hitbox/index.ts:180
↓ 4 callers
Method
isAnyMenuOpen
* Check if any menu / dialog is open * @returns true if any menu or dialog is open
src/state/menu/state/index.ts:26
↓ 4 callers
Function
isValidTouch
(e: TouchEvent<HTMLElement>)
src/util/drawing/index.ts:93
↓ 4 callers
Method
jumpToNextPage
* Go to the next page
src/state/view/state/index.ts:183
↓ 4 callers
Method
load
()
src/drawing/attachment/pdf/index.tsx:43
↓ 4 callers
Function
onEnter
(newState: MainMenuState, currentState: MainMenuState)
src/View/MainMenu/MainMenuBar/index.tsx:33
↓ 4 callers
Function
reduceRecord
( record: Record<string, T>, fn: (a: T) => U )
src/util/lib/index.ts:1
↓ 4 callers
Method
setPageSize
* Change the page size setting which will be used when adding new pages * @param size page size setting;
src/state/drawing/state/index.ts:100
↓ 4 callers
Method
setTextfieldAttributes
(textfield: TextfieldAttrs)
src/state/board/state/index.ts:118
↓ 4 callers
Function
setup
()
src/View/Dialog/OnlineCreate/index.test.tsx:33
↓ 4 callers
Function
strokeStyleToRGBA
(style: StrokeStyle)
src/util/color/index.tsx:11
↓ 4 callers
Method
update
* Update stroke such as position and/or scale.
src/drawing/stroke/index.tsx:61
↓ 4 callers
Method
updateUser
* Update user properties, such as alias and color, in an online session * @param user partial properties for update
src/state/online/state/index.ts:107
↓ 4 callers
Function
useLayerConfig
( canvasRef: React.RefObject<HTMLCanvasElement>, page?: Page )
src/hooks/useLayerConfig.ts:6
↓ 3 callers
Method
addPage
(index: number)
src/state/action/state/index.ts:149
↓ 3 callers
Method
addPageUnder
()
src/state/action/state/index.ts:264
↓ 3 callers
Method
addStrokes
(strokes: Stroke[])
src/state/action/state/index.ts:85
↓ 3 callers
Method
clearActiveTextfield
()
src/state/board/state/index.ts:125
↓ 3 callers
Method
createSession
(createConfig: Partial<SessionConfig>)
src/state/online/state/index.ts:137
↓ 3 callers
Method
deleteAllPages
()
src/state/action/state/index.ts:279
↓ 3 callers
Method
eraseStrokes
(strokes: StrokeDelete[])
src/state/online/state/index.ts:282
↓ 3 callers
Function
getDefaultDrawingState
()
src/state/drawing/state/default.ts:11
↓ 3 callers
Function
getDefaultOnlineState
()
src/state/online/state/default.ts:9
↓ 3 callers
Function
getDefaultSettingsState
()
src/state/settings/state/default.ts:5
↓ 3 callers
Function
getDefaultViewState
()
src/state/view/state/default.ts:8
↓ 3 callers
Method
getNumberOfUsers
()
src/state/online/state/index.ts:379
↓ 3 callers
Function
getRandomColor
()
src/util/color/index.tsx:3
↓ 3 callers
Function
getUnflippedRect
(points: Stroke["points"])
src/util/render/shapes/index.ts:174
↓ 3 callers
Function
getVerifiedPageIds
(pageIds: PageRank)
src/drawing/helpers/index.ts:4
↓ 3 callers
Method
handler
()
src/state/action/state/index.ts:88
↓ 3 callers
Function
isDrawType
(type: ToolType)
src/util/drawing/index.ts:78
↓ 3 callers
Method
isHost
()
src/state/online/state/index.ts:78
↓ 3 callers
Method
jumpToFirstPage
* Go to the first page
src/state/view/state/index.ts:201
↓ 3 callers
Method
jumpToPrevPage
* Go to the previous page
src/state/view/state/index.ts:192
↓ 3 callers
Method
load
()
src/state/board/state/index.types.ts:43
↓ 3 callers
Method
newWorkspace
()
src/state/action/state/index.ts:298
↓ 3 callers
Method
onLastPage
* Find out if currently on last page * @returns true if on last page
src/state/view/state/index.ts:163
↓ 3 callers
Method
renderPagesWithStrokeChanges
* Rerender all pages which have changed content * @param strokes stroke updates which could require a content render
src/state/board/state/index.ts:201
↓ 3 callers
Method
resetView
* Reset the view transform to the default values
src/state/view/state/index.ts:114
↓ 3 callers
Function
resolveModule
(resolveFn, filePath)
config/paths.js:41
↓ 3 callers
Method
setActiveTextfield
(activeTextfield: ActiveTextfield)
src/state/board/state/index.ts:112
next →
1–100 of 494, ranked by callers