Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/toeverything/AFFiNE
/ functions
Functions
18,927 in github.com/toeverything/AFFiNE
⨍
Functions
18,927
◇
Types & classes
7,103
↓ 16 callers
Function
getInlineEditorByModel
( std: BlockStdScope, model: BlockModel | string )
blocksuite/affine/rich-text/src/dom.ts:32
↓ 16 callers
Method
getMeta
* Get the doc meta.
packages/backend/server/src/models/doc.ts:385
↓ 16 callers
Method
getRole
(payload: Resource<'doc'>)
packages/backend/server/src/core/permission/doc.ts:63
↓ 16 callers
Function
handler
()
blocksuite/affine/fragments/outline/src/utils/scroll.ts:59
↓ 16 callers
Method
hide
()
packages/frontend/core/src/modules/quicksearch/entities/quick-search.ts:103
↓ 16 callers
Function
lineIntersects
( sp: IVec, ep: IVec, sp2: IVec, ep2: IVec, infinite = false )
blocksuite/framework/global/src/gfx/math.ts:32
↓ 16 callers
Function
loginUser
( page: Page, user: { email: string; password: string; }, config?: { isElectron?: boolean;
tests/kit/src/utils/cloud.ts:230
↓ 16 callers
Method
next
( abort?: AbortSignal, dequeue: (arr: T[]) => T | undefined = a => a.shift() )
packages/common/infra/src/utils/async-queue.ts:15
↓ 16 callers
Method
normalize
(m?: string)
packages/backend/server/src/plugins/copilot/session.ts:109
↓ 16 callers
Method
off
( event: K, callback: (evt: EventsHandlerMap[K]) => void )
blocksuite/framework/std/src/gfx/view/view.ts:153
↓ 16 callers
Function
once
( element: T, event: K, handler: (ev: HTMLElementEventMap[K]) => void, options?: boolean | AddEventLis
blocksuite/affine/shared/src/utils/event.ts:131
↓ 16 callers
Method
pop
()
packages/backend/server/src/plugins/copilot/session.ts:184
↓ 16 callers
Function
readText
(value: unknown)
packages/backend/server/src/plugins/calendar/providers/caldav.ts:69
↓ 16 callers
Method
send
(body?: Document | XMLHttpRequestBodyInit | null)
packages/frontend/apps/ios/src/proxy.ts:23
↓ 16 callers
Function
serializCollection
(doc: Doc)
blocksuite/framework/store/src/__tests__/collection.unit.spec.ts:24
↓ 16 callers
Function
setSelection
( page: Page, anchorBlockId: string, anchorOffset: number, focusBlockId: string, focusOffset: number
tests/kit/src/utils/selection.ts:4
↓ 16 callers
Method
setViewportByBound
* Set the viewport to fit the bound with padding. * @param bound The bound will be zoomed to fit the viewport. * @param padding The padding will
blocksuite/framework/std/src/gfx/viewport.ts:449
↓ 16 callers
Method
show
()
packages/frontend/core/src/blocksuite/view-extensions/mobile/keyboard-toolbar-extension.ts:72
↓ 16 callers
Method
traitGet
(key: TraitKey<T>)
blocksuite/affine/data-view/src/core/view-manager/single-view.ts:71
↓ 16 callers
Method
valueSet
(value: RawValue | undefined)
blocksuite/affine/data-view/src/core/view-manager/cell.ts:24
↓ 16 callers
Method
year
()
blocksuite/affine/components/src/date-picker/date-picker.ts:108
↓ 15 callers
Function
BlockNotionHtmlAdapterExtension
( matcher: BlockNotionHtmlAdapterMatcher )
blocksuite/affine/shared/src/adapters/notion-html/block-adapter.ts:21
↓ 15 callers
Function
GfxViewInteractionExtension
(viewType: string, config: GfxViewInteractionConfig<T>)
blocksuite/framework/std/src/gfx/interactivity/extension/view.ts:123
↓ 15 callers
Function
addBasicConnectorElement
( page: Page, start: Point, end: Point )
tests/blocksuite/e2e/utils/actions/edgeless.ts:541
↓ 15 callers
Function
addNewPage
(page: Page)
tests/blocksuite/e2e/utils/actions/click.ts:71
↓ 15 callers
Method
addSiblingBlocks
* Add sibling blocks to the store * @param targetModel - The target block model * @param props - Array of block properties * @param placement
blocksuite/framework/store/src/model/store/store.ts:812
↓ 15 callers
Method
apply
* Apply the diff to the doc * @param doc - The doc * @param changedMarkdown - The changed markdown
packages/frontend/core/src/blocksuite/ai/services/block-diff.ts:92
↓ 15 callers
Function
assertClipItems
(_page: Page, _key: MimeType, _value: unknown)
tests/blocksuite/e2e/utils/asserts.ts:592
↓ 15 callers
Method
blob
()
blocksuite/affine/components/src/resource/resource.ts:157
↓ 15 callers
Method
contains
(childId: string | null)
packages/frontend/core/src/modules/organize/entities/folder-node.ts:61
↓ 15 callers
Method
context
()
packages/frontend/core/src/blocksuite/ai/provider/ai-provider.ts:91
↓ 15 callers
Method
create
()
packages/frontend/core/src/modules/workspace/services/workspaces.ts:49
↓ 15 callers
Function
dblclickView
(page: Page, point: [number, number])
tests/blocksuite/e2e/utils/actions/click.ts:38
↓ 15 callers
Function
deleteAll
(page: Page)
tests/blocksuite/e2e/utils/actions/edgeless.ts:1058
↓ 15 callers
Method
deleteByQuery
( table: T, query: Query<T> )
packages/common/nbstore/src/storage/indexer.ts:48
↓ 15 callers
Function
deserializeXYWH
(xywh: string)
blocksuite/framework/global/src/gfx/xywh.ts:20
↓ 15 callers
Method
docState$
(docId: string)
packages/common/nbstore/src/sync/doc/index.ts:39
↓ 15 callers
Function
dragHandleFromBlockToBlockBottomById
( page: Page, sourceId: string, targetId: string, bottom = true, offset?: number, beforeMouseUp?:
tests/blocksuite/e2e/utils/actions/drag.ts:110
↓ 15 callers
Method
enableWorkspaceEmbedding
( page: Page, waitForEnabled = true )
tests/affine-cloud-copilot/e2e/utils/settings-panel-utils.ts:50
↓ 15 callers
Method
error
(err)
packages/common/infra/src/livedata/livedata.ts:187
↓ 15 callers
Function
exhaustMapWithTrailing
( project: (value: T, index: number) => ObservableInput<R> )
packages/common/infra/src/utils/exhaustmap-with-trailing.ts:21
↓ 15 callers
Method
expand
( left: number | [number, number], top?: number, right?: number, bottom?: number )
blocksuite/framework/global/src/gfx/model/bound.ts:233
↓ 15 callers
Method
generate
()
blocksuite/affine/widgets/linked-doc/src/transformers/utils.ts:49
↓ 15 callers
Method
getDocDiff
* Get a yjs binary diff with the given state vector.
packages/common/nbstore/src/storage/doc.ts:76
↓ 15 callers
Function
getLastCheckoutPrice
(checkoutStub: Sinon.SinonStub)
packages/backend/server/src/__tests__/payment/service.spec.ts:180
↓ 15 callers
Method
getModelsByFlavour
* Get all models of specified flavour(s) * @param blockFlavour - Single flavour or array of flavours to filter by * @returns Array of matching m
blocksuite/framework/store/src/model/store/store.ts:1040
↓ 15 callers
Function
getNoteRect
(page: Page, noteId: string)
tests/blocksuite/e2e/utils/actions/edgeless.ts:68
↓ 15 callers
Method
getPrev
* Get the previous sibling block of a given block * @param block - Block model or block ID to find previous sibling for * @returns The previous
blocksuite/framework/store/src/model/store/store.ts:1069
↓ 15 callers
Method
isDirectory
()
tools/utils/src/path.ts:75
↓ 15 callers
Function
isExternalEmbedModel
( model: GfxModel | BlockModel )
blocksuite/affine/model/src/blocks/embed/types.ts:41
↓ 15 callers
Function
isMacOS
()
packages/frontend/apps/electron/src/shared/utils.ts:9
↓ 15 callers
Method
moveToTrash
()
packages/frontend/core/src/modules/doc/entities/doc.ts:122
↓ 15 callers
Method
post
(payload: Ga4Payload)
packages/backend/server/src/core/telemetry/ga4-client.ts:51
↓ 15 callers
Function
pressShiftEnter
(page: Page)
tests/blocksuite/e2e/utils/actions/keyboard.ts:148
↓ 15 callers
Function
propertyType
(type: Type)
blocksuite/affine/data-view/src/core/property/property-config.ts:50
↓ 15 callers
Method
removeElement
(id: string | GfxModel)
blocksuite/affine/blocks/surface/src/extensions/crud-extension.ts:161
↓ 15 callers
Function
rotatePoints
( points: T[], center: IVec, rotate: number )
blocksuite/framework/global/src/gfx/math.ts:101
↓ 15 callers
Method
server$
(id: string)
packages/frontend/core/src/modules/cloud/services/servers.ts:61
↓ 15 callers
Function
setStatus
(status: ConnectionStatus, error?: Error)
packages/common/nbstore/src/connection/connection.ts:75
↓ 15 callers
Method
setStorage
(key: T, value: StorageProps[T])
blocksuite/affine/shared/src/services/edit-props-store.ts:200
↓ 15 callers
Function
skipOnboarding
(context: BrowserContext)
tests/kit/src/playwright.ts:26
↓ 15 callers
Method
switchUser
(userOrId: string | { id: string })
packages/backend/server/src/__tests__/e2e/create-app.ts:179
↓ 15 callers
Function
titleMiddleware
(metas: DocMeta[])
blocksuite/affine/shared/src/adapters/middlewares/title.ts:4
↓ 15 callers
Method
toVec
()
blocksuite/framework/global/src/gfx/model/point-location.ts:91
↓ 15 callers
Method
trySend
* try to send mail * * @note never throw
packages/backend/server/src/core/mail/mailer.ts:18
↓ 15 callers
Method
unite
(bound: Bound)
blocksuite/framework/global/src/gfx/model/bound.ts:359
↓ 15 callers
Function
unsubscribe
(channel: string)
packages/frontend/apps/electron/src/preload/electron-api.ts:101
↓ 15 callers
Method
update
(query: UpdateQuery)
packages/common/infra/src/orm/core/adapters/types.ts:68
↓ 15 callers
Method
write
( table: T, documents: UpsertTypeByTable<T>[], options?: OperationOptions )
packages/backend/server/src/plugins/indexer/service.ts:133
↓ 14 callers
Method
_setActive
(active: boolean)
blocksuite/framework/std/src/event/dispatcher.ts:325
↓ 14 callers
Method
_transact
(callback: () => void)
blocksuite/framework/store/src/reactive/text/text.ts:96
↓ 14 callers
Function
activeEmbed
(page: Page)
tests/blocksuite/e2e/utils/actions/click.ts:123
↓ 14 callers
Function
add
(A: IVec, B: IVec)
blocksuite/framework/global/src/gfx/perfect-freehand/vec.ts:18
↓ 14 callers
Method
addScore
(id: number, score: number)
packages/common/nbstore/src/impls/idb/indexer/match.ts:21
↓ 14 callers
Method
can
(resource: Resource<'doc'>, action: DocAction)
packages/backend/server/src/core/permission/doc.ts:35
↓ 14 callers
Method
check
(flag: Flag, value = this.value)
blocksuite/affine/shared/src/services/toolbar-service/flags.ts:32
↓ 14 callers
Function
cleanup
()
packages/frontend/apps/electron/src/main/recording/feature.ts:70
↓ 14 callers
Function
createDoc
(id: string, status?: string)
packages/backend/server/src/__tests__/models/copilot-context.spec.ts:251
↓ 14 callers
Function
createEvent
(id: string)
packages/common/infra/src/framework/core/event.ts:15
↓ 14 callers
Function
createPropertyConvert
( from: From, to: To, convert: ConvertFunction<From, To> )
blocksuite/affine/data-view/src/core/property/convert.ts:17
↓ 14 callers
Method
del
(key: string)
packages/common/infra/src/storage/memento.ts:12
↓ 14 callers
Method
docs
()
blocksuite/framework/store/src/extension/workspace/workspace.ts:19
↓ 14 callers
Function
enableCloudWorkspace
(page: Page)
tests/kit/src/utils/cloud.ts:283
↓ 14 callers
Method
encode
(message: string)
packages/backend/server/src/plugins/copilot/prompt/chat-prompt.ts:94
↓ 14 callers
Function
getEditorLocator
(page: Page)
tests/blocksuite/e2e/utils/actions/misc.ts:52
↓ 14 callers
Function
getHistories
( app: TestingApp, variables: { workspaceId: string; docId?: string | null; options?: HistoryO
packages/backend/server/src/__tests__/utils/copilot.ts:749
↓ 14 callers
Method
getNext
* Get the next sibling block of a given block * @param block - Block model or block ID to find next sibling for * @returns The next sibling bloc
blocksuite/framework/store/src/model/store/store.ts:1098
↓ 14 callers
Method
getNode
(id: string)
blocksuite/affine/model/src/elements/mindmap/mindmap.ts:621
↓ 14 callers
Method
getOwner
(workspaceId: string, docId: string)
packages/backend/server/src/models/doc-user.ts:155
↓ 14 callers
Method
getRelativePoint
([x, y]: IVec)
blocksuite/framework/global/src/gfx/model/bound.ts:256
↓ 14 callers
Method
getRenderer
(viewId: string)
blocksuite/affine/data-view/src/widget-presets/views-bar/views-view.ts:286
↓ 14 callers
Method
getWorkspaceUser
(id: string)
packages/backend/server/src/models/user.ts:103
↓ 14 callers
Method
isEmpty
()
blocksuite/framework/std/src/gfx/grid.ts:98
↓ 14 callers
Function
isInsidePageEditor
(host?: EditorHost)
blocksuite/affine/shared/src/utils/dom/checker.ts:3
↓ 14 callers
Method
merge
()
blocksuite/affine/shared/src/adapters/middlewares/paste.ts:504
↓ 14 callers
Method
moveDelta
(dx: number, dy: number)
blocksuite/framework/global/src/gfx/model/bound.ts:336
↓ 14 callers
Function
next
()
packages/frontend/core/src/utils/opus-encoding.ts:449
↓ 14 callers
Function
pasteByKeyboard
(page: Page)
tests/kit/src/utils/keyboard.ts:88
↓ 14 callers
Method
play
(skipUpdate?: boolean)
packages/frontend/core/src/modules/media/entities/audio-media.ts:291
↓ 14 callers
Method
query
(query: string)
packages/frontend/core/src/modules/quicksearch/impls/tags.ts:88
← previous
next →
701–800 of 18,927, ranked by callers