Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NarraLeaf/narraleaf-react
/ functions
Functions
1,297 in github.com/NarraLeaf/narraleaf-react
⨍
Functions
1,297
◇
Types & classes
271
↓ 1 callers
Function
calculateStyle
(word: Exclude<SplitWord, Pausing | "\n">)
src/game/player/elements/say/Sentence.tsx:385
↓ 1 callers
Method
canGoBack
* 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 callers
Method
canGoForward
* 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 callers
Method
cancelAutoForward
()
src/game/player/elements/say/UIDialog.tsx:156
↓ 1 callers
Method
catSettled
()
src/game/player/Tasks.ts:299
↓ 1 callers
Method
changeStateAsync
(gameState: GameState, handler: (state: ExposedState[ExposedStateType.video]) => Promise<void>, injection: Act
src/game/nlcore/action/actions/videoAction.ts:93
↓ 1 callers
Method
check
()
src/game/nlcore/elements/transform/position.ts:284
↓ 1 callers
Method
check
()
src/game/nlcore/elements/transform/position.ts:355
↓ 1 callers
Method
checkAction
( story: Story, action: LogicAction.Actions, {imageStates, scenes}: { imageStates: Map
src/game/nlcore/common/Utils.ts:283
↓ 1 callers
Method
checkConfig
@internal
src/game/nlcore/elements/displayable/image.ts:554
↓ 1 callers
Method
checkImage
(state: ImageState, action: ImageAction)
src/game/nlcore/common/Utils.ts:322
↓ 1 callers
Function
choose
(choice: Chosen)
src/game/player/elements/menu/PlayerMenu.tsx:53
↓ 1 callers
Method
cleanHistory
()
project/test/router.js:293
↓ 1 callers
Method
clearMainStack
@internal
src/game/nlcore/game/liveGame.ts:770
↓ 1 callers
Method
clearQueryParams
()
project/test/router.js:159
↓ 1 callers
Function
clone
(obj: T)
src/util/data.ts:440
↓ 1 callers
Method
color
(text: string | Word, color: Color)
src/game/nlcore/elements/character/word.ts:25
↓ 1 callers
Method
colorToString
(color: Color)
src/game/nlcore/common/Utils.ts:130
↓ 1 callers
Method
commit
* 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 callers
Method
configure
* Configure the game
src/game/nlcore/game.ts:171
↓ 1 callers
Method
construct
@internal
src/game/nlcore/action/baseElement.ts:28
↓ 1 callers
Method
constructAnimation
* @internal * **CAUTION**: don't lock this transformState before calling this method.
src/game/nlcore/elements/transform/transform.ts:498
↓ 1 callers
Method
constructChoices
@internal
src/game/nlcore/elements/menu.ts:244
↓ 1 callers
Method
constructCommit
@internal
src/game/nlcore/elements/transform/transform.ts:684
↓ 1 callers
Method
constructLayerMap
(layers: Record<string, string[]>, elementMap: Map<string, LogicAction.GameElement>)
src/game/player/gameState.ts:743
↓ 1 callers
Method
constructSceneRoots
@internal
src/game/nlcore/elements/story.ts:233
↓ 1 callers
Method
constructStory
@internal
src/game/nlcore/elements/story.ts:203
↓ 1 callers
Method
consume
* 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 callers
Method
copy
* 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 callers
Method
create
(notifications: Notification[])
src/game/player/lib/notification.ts:13
↓ 1 callers
Method
createDialog
(id: string, sentence: Sentence, afterClick?: () => void, scene?: Scene)
src/game/player/gameState.ts:325
↓ 1 callers
Method
createDisplayable
( displayable: LogicAction.DisplayableElements, scene: Scene | null = null, layer: Lay
src/game/player/gameState.ts:398
↓ 1 callers
Method
createElementSnapshot
(element: PlayerStateElement)
src/game/player/gameState.ts:678
↓ 1 callers
Method
createIfCondition
@internal
src/game/nlcore/elements/condition.ts:221
↓ 1 callers
Method
createImageConfig
@internal
src/game/nlcore/elements/displayable/image.ts:526
↓ 1 callers
Method
createLiveGame
@internal
src/game/nlcore/game.ts:246
↓ 1 callers
Method
createMenu
(menu: MenuData, afterChoose?: (choice: Chosen) => void, scene?: Scene)
src/game/player/gameState.ts:363
↓ 1 callers
Method
createSceneSnapshot
(scene: Scene, state: GameState)
src/game/nlcore/action/actions/sceneAction.ts:67
↓ 1 callers
Method
createStackModel
@internal
src/game/nlcore/game/liveGame.ts:666
↓ 1 callers
Method
createTask
(gameState: GameState)
src/game/nlcore/elements/transition/transitions/image/fadeIn.ts:24
↓ 1 callers
Function
crossCombine
(a: T[], b: U[])
src/util/data.ts:835
↓ 1 callers
Function
debounce
(fn: T, delay: number)
src/util/data.ts:760
↓ 1 callers
Method
deserialize
* 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 callers
Method
deserializeServices
@internal
src/game/nlcore/elements/story.ts:178
↓ 1 callers
Method
emitFlush
()
src/game/player/elements/say/UIDialog.tsx:160
↓ 1 callers
Method
emitOnPageMount
@internal
src/game/player/lib/PageRouter/router.tsx:954
↓ 1 callers
Method
emitRootExitComplete
()
project/test/router.js:451
↓ 1 callers
Method
emitUpdate
()
project/test/router.js:409
↓ 1 callers
Method
empty
@internal
src/game/nlcore/elements/story.ts:38
↓ 1 callers
Method
entry
* 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 callers
Method
execute
(handler: ScriptRun)
src/game/nlcore/elements/script.ts:40
↓ 1 callers
Method
executeAction
(_state: GameState, _injection: ActionExecutionInjection)
src/game/nlcore/action/action.ts:38
↓ 1 callers
Method
executeAction
(gameState: GameState, injection: ActionExecutionInjection)
src/game/nlcore/action/actions/videoAction.ts:18
↓ 1 callers
Method
executeActions
(result: CalledActionResult)
src/game/nlcore/action/stackModel.ts:318
↓ 1 callers
Method
extractParams
* 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 callers
Function
filterObjectExcept
(obj: T, fields: (keyof T)[])
src/util/data.ts:1548
↓ 1 callers
Method
findIndex
(callbackfn: (notification: string, id: string, array: string[]) => boolean)
src/game/player/lib/notification.ts:72
↓ 1 callers
Function
fnv1a64
(input: string)
src/util/data.ts:1568
↓ 1 callers
Method
forceAnimation
()
src/game/player/gameState.ts:499
↓ 1 callers
Method
forceOverwrite
(state: Partial<T>)
src/game/nlcore/elements/transform/transform.ts:185
↓ 1 callers
Method
formatStaticWord
@internal
src/game/nlcore/elements/character/sentence.ts:79
↓ 1 callers
Method
freeze
* 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 callers
Method
freeze
()
src/game/nlcore/elements/transform/transform.ts:119
↓ 1 callers
Method
fromChained
* @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 callers
Method
fromChained
@internal
src/game/nlcore/elements/menu.ts:196
↓ 1 callers
Method
fromData
@internal
src/game/nlcore/elements/video.ts:102
↓ 1 callers
Method
fromElementSnapshot
(snapshot: PlayerStateElementSnapshot)
src/game/player/gameState.ts:689
↓ 1 callers
Method
fromPromise
(promise: Promise<T>)
src/util/data.ts:139
↓ 1 callers
Function
generateId
(length: number = 16)
src/util/data.ts:1370
↓ 1 callers
Method
get
(name: string)
src/game/player/lib/ImageCacheManager.ts:47
↓ 1 callers
Method
get
()
src/util/config.ts:105
↓ 1 callers
Method
getActionTrace
(action: Action)
src/game/nlcore/common/Utils.ts:348
↓ 1 callers
Method
getAllElementMap
@internal
src/game/nlcore/action/constructable.ts:67
↓ 1 callers
Method
getAllElementStates
@internal
src/game/nlcore/elements/story.ts:220
↓ 1 callers
Method
getAllPredictableActions
@internal
src/game/nlcore/game/liveGame.ts:722
↓ 1 callers
Method
getCtx
@internal
src/game/nlcore/elements/condition.ts:54
↓ 1 callers
Method
getCurrentQuery
* Get current query parameters * @example * ```typescript * const router = new LayoutRouter(game); * router.navigate("/settings?ta
src/game/player/lib/PageRouter/router.tsx:92
↓ 1 callers
Method
getFutureSrc
()
src/game/nlcore/action/srcManager.ts:210
↓ 1 callers
Function
getGeneratedWords
(words: Word<Pausing | string>[])
src/game/player/elements/say/Sentence.tsx:360
↓ 1 callers
Method
getGlobalVolume
()
src/game/player/lib/AudioManager.ts:369
↓ 1 callers
Method
getImage
(src: string, abortSignal?: AbortSignal, options?: RequestInit)
src/game/player/lib/ImageCacheManager.ts:16
↓ 1 callers
Function
getImageDataUrl
(src: string, options?: RequestInit)
src/util/data.ts:910
↓ 1 callers
Method
getInitialSrc
@internal
src/game/nlcore/elements/displayable/image.ts:145
↓ 1 callers
Method
getInitialState
@internal
src/game/nlcore/elements/layer.ts:170
↓ 1 callers
Method
getInitialTransformState
@internal
src/game/nlcore/elements/layer.ts:177
↓ 1 callers
Method
getNewSavedGame
@internal
src/game/nlcore/game/liveGame.ts:788
↓ 1 callers
Method
getOptions
@internal
src/game/nlcore/elements/transform/transform.ts:481
↓ 1 callers
Method
getParent
()
src/game/nlcore/action/tree/actionTree.ts:125
↓ 1 callers
Method
getPathname
* Get pathname (path without query parameters) * @example * ```typescript * const router = new LayoutRouter(game); * router.naviga
src/game/player/lib/PageRouter/router.tsx:79
↓ 1 callers
Method
getPreloadingScene
()
src/game/player/gameState.ts:221
↓ 1 callers
Method
getQueryParamCount
()
project/test/router.js:174
↓ 1 callers
Method
getQueryParamKeys
()
project/test/router.js:170
↓ 1 callers
Method
getQueryParams
* Get query parameters (alias for getCurrentQuery) * @example * ```typescript * const router = new LayoutRouter(game); * router.na
src/game/player/lib/PageRouter/router.tsx:105
↓ 1 callers
Method
getScene
@internal
src/game/nlcore/elements/scene.ts:173
↓ 1 callers
Method
getSceneElements
()
src/game/player/gameState.ts:268
↓ 1 callers
Method
getSrc
@internal
src/game/nlcore/elements/sound.ts:232
↓ 1 callers
Method
getStyle
()
src/game/player/provider/ratio.tsx:77
↓ 1 callers
Method
getTopSync
()
src/game/nlcore/action/stackModel.ts:296
↓ 1 callers
Method
getVideos
()
src/game/player/gameState.ts:174
↓ 1 callers
Method
getVoice
(state: GameState, sentence: Sentence)
src/game/nlcore/action/actions/characterAction.ts:19
← previous
next →
501–600 of 1,297, ranked by callers