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
↓ 3 callers
Method
setToken
* Set the github authorization token * @param token authorization token
src/state/online/state/index.ts:121
↓ 3 callers
Method
setUser
* Update the local user settings, such as alias and color * @param user an update to the user selection
src/state/online/state/index.ts:95
↓ 3 callers
Function
submitCreate
({ userAlias, getByLabelText, getByRole, }: SubmitCreateProps)
src/View/Dialog/OnlineCreate/index.test.tsx:13
↓ 3 callers
Function
usePageLayer
(pageLayer: PageLayer, pageId: PageId)
src/state/subscription/usePageLayer.ts:7
↓ 3 callers
Function
zoomTo
({ viewTransform, zoomPoint, zoomScale, }: ZoomToProps)
src/state/view/util/zoomTo.ts:12
↓ 2 callers
Method
addAttachments
* Add new attachments * @param attachments new attachments
src/state/board/state/index.ts:56
↓ 2 callers
Method
addStrokes
(strokes: (Stroke | SerializedStroke)[])
src/drawing/page/index.ts:44
↓ 2 callers
Function
applyBound
({ value, min, max }: ApplyBoundProps)
src/state/view/util/bounds.ts:60
↓ 2 callers
Function
applyTransformTo
({ point, pageOffset, transform, }: ApplyTransformToProps)
src/util/drawing/index.ts:69
↓ 2 callers
Method
calculateHitbox
()
src/drawing/stroke/index.tsx:93
↓ 2 callers
Method
clearAttachments
* Clear all attachments
src/state/board/state/index.ts:77
↓ 2 callers
Method
clearPages
* Clear pages * @param pageIds ids of pages which should be cleared
src/state/board/state/index.ts:258
↓ 2 callers
Method
clearPages
(pageIds: PageId[])
src/state/action/state/index.ts:197
↓ 2 callers
Method
clearUndoRedo
* Clear undo and redo stack
src/state/action/state/index.ts:40
↓ 2 callers
Method
connectWebsocket
(sessionId: string)
src/state/online/state/index.ts:160
↓ 2 callers
Function
createMockSocket
(fn: (data: Message<T[]>) => void)
src/state/online/state/index.test.ts:79
↓ 2 callers
Method
createSocket
(sessionId: string, password?: string)
src/state/online/state/index.ts:147
↓ 2 callers
Method
deleteCurrentPage
()
src/state/action/state/index.ts:274
↓ 2 callers
Method
deletePages
* Delete pages * @param pageIds ids of pages which should be deleted
src/state/board/state/index.ts:241
↓ 2 callers
Method
deleteStrokes
(strokes: Stroke[])
src/state/action/state/index.ts:131
↓ 2 callers
Method
disconnectCleanUp
* Clear board state and update session UI
src/state/online/state/index.ts:214
↓ 2 callers
Function
drawBackground
( ctx: CanvasRenderingContext2D, meta: PageMeta )
src/util/render/backgrounds/index.ts:5
↓ 2 callers
Function
drawStroke
( ctx: CanvasRenderingContext2D, stroke: Stroke | LiveStroke )
src/util/render/shapes/index.ts:38
↓ 2 callers
Method
end
(point: Point)
src/drawing/livestroke/index.types.ts:6
↓ 2 callers
Method
endLoading
* Close the loading dialog
src/state/loading/state/index.ts:33
↓ 2 callers
Method
fullReset
* Delete all pages - essentially a full board state reset
src/state/board/state/index.ts:95
↓ 2 callers
Method
getBoundCenterX
()
src/View/Board/RenderNG/Page/Transformer/shapeTransform/index.ts:193
↓ 2 callers
Method
getBoundCenterY
()
src/View/Board/RenderNG/Page/Transformer/shapeTransform/index.ts:197
↓ 2 callers
Function
getCenter
(p1: Point, p2: Point)
src/state/view/util/multiTouch.ts:68
↓ 2 callers
Method
getCenterY
()
src/state/view/state/index.ts:271
↓ 2 callers
Function
getClientEnvironment
(publicUrl)
config/env.js:63
↓ 2 callers
Function
getEllipseOutline
({ x, y, rx, ry, segmentsPerQuarter, }: GetEllipseOutlineProps)
src/drawing/hitbox/index.ts:136
↓ 2 callers
Function
getLowerBound
({ newTransform, pageHeight, innerHeight, }: GetLowerBoundProps)
src/state/view/util/bounds.ts:44
↓ 2 callers
Method
getPage
(pageId: string)
src/api/request.ts:163
↓ 2 callers
Method
getPageDimension
( documentPageNum: number )
src/drawing/attachment/pdf/index.tsx:56
↓ 2 callers
Method
getPageId
(pageIndex: PageIndex)
src/state/board/state/index.ts:42
↓ 2 callers
Function
getRectanglePolygon
([x1, y1, x2, y2]: number[])
src/drawing/hitbox/index.ts:116
↓ 2 callers
Function
getStrokesInPolygon
({ strokes, polygon, filterType, }: GetStrokesInPolygonProps)
src/drawing/hitbox/index.ts:20
↓ 2 callers
Method
getTheme
* Get the current theme * @returns the current theme
src/state/settings/state/index.ts:33
↓ 2 callers
Function
getVerifiedPages
(pageIds: PageRank)
src/drawing/helpers/index.ts:10
↓ 2 callers
Function
handleExportWorkspace
()
src/storage/workspace/index.ts:46
↓ 2 callers
Function
handleImportWorkspace
()
src/storage/workspace/index.ts:14
↓ 2 callers
Method
hideStrokes
(strokes: Stroke[])
src/state/board/state/index.ts:153
↓ 2 callers
Function
joinOnlineSession
({ sessionId, password, onWrongPassword, navigate, }: JoinOnlineSession)
src/View/Dialog/helpers.ts:50
↓ 2 callers
Method
jumpToLastPage
* Go to the last page
src/state/view/state/index.ts:208
↓ 2 callers
Method
move
(point: Point, pagePosition: Point)
src/drawing/livestroke/index.types.ts:5
↓ 2 callers
Function
multiTouchEnd
()
src/state/view/util/multiTouch.ts:50
↓ 2 callers
Function
newAttachment
({ type, id, cachedBlob, }: SerializedAttachment)
src/drawing/attachment/utils.ts:11
↓ 2 callers
Function
onFinishTextEdit
( inputRef: React.RefObject<HTMLTextAreaElement> )
src/View/Board/RenderNG/Page/ActiveTextField/helpers.ts:7
↓ 2 callers
Method
onFirstPage
* Find out if currently on first page * @returns true if on first page
src/state/view/state/index.ts:155
↓ 2 callers
Method
path
(sessionURL: string)
src/state/online/state/index.ts:536
↓ 2 callers
Method
postAttachment
(file: File)
src/api/request.ts:217
↓ 2 callers
Function
readEnvFile
(file, type)
config/getHttpsConfig.js:37
↓ 2 callers
Function
readFileAsUint8Array
(file: File)
src/storage/util/index.ts:4
↓ 2 callers
Method
redo
()
src/state/action/state/index.ts:58
↓ 2 callers
Method
renderDocumentPage
( documentPageNum: number )
src/drawing/attachment/pdf/index.tsx:92
↓ 2 callers
Method
renderPageLayer
(pageLayer: PageLayer, pageId: PageId)
src/state/subscription/index.ts:85
↓ 2 callers
Function
renderWithProviders
({ ui, pathname = "/", initRoutes = ["/"], }: RenderProps)
src/util/testing/index.tsx:22
↓ 2 callers
Method
rescaleAtCenter
* Rescale the view at the center of the viewport * @param newScale new scale to be applied
src/state/view/state/index.ts:258
↓ 2 callers
Method
reset
()
src/drawing/livestroke/index.tsx:60
↓ 2 callers
Method
resetTr
(trDiv: HTMLDivElement | null)
src/View/Board/RenderNG/Page/Transformer/shapeTransform/index.ts:114
↓ 2 callers
Method
resetTrState
()
src/View/Board/RenderNG/Page/Transformer/shapeTransform/index.ts:105
↓ 2 callers
Method
send
(type: MessageType, content: unknown)
src/state/online/state/index.ts:257
↓ 2 callers
Method
setId
(attachId: AttachId)
src/state/board/state/index.types.ts:45
↓ 2 callers
Method
setSessionId
(sessionId?: string)
src/api/request.ts:57
↓ 2 callers
Method
setState
(newState: ViewState)
src/state/view/state/index.ts:31
↓ 2 callers
Method
setTransformStrokes
* Add strokes to the shape transformer * @param strokes shapes to be added to the shape transformer * @param pageId page on which the transf
src/state/board/state/index.ts:106
↓ 2 callers
Method
start
(point: Point, pageId: string)
src/drawing/livestroke/index.types.ts:4
↓ 2 callers
Method
undo
()
src/state/action/state/index.ts:46
↓ 2 callers
Method
updateConfig
(config: Partial<SessionConfig>)
src/state/online/state/index.ts:86
↓ 2 callers
Method
updateStrokes
(strokes: Stroke[])
src/state/action/state/index.ts:105
↓ 2 callers
Method
userConnect
(user: User)
src/state/online/state/index.ts:301
↓ 2 callers
Method
userDisconnect
({ id }: User)
src/state/online/state/index.ts:312
↓ 2 callers
Method
validatePageIndex
* Check if pageIndex is OOB and needs adjustment
src/state/view/state/index.ts:64
↓ 2 callers
Method
zoomCenter
* Zoom to the center of the screen * @param isZoomingIn set to true to zoom in
src/state/view/state/index.ts:98
↓ 1 callers
Method
addFavoriteTool
* Add a new favorite tool to the quick menu
src/state/drawing/state/index.ts:142
↓ 1 callers
Method
addNotification
(id: IntlMessageId)
src/state/notification/state/index.ts:32
↓ 1 callers
Method
addPages
( pages: BoardPage[], pageIndex: number[] )
src/state/online/state/index.ts:440
↓ 1 callers
Method
addPoint
(point: Point)
src/drawing/livestroke/index.tsx:83
↓ 1 callers
Function
addRenderedPdf
(attachment: PDFAttachment)
src/storage/pdf/util/index.ts:27
↓ 1 callers
Function
applyBounds
(point: Point, page: Page)
src/View/Board/RenderNG/Page/Transformer/bounds.ts:4
↓ 1 callers
Method
applyBounds
* Apply bounds on a transform * @param newTransform transform to apply bounds on * @returns bounded transform
src/state/view/state/index.ts:336
↓ 1 callers
Method
applyBoundsX
* Apply horizontal bounds * @param newTransform transform to apply bounds on * @returns X-bounded transform
src/state/view/state/index.ts:349
↓ 1 callers
Method
applyBoundsY
* Apply vertical bounds * @param newTransform transform to apply bounds on * @returns Y-bounded transform
src/state/view/state/index.ts:379
↓ 1 callers
Function
applyLeaveBounds
(point: Point, page: Page)
src/View/Board/RenderNG/Page/Transformer/bounds.ts:21
↓ 1 callers
Method
applyPageBackground
()
src/state/action/state/index.ts:306
↓ 1 callers
Method
applyTr
(trDiv: HTMLDivElement | null)
src/View/Board/RenderNG/Page/Transformer/shapeTransform/index.ts:81
↓ 1 callers
Function
applyTransformOnPoints
(stroke: Stroke)
src/util/render/shapes/index.ts:189
↓ 1 callers
Function
build
(previousFileSizes)
scripts/build.js:135
↓ 1 callers
Method
centerView
* Center the view while maintaining the current scale
src/state/view/state/index.ts:85
↓ 1 callers
Method
clear
()
src/drawing/page/index.ts:35
↓ 1 callers
Method
clearErasedStrokes
* Clear the strokes which were marked as erased after their actual erasure
src/state/drawing/state/index.ts:82
↓ 1 callers
Method
clearPage
()
src/state/action/state/index.ts:270
↓ 1 callers
Method
clearToken
* Clear the github authorization token
src/state/online/state/index.ts:132
↓ 1 callers
Method
closeShortcuts
* Close the shortcuts overview
src/state/menu/state/index.ts:71
↓ 1 callers
Method
closeTextfieldSettings
* Close the shortcuts overview
src/state/menu/state/index.ts:87
↓ 1 callers
Function
copyPublicFolder
()
scripts/build.js:215
↓ 1 callers
Function
createOnlineSession
({ fromCurrent, navigate, password, }: CreateOnlineSession)
src/View/Dialog/helpers.ts:16
↓ 1 callers
Function
createUniqueId
()
src/drawing/stroke/index.tsx:98
↓ 1 callers
Method
deserialize
(serialized: SerializedBoardState)
src/state/board/serializers/index.ts:42
← previous
next →
101–200 of 494, ranked by callers