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
↓ 4 callers
Method
onChange
@internal
src/game/player/lib/PageRouter/router.tsx:969
↓ 4 callers
Method
onComplete
()
src/game/nlcore/elements/transform/transform.ts:435
↓ 4 callers
Method
onSettled
(callback: () => void)
src/game/player/Tasks.ts:251
↓ 4 callers
Method
onSettled
(callback: () => void)
src/util/data.ts:355
↓ 4 callers
Method
onUpdate
(callback: (width: number, height: number) => void)
src/game/player/provider/ratio.tsx:98
↓ 4 callers
Method
pause
()
src/game/player/provider/ratio.tsx:88
↓ 4 callers
Method
peek
()
src/util/data.ts:1487
↓ 4 callers
Method
play
(sound: SoundElement, options: FadeOptions = { end: 1, duration: 0, })
src/game/player/lib/AudioManager.ts:67
↓ 4 callers
Method
play
* Play the video * * The action will be resolved when the video ends * @chainable
src/game/nlcore/elements/video.ts:85
↓ 4 callers
Method
requestAsyncStackModel
* **IMPORTANT**: Experimental * @internal
src/game/nlcore/game/liveGame.ts:654
↓ 4 callers
Method
requestPageTransition
@internal
src/game/player/lib/PageRouter/router.tsx:1118
↓ 4 callers
Method
safeEmit
(event: keyof DialogEvents, ...args: DialogEvents[keyof DialogEvents])
src/game/player/elements/say/UIDialog.tsx:170
↓ 4 callers
Method
serialize
* Serialize current StackModel into a plain JSON-serialisable structure. * * @param frozen - When true (default), the snapshot also contains
src/game/nlcore/action/stackModel.ts:388
↓ 4 callers
Method
set
(key: Key, value: T[Key])
src/game/nlcore/elements/persistent/storable.ts:48
↓ 4 callers
Method
setKeyBinding
* Set a key binding (case-insensitive) * @param type - The type of key binding * @param value - The value of the key binding * *
src/game/nlcore/game/keyMap.ts:30
↓ 4 callers
Function
setMounted
(mounted: boolean)
src/game/player/lib/PageRouter/Page.tsx:70
↓ 4 callers
Method
stop
* @chainable
src/game/nlcore/elements/sound.ts:187
↓ 4 callers
Method
stringify
(strict: boolean = false)
src/game/nlcore/elements/story.ts:144
↓ 4 callers
Function
toHex
(hex: { r: number; g: number; b: number; a?: number } | string)
src/util/data.ts:473
↓ 4 callers
Method
trigger
(type: K, ...args: Content[K])
src/game/nlcore/elements/service.ts:35
↓ 4 callers
Method
updateHistory
* Update current history entry with current path and query
project/test/router.js:555
↓ 4 callers
Method
updateHistory
* Update current history entry with current path and query * @internal
src/game/player/lib/PageRouter/router.tsx:1111
↓ 4 callers
Function
useExposeState
( key: ExposedKeys[T], value: ExposedState[T] | (() => ExposedState[T]), deps: React.DependencyLis
src/game/player/lib/useExposeState.tsx:13
↓ 3 callers
Method
_mixedSrcError
@internal
src/game/nlcore/elements/displayable/image.ts:456
↓ 3 callers
Method
_sceneNotFoundError
(sceneId: string)
src/game/nlcore/action/actions/sceneAction.ts:251
↓ 3 callers
Method
addNamespace
(namespace: Namespace<T>)
src/game/nlcore/elements/persistent/storable.ts:157
↓ 3 callers
Method
applyTransition
(gameState: GameState, transition: ImageTransition, injection: ActionExecutionInjection)
src/game/nlcore/action/actions/sceneAction.ts:105
↓ 3 callers
Method
assertPlayerElement
* @internal * @throws {RuntimeGameError} - If the player element isn't mounted
src/game/nlcore/game/liveGame.ts:831
↓ 3 callers
Method
checkActionChain
(actions: LogicAction.Actions[])
src/game/nlcore/action/actions/controlAction.ts:27
↓ 3 callers
Method
clear
()
project/test/router.js:284
↓ 3 callers
Method
constructNodes
@internal
src/game/nlcore/elements/menu.ts:226
↓ 3 callers
Method
constructSceneRoot
@internal
src/game/nlcore/elements/scene.ts:371
↓ 3 callers
Method
copy
* Create a sound with the same configuration
src/game/nlcore/elements/sound.ts:252
↓ 3 callers
Method
createAction
@internal
src/game/nlcore/elements/video.ts:122
↓ 3 callers
Method
deserialize
(data: StackModelRawData, actionMap: Map<string, LogicAction.Actions>)
src/game/nlcore/action/stackModel.ts:434
↓ 3 callers
Method
emitOnPageMount
()
project/test/router.js:455
↓ 3 callers
Method
evaluate
* Evaluate the JavaScript function and determine whether the result is true
src/game/nlcore/elements/persistent.ts:210
↓ 3 callers
Method
extractParams
(path, pattern)
project/test/router.js:364
↓ 3 callers
Method
flush
()
src/game/player/lib/notification.ts:137
↓ 3 callers
Method
forceSkip
* Only for dialog state to call * * Force the sentence to cancel/skip all the tasks
src/game/player/elements/say/UIDialog.tsx:92
↓ 3 callers
Method
forward
()
project/test/router.js:251
↓ 3 callers
Method
fromData
(data: AudioManagerDataRaw, elementMap: Map<string, LogicAction.GameElement>)
src/game/player/lib/AudioManager.ts:273
↓ 3 callers
Method
get
* Alias of {@link toWord}
src/game/nlcore/elements/persistent.ts:177
↓ 3 callers
Method
getAllChildrenElements
@internal
src/game/nlcore/action/constructable.ts:74
↓ 3 callers
Method
getInversionConfig
@internal
src/game/nlcore/elements/story.ts:273
↓ 3 callers
Method
getKeyBinding
* Get a key binding * @param type - The type of key binding * @returns The value of the key binding * * @example * ```ts
src/game/nlcore/game/keyMap.ts:46
↓ 3 callers
Method
getNamespaceName
@internal
src/game/nlcore/elements/persistent.ts:217
↓ 3 callers
Method
getParentPath
(path)
project/test/router.js:307
↓ 3 callers
Method
getPreloadableSrc
(story: Story, action: LogicAction.Actions)
src/game/nlcore/action/srcManager.ts:79
↓ 3 callers
Method
getSceneName
(scene: Scene | string)
src/game/nlcore/action/actions/sceneAction.ts:258
↓ 3 callers
Method
getSequenceOptions
@internal
src/game/nlcore/elements/transform/transform.ts:536
↓ 3 callers
Method
group
(tag: string, collapsed = false)
src/util/logger.ts:68
↓ 3 callers
Method
has
(name: string)
src/game/player/lib/ImageCacheManager.ts:33
↓ 3 callers
Method
has
* Check if an item is in the gallery * @param name - The name of the item to check * @returns A lambda that returns true if the item is in t
src/game/nlcore/elements/built-in/Gallery.ts:109
↓ 3 callers
Function
hasOwnProperty
(obj: Record<string, any>, key: string)
src/util/data.ts:74
↓ 3 callers
Method
isActive
()
project/test/router.js:463
↓ 3 callers
Method
isIdle
()
src/game/player/elements/say/UIDialog.tsx:65
↓ 3 callers
Method
isImageURL
* Accepts: {@link string}
src/game/nlcore/common/Utils.ts:103
↓ 3 callers
Method
isLambda
@internal
src/game/nlcore/elements/condition.ts:14
↓ 3 callers
Method
isPathsUnmounting
()
project/test/router.js:574
↓ 3 callers
Method
isPreloading
(src: string)
src/game/player/lib/ImageCacheManager.ts:60
↓ 3 callers
Method
isRGBAColor
(color: any)
src/game/nlcore/common/Utils.ts:118
↓ 3 callers
Method
isScene
@internal
src/game/nlcore/elements/scene.ts:168
↓ 3 callers
Method
isSingleWord
@internal
src/game/nlcore/elements/character/sentence.ts:98
↓ 3 callers
Method
joinPath
* Join multiple path segments into a single path
project/test/router.js:540
↓ 3 callers
Method
match
* Check if a key matches a key binding (case-insensitive) * @param type - The type of key binding * @param key - The key to check * @re
src/game/nlcore/game/keyMap.ts:125
↓ 3 callers
Method
mergeState
@internal
src/game/nlcore/elements/transform/transform.ts:300
↓ 3 callers
Method
mount
(path)
project/test/router.js:413
↓ 3 callers
Method
narrativeToActions
@internal
src/game/nlcore/elements/menu.ts:216
↓ 3 callers
Method
observe
(state: GameState)
src/game/player/guard.ts:25
↓ 3 callers
Method
off
(event: K, listener: EventListener<Type[K]>)
src/util/data.ts:525
↓ 3 callers
Method
off
(lock: Lock)
src/util/data.ts:742
↓ 3 callers
Method
on
(event: K, listener: EventListener<Type[K]>)
src/util/data.ts:498
↓ 3 callers
Method
push
* Push an action to the history
src/game/nlcore/action/actionHistory.ts:43
↓ 3 callers
Method
pushUnchained
@internal
src/game/nlcore/elements/control.ts:152
↓ 3 callers
Method
replace
(path, queryParams)
project/test/router.js:266
↓ 3 callers
Method
reset
()
src/game/nlcore/action/stackModel.ts:419
↓ 3 callers
Method
sceneNotFound
()
src/game/player/gameState.ts:735
↓ 3 callers
Method
setBackgroundMusic
* Set background music * @param sound Target music * @param fade If set, the fade-out effect will be applied to the previous music, and the
src/game/nlcore/elements/scene.ts:319
↓ 3 callers
Method
setGuard
(guard: GameStateGuard)
src/game/player/Tasks.ts:294
↓ 3 callers
Method
setId
(id: string)
src/game/nlcore/action/action.ts:49
↓ 3 callers
Function
setMounted
(mounted: boolean)
src/game/player/lib/PageRouter/Layout.tsx:87
↓ 3 callers
Method
setParent
(_: RenderableNode | null)
src/game/nlcore/action/tree/actionTree.ts:171
↓ 3 callers
Method
setPreference
(key: K, value: T[K])
src/game/nlcore/game/preference.ts:22
↓ 3 callers
Method
setStatus
* Set the status of the timeline * * if the status is already resolved or canceled, it'll silently ignore the status change
src/game/player/Tasks.ts:338
↓ 3 callers
Method
size
()
src/game/player/lib/ImageCacheManager.ts:56
↓ 3 callers
Function
sleep
(ms: number)
src/util/data.ts:608
↓ 3 callers
Method
start
()
src/util/data.ts:935
↓ 3 callers
Method
startPageTransition
()
project/test/router.js:561
↓ 3 callers
Method
toData
@internal
src/game/nlcore/elements/video.ts:93
↓ 3 callers
Method
toSeconds
@internal
src/game/nlcore/elements/transform/transform.ts:702
↓ 3 callers
Method
toSentence
@internal
src/game/nlcore/elements/character/sentence.ts:53
↓ 3 callers
Method
toString
()
src/game/nlcore/elements/character/word.ts:111
↓ 3 callers
Method
toStyle
(gameState: GameState, overwrites?: OverwriteDefinition)
src/game/nlcore/elements/transform/transform.ts:162
↓ 3 callers
Function
updateWidth
()
src/game/player/elements/image/AspectScaleImage.tsx:79
↓ 3 callers
Function
useDisplayable
( { element, state, skipTransform, skipTransition, overwriteDefini
src/game/player/elements/displayable/Displayable.tsx:57
↓ 3 callers
Function
useLayout
()
src/game/player/lib/PageRouter/Layout.tsx:38
↓ 3 callers
Function
usePreloaded
()
src/game/player/provider/preloaded.tsx:33
↓ 3 callers
Function
useRouterFlush
()
src/game/player/lib/PageRouter/routerHooks.ts:52
↓ 2 callers
Method
D2PositionToCSS
(pos: D2Position, invertX = false, invertY = false)
src/game/nlcore/elements/transform/position.ts:59
← previous
next →
201–300 of 1,297, ranked by callers