MCPcopy Index your code

hub / github.com/mermaid-js/mermaid-live-editor / functions

Functions148 in github.com/mermaid-js/mermaid-live-editor

↓ 20 callersFunctioncodeState
(code: string)
src/lib/components/History/historyState.test.ts:19
↓ 20 callersFunctionentriesFor
(mode: 'auto' | 'manual' | 'loader')
src/lib/components/History/historyState.test.ts:22
↓ 17 callersMethodcheckTextInView
(text: string)
tests/test.ts:65
↓ 15 callersMethodstart
(url = '/edit')
tests/test.ts:16
↓ 12 callersFunctionaddManualEntry
(state: State)
src/lib/components/History/historyState.svelte.ts:83
↓ 11 callersFunctionsetMode
(next: HistoryType)
src/lib/components/History/historyState.svelte.ts:48
↓ 10 callersMethodcheckDocURL
(url: string | RegExp)
tests/test.ts:92
↓ 10 callersFunctionreadJSON
(key: string, fallback: T)
src/lib/util/persist.svelte.ts:12
↓ 9 callersFunctionlogEvent
( name: AnalyticsEvent, data?: Record<string, string | number | boolean> )
src/lib/util/stats.ts:112
↓ 9 callersFunctionpersisted
(key: string, initial: T)
src/lib/util/persist.svelte.ts:42
↓ 8 callersMethodsetEditorMode
(mode: 'Code' | 'Config')
tests/test.ts:88
↓ 8 callersFunctionstateKey
(state: State)
src/lib/components/History/historyState.svelte.ts:54
↓ 8 callersFunctionupdateCodeStore
(newState: Partial<State>)
src/lib/util/state.svelte.ts:315
↓ 7 callersFunctionaddAutoEntry
(state: State)
src/lib/components/History/historyState.svelte.ts:85
↓ 7 callersFunctionbuildRedirectUrl
(location: Location)
src/lib/util/redirect.ts:8
↓ 7 callersFunctiongetAnalyticsSafeUrl
()
src/lib/util/stats.ts:31
↓ 7 callersFunctionmockLocation
(url: string)
src/lib/util/redirect.test.ts:4
↓ 7 callersMethodtypeInEditor
(text: string, { bottom = true, newline = false }: EditorOptions = {})
tests/test.ts:24
↓ 6 callersMethodcheckInEditor
(text: string)
tests/test.ts:79
↓ 6 callersMethodloadSampleDiagram
(diagramName: string)
tests/test.ts:61
↓ 6 callersFunctionopenHistory
(page: Page)
tests/history.spec.ts:27
↓ 6 callersFunctionreplaceInputState
(next: State)
src/lib/util/state.svelte.ts:354
↓ 6 callersFunctionrestoreEntries
(data: HistoryEntry[])
src/lib/components/History/historyState.svelte.ts:124
↓ 6 callersFunctionupdate
(mutate: (state: State) => void)
src/lib/util/state.svelte.ts:148
↓ 5 callersFunctionreadStoredState
()
src/lib/util/state.svelte.test.ts:29
↓ 5 callersFunctionserializeState
(state: State, serde: SerdeType = 'pako')
src/lib/util/serde.ts:38
↓ 5 callersFunctionsetLoaderEntries
(entries: Optional<HistoryEntry, 'id'>[])
src/lib/components/History/historyState.svelte.ts:89
↓ 4 callersMethodcheckTheme
(theme: 'light' | 'dark')
tests/test.ts:103
↓ 4 callersFunctionclearActive
()
src/lib/components/History/historyState.svelte.ts:104
↓ 4 callersMethodclearEditor
()
tests/test.ts:35
↓ 4 callersFunctionentry
(id: string, name: string, type: 'manual' | 'auto', label: string)
tests/history.spec.ts:5
↓ 4 callersMethodreset
()
src/lib/util/panZoom.ts:151
↓ 4 callersFunctionstartAutoSave
()
src/lib/components/History/historyState.svelte.ts:162
↓ 4 callersMethodtoggleSampleDiagrams
()
tests/test.ts:45
↓ 3 callersFunctionapplyPartial
(state: State, newState: Partial<State>)
src/lib/util/state.svelte.ts:310
↓ 3 callersMethodcheckError
(text: string)
tests/test.ts:73
↓ 3 callersMethodcheckTextNotInView
(text: string)
tests/test.ts:69
↓ 3 callersFunctiondeserializeState
(state: string)
src/lib/util/serde.ts:47
↓ 3 callersFunctionfetchText
(url: string)
src/lib/util/util.ts:84
↓ 3 callersFunctionformatJSON
(data: unknown)
src/lib/util/util.ts:79
↓ 3 callersFunctionlog
(buttonClick: string)
src/lib/components/migration/editorChooserActions.ts:15
↓ 3 callersFunctionslotFor
(m: HistoryType)
src/lib/components/History/historyState.svelte.ts:22
↓ 3 callersFunctionupdateCode
( code: string, { updateDiagram = false, resetPanZoom = false }: { updateDiagram?: boolean; rese
src/lib/util/state.svelte.ts:319
↓ 3 callersFunctionverifySerde
(state: State, serde?: SerdeType)
src/lib/util/serde.test.ts:6
↓ 3 callersFunctionverifyState
()
src/lib/util/state.svelte.ts:373
↓ 3 callersFunctionwriteJSON
(key: string, value: unknown)
src/lib/util/persist.svelte.ts:29
↓ 2 callersFunctionaddEntry
( slot: Persisted<HistoryEntry[]>, state: State, type: 'auto' | 'manual', maxLength?: number )
src/lib/components/History/historyState.svelte.ts:66
↓ 2 callersFunctionapplyMigrations
()
src/lib/util/migrations.svelte.ts:15
↓ 2 callersFunctionbuildUtmParams
({ utmCampaign, utmMedium }: { utmCampaign: string; utmMedium: string; })
src/lib/util/util.ts:45
↓ 2 callersMethodcheckAIHelperVisibility
(shouldBeVisible: boolean)
tests/test.ts:110
↓ 2 callersMethodcheckAndDownloadPNG
(expectedSize: number)
tests/test.ts:49
↓ 2 callersMethoddestroy
()
src/lib/util/AIPromptViewZoneManager.ts:67
↓ 2 callersMethoddownloadSVG
(expectedSize: number)
tests/test.ts:55
↓ 2 callersFunctionerrorDebug
(limit = 1000)
src/lib/util/util.ts:70
↓ 2 callersFunctionfetchJSON
(url: string)
src/lib/util/util.ts:80
↓ 2 callersFunctionfindMostRelevantLineNumber
(errorLineText: string, code: string)
src/lib/util/errorHandling.ts:2
↓ 2 callersFunctiongetBucket
(length: number)
src/lib/util/stats.ts:59
↓ 2 callersFunctiongetFileContent
(file: GithubFile)
src/lib/util/fileLoaders/gist.ts:20
↓ 2 callersFunctiongetStateFromGist
(gist: GistData, gistURL: string = gist.url)
src/lib/util/fileLoaders/gist.ts:74
↓ 2 callersFunctiongetUTMSource
()
src/lib/util/util.ts:120
↓ 2 callersFunctionhasStorage
()
src/lib/util/persist.svelte.ts:10
↓ 2 callersFunctionisOnMermaidAI
()
src/lib/util/migration/domainMigration.ts:11
↓ 2 callersFunctionloadState
(data: string)
src/lib/util/state.svelte.ts:290
↓ 2 callersFunctionminutesToMilliSeconds
(minutes: number)
src/lib/util/stats.ts:85
↓ 2 callersFunctionparse
(code: string)
src/lib/util/mermaid.ts:23
↓ 2 callersFunctionsanitizeConfig
(config: string | MermaidConfig)
src/lib/util/state.svelte.ts:256
↓ 2 callersFunctionsetIDs
(entries: HistoryEntry[])
src/lib/components/History/historyState.svelte.ts:149
↓ 2 callersFunctionstopAutoSave
()
src/lib/components/History/historyState.svelte.ts:172
↓ 2 callersMethodtoggleComment
(text: string)
tests/test.ts:83
↓ 2 callersMethodtoggleTheme
()
tests/test.ts:99
↓ 2 callersFunctionupdateConfig
(config: string)
src/lib/util/state.svelte.ts:338
↓ 2 callersFunctionupdateIntegrity
(tag, attr)
bin/update-monaco.js:22
↓ 2 callersFunctionvalidatedStateOf
(state: State, serialized: string)
src/lib/util/state.svelte.ts:56
↓ 2 callersFunctionverifyFileSizeGreaterThan
( page: Page, fileType: 'history' | 'diagram', extension: string, size: number )
tests/utils.ts:34
↓ 1 callersFunctioncountEffectRuns
(body: () => void)
src/lib/util/state.svelte.test.ts:17
↓ 1 callersFunctioncountLines
(code: string)
src/lib/util/stats.ts:35
↓ 1 callersFunctioncreateEntry
(state: State, type: 'auto' | 'manual')
src/lib/components/History/historyState.svelte.ts:57
↓ 1 callersFunctionextractErrorLineText
(errorMessage: string)
src/lib/util/errorHandling.ts:37
↓ 1 callersFunctionfallbackCopyToClipboard
(text: string)
src/lib/util/util.ts:97
↓ 1 callersFunctiongetCheckoutUrl
(utm: { utmCampaign: string; utmMedium: string })
src/lib/util/util.ts:58
↓ 1 callersFunctiongetGistData
(gistURL: string)
src/lib/util/fileLoaders/gist.ts:42
↓ 1 callersFunctiongetMermaidAiLiveUrl
(utm: { utmCampaign: string; utmMedium: string })
src/lib/util/util.ts:65
↓ 1 callersFunctiongetSampleDiagrams
()
src/lib/util/mermaid.ts:58
↓ 1 callersFunctiongetUnsafePaths
* Gets a list of paths that contain unsafe keys which might pose security risks. * * @param object - The object to check for unsafe keys. * @param
src/lib/util/state.svelte.ts:219
↓ 1 callersFunctionhasPakoData
()
src/lib/util/migration/domainMigration.ts:34
↓ 1 callersMethodhide
()
src/lib/util/AIPromptViewZoneManager.ts:51
↓ 1 callersFunctioninitAnalytics
()
src/lib/util/stats.ts:7
↓ 1 callersFunctioninitLoading
(message: string, task: Promise<T>)
src/lib/util/loading.svelte.ts:5
↓ 1 callersFunctioninitURLSubscription
()
src/lib/util/state.svelte.ts:366
↓ 1 callersFunctioninjectHistoryIDs
()
src/lib/components/History/historyState.svelte.ts:154
↓ 1 callersFunctionisOnMermaidLive
()
src/lib/util/migration/domainMigration.ts:19
↓ 1 callersFunctionisOnNetlifyPreview
()
src/lib/util/migration/domainMigration.ts:27
↓ 1 callersFunctionisReferredFromMermaid
()
src/lib/util/migration/domainMigration.ts:44
↓ 1 callersFunctionisValidDiagram
(diagram: DiagramDefinition)
src/lib/util/mermaid.ts:54
↓ 1 callersFunctionisValidGist
(files: any)
src/lib/util/fileLoaders/gist.ts:16
↓ 1 callersFunctionloadDataFromUrl
()
src/lib/util/fileLoaders/loader.ts:10
↓ 1 callersFunctionloadStateFromURL
()
src/lib/util/util.ts:16
↓ 1 callersFunctionlogMermaidChartClick
(source: string)
src/lib/util/stats.ts:134
↓ 1 callersFunctionpersistAndProcess
()
src/lib/util/state.svelte.ts:135
↓ 1 callersFunctionprocessState
(state: State)
src/lib/util/state.svelte.ts:72
next →1–100 of 148, ranked by callers