MCPcopy Create free account

hub / github.com/NarraLeaf/narraleaf-react / functions

Functions1,297 in github.com/NarraLeaf/narraleaf-react

↓ 1 callersFunctioncalculateStyle
(word: Exclude<SplitWord, Pausing | "\n">)
src/game/player/elements/say/Sentence.tsx:385
↓ 1 callersMethodcanGoBack
* Check if can go back * @example * ```typescript * const router = new LayoutRouter(game, "/home"); * console.log(router.canGoBack
src/game/player/lib/PageRouter/router.tsx:384
↓ 1 callersMethodcanGoForward
* Check if can go forward * @example * ```typescript * const router = new LayoutRouter(game, "/home"); * router.navigate("/about")
src/game/player/lib/PageRouter/router.tsx:405
↓ 1 callersMethodcancelAutoForward
()
src/game/player/elements/say/UIDialog.tsx:156
↓ 1 callersMethodcatSettled
()
src/game/player/Tasks.ts:299
↓ 1 callersMethodchangeStateAsync
(gameState: GameState, handler: (state: ExposedState[ExposedStateType.video]) => Promise<void>, injection: Act
src/game/nlcore/action/actions/videoAction.ts:93
↓ 1 callersMethodcheck
()
src/game/nlcore/elements/transform/position.ts:284
↓ 1 callersMethodcheck
()
src/game/nlcore/elements/transform/position.ts:355
↓ 1 callersMethodcheckAction
( story: Story, action: LogicAction.Actions, {imageStates, scenes}: { imageStates: Map
src/game/nlcore/common/Utils.ts:283
↓ 1 callersMethodcheckConfig
@internal
src/game/nlcore/elements/displayable/image.ts:554
↓ 1 callersMethodcheckImage
(state: ImageState, action: ImageAction)
src/game/nlcore/common/Utils.ts:322
↓ 1 callersFunctionchoose
(choice: Chosen)
src/game/player/elements/menu/PlayerMenu.tsx:53
↓ 1 callersMethodcleanHistory
()
project/test/router.js:293
↓ 1 callersMethodclearMainStack
@internal
src/game/nlcore/game/liveGame.ts:770
↓ 1 callersMethodclearQueryParams
()
project/test/router.js:159
↓ 1 callersFunctionclone
(obj: T)
src/util/data.ts:440
↓ 1 callersMethodcolor
(text: string | Word, color: Color)
src/game/nlcore/elements/character/word.ts:25
↓ 1 callersMethodcolorToString
(color: Color)
src/game/nlcore/common/Utils.ts:130
↓ 1 callersMethodcommit
* Commits all staged changes to the transform sequence. * This method will create a new sequence from all pending changes that have been staged v
src/game/nlcore/elements/transform/transform.ts:569
↓ 1 callersMethodconfigure
* Configure the game
src/game/nlcore/game.ts:171
↓ 1 callersMethodconstruct
@internal
src/game/nlcore/action/baseElement.ts:28
↓ 1 callersMethodconstructAnimation
* @internal * **CAUTION**: don't lock this transformState before calling this method.
src/game/nlcore/elements/transform/transform.ts:498
↓ 1 callersMethodconstructChoices
@internal
src/game/nlcore/elements/menu.ts:244
↓ 1 callersMethodconstructCommit
@internal
src/game/nlcore/elements/transform/transform.ts:684
↓ 1 callersMethodconstructLayerMap
(layers: Record<string, string[]>, elementMap: Map<string, LogicAction.GameElement>)
src/game/player/gameState.ts:743
↓ 1 callersMethodconstructSceneRoots
@internal
src/game/nlcore/elements/story.ts:233
↓ 1 callersMethodconstructStory
@internal
src/game/nlcore/elements/story.ts:203
↓ 1 callersMethodconsume
* Consume a notification * * @param notification - The notification to consume * @returns A promise that resolves when the notificatio
src/game/player/lib/notification.ts:108
↓ 1 callersMethodcopy
* Copy the current transform. * @returns {Transform<T>} A new transform with the same sequences and config.
src/game/nlcore/elements/transform/transform.ts:548
↓ 1 callersMethodcreate
(notifications: Notification[])
src/game/player/lib/notification.ts:13
↓ 1 callersMethodcreateDialog
(id: string, sentence: Sentence, afterClick?: () => void, scene?: Scene)
src/game/player/gameState.ts:325
↓ 1 callersMethodcreateDisplayable
( displayable: LogicAction.DisplayableElements, scene: Scene | null = null, layer: Lay
src/game/player/gameState.ts:398
↓ 1 callersMethodcreateElementSnapshot
(element: PlayerStateElement)
src/game/player/gameState.ts:678
↓ 1 callersMethodcreateIfCondition
@internal
src/game/nlcore/elements/condition.ts:221
↓ 1 callersMethodcreateImageConfig
@internal
src/game/nlcore/elements/displayable/image.ts:526
↓ 1 callersMethodcreateLiveGame
@internal
src/game/nlcore/game.ts:246
↓ 1 callersMethodcreateMenu
(menu: MenuData, afterChoose?: (choice: Chosen) => void, scene?: Scene)
src/game/player/gameState.ts:363
↓ 1 callersMethodcreateSceneSnapshot
(scene: Scene, state: GameState)
src/game/nlcore/action/actions/sceneAction.ts:67
↓ 1 callersMethodcreateStackModel
@internal
src/game/nlcore/game/liveGame.ts:666
↓ 1 callersMethodcreateTask
(gameState: GameState)
src/game/nlcore/elements/transition/transitions/image/fadeIn.ts:24
↓ 1 callersFunctioncrossCombine
(a: T[], b: U[])
src/util/data.ts:835
↓ 1 callersFunctiondebounce
(fn: T, delay: number)
src/util/data.ts:760
↓ 1 callersMethoddeserialize
* Load a saved game * * Note: even if you change just a single line of script, the saved game might not be compatible with the new version
src/game/nlcore/game/liveGame.ts:178
↓ 1 callersMethoddeserializeServices
@internal
src/game/nlcore/elements/story.ts:178
↓ 1 callersMethodemitFlush
()
src/game/player/elements/say/UIDialog.tsx:160
↓ 1 callersMethodemitOnPageMount
@internal
src/game/player/lib/PageRouter/router.tsx:954
↓ 1 callersMethodemitRootExitComplete
()
project/test/router.js:451
↓ 1 callersMethodemitUpdate
()
project/test/router.js:409
↓ 1 callersMethodempty
@internal
src/game/nlcore/elements/story.ts:38
↓ 1 callersMethodentry
* Set the entry scene of the story * @example * ```typescript * const story = new Story("story"); * const scene = new Scene("scene
src/game/nlcore/elements/story.ts:70
↓ 1 callersMethodexecute
(handler: ScriptRun)
src/game/nlcore/elements/script.ts:40
↓ 1 callersMethodexecuteAction
(_state: GameState, _injection: ActionExecutionInjection)
src/game/nlcore/action/action.ts:38
↓ 1 callersMethodexecuteAction
(gameState: GameState, injection: ActionExecutionInjection)
src/game/nlcore/action/actions/videoAction.ts:18
↓ 1 callersMethodexecuteActions
(result: CalledActionResult)
src/game/nlcore/action/stackModel.ts:318
↓ 1 callersMethodextractParams
* Extract path parameters * @param path Actual path * @param pattern Pattern with parameters, e.g. "/user/:id/profile/:tab" * @returns
src/game/player/lib/PageRouter/router.tsx:810
↓ 1 callersFunctionfilterObjectExcept
(obj: T, fields: (keyof T)[])
src/util/data.ts:1548
↓ 1 callersMethodfindIndex
(callbackfn: (notification: string, id: string, array: string[]) => boolean)
src/game/player/lib/notification.ts:72
↓ 1 callersFunctionfnv1a64
(input: string)
src/util/data.ts:1568
↓ 1 callersMethodforceAnimation
()
src/game/player/gameState.ts:499
↓ 1 callersMethodforceOverwrite
(state: Partial<T>)
src/game/nlcore/elements/transform/transform.ts:185
↓ 1 callersMethodformatStaticWord
@internal
src/game/nlcore/elements/character/sentence.ts:79
↓ 1 callersMethodfreeze
* Freeze the fields * * This method is not recommended to be used without using NarraLeaf Engine or Plugin Environment. * @param field
src/game/nlcore/game.ts:202
↓ 1 callersMethodfreeze
()
src/game/nlcore/elements/transform/transform.ts:119
↓ 1 callersMethodfromChained
* @internal * override this method can override the default behavior of chaining * * When converting a chain to actions, this method is
src/game/nlcore/action/actionable.ts:24
↓ 1 callersMethodfromChained
@internal
src/game/nlcore/elements/menu.ts:196
↓ 1 callersMethodfromData
@internal
src/game/nlcore/elements/video.ts:102
↓ 1 callersMethodfromElementSnapshot
(snapshot: PlayerStateElementSnapshot)
src/game/player/gameState.ts:689
↓ 1 callersMethodfromPromise
(promise: Promise<T>)
src/util/data.ts:139
↓ 1 callersFunctiongenerateId
(length: number = 16)
src/util/data.ts:1370
↓ 1 callersMethodget
(name: string)
src/game/player/lib/ImageCacheManager.ts:47
↓ 1 callersMethodget
()
src/util/config.ts:105
↓ 1 callersMethodgetActionTrace
(action: Action)
src/game/nlcore/common/Utils.ts:348
↓ 1 callersMethodgetAllElementMap
@internal
src/game/nlcore/action/constructable.ts:67
↓ 1 callersMethodgetAllElementStates
@internal
src/game/nlcore/elements/story.ts:220
↓ 1 callersMethodgetAllPredictableActions
@internal
src/game/nlcore/game/liveGame.ts:722
↓ 1 callersMethodgetCtx
@internal
src/game/nlcore/elements/condition.ts:54
↓ 1 callersMethodgetCurrentQuery
* Get current query parameters * @example * ```typescript * const router = new LayoutRouter(game); * router.navigate("/settings?ta
src/game/player/lib/PageRouter/router.tsx:92
↓ 1 callersMethodgetFutureSrc
()
src/game/nlcore/action/srcManager.ts:210
↓ 1 callersFunctiongetGeneratedWords
(words: Word<Pausing | string>[])
src/game/player/elements/say/Sentence.tsx:360
↓ 1 callersMethodgetGlobalVolume
()
src/game/player/lib/AudioManager.ts:369
↓ 1 callersMethodgetImage
(src: string, abortSignal?: AbortSignal, options?: RequestInit)
src/game/player/lib/ImageCacheManager.ts:16
↓ 1 callersFunctiongetImageDataUrl
(src: string, options?: RequestInit)
src/util/data.ts:910
↓ 1 callersMethodgetInitialSrc
@internal
src/game/nlcore/elements/displayable/image.ts:145
↓ 1 callersMethodgetInitialState
@internal
src/game/nlcore/elements/layer.ts:170
↓ 1 callersMethodgetInitialTransformState
@internal
src/game/nlcore/elements/layer.ts:177
↓ 1 callersMethodgetNewSavedGame
@internal
src/game/nlcore/game/liveGame.ts:788
↓ 1 callersMethodgetOptions
@internal
src/game/nlcore/elements/transform/transform.ts:481
↓ 1 callersMethodgetParent
()
src/game/nlcore/action/tree/actionTree.ts:125
↓ 1 callersMethodgetPathname
* Get pathname (path without query parameters) * @example * ```typescript * const router = new LayoutRouter(game); * router.naviga
src/game/player/lib/PageRouter/router.tsx:79
↓ 1 callersMethodgetPreloadingScene
()
src/game/player/gameState.ts:221
↓ 1 callersMethodgetQueryParamCount
()
project/test/router.js:174
↓ 1 callersMethodgetQueryParamKeys
()
project/test/router.js:170
↓ 1 callersMethodgetQueryParams
* Get query parameters (alias for getCurrentQuery) * @example * ```typescript * const router = new LayoutRouter(game); * router.na
src/game/player/lib/PageRouter/router.tsx:105
↓ 1 callersMethodgetScene
@internal
src/game/nlcore/elements/scene.ts:173
↓ 1 callersMethodgetSceneElements
()
src/game/player/gameState.ts:268
↓ 1 callersMethodgetSrc
@internal
src/game/nlcore/elements/sound.ts:232
↓ 1 callersMethodgetStyle
()
src/game/player/provider/ratio.tsx:77
↓ 1 callersMethodgetTopSync
()
src/game/nlcore/action/stackModel.ts:296
↓ 1 callersMethodgetVideos
()
src/game/player/gameState.ts:174
↓ 1 callersMethodgetVoice
(state: GameState, sentence: Sentence)
src/game/nlcore/action/actions/characterAction.ts:19
← previousnext →501–600 of 1,297, ranked by callers