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
Method
handle
(action: PlayerAction)
src/game/player/gameState.ts:314
↓ 1 callers
Function
handleClick
()
src/game/player/elements/menu/UIMenu/Item.tsx:65
↓ 1 callers
Function
handleOnTransform
(transform: Transform)
src/game/player/elements/displayable/Displayable.tsx:152
↓ 1 callers
Method
hasFuture
(s: SrcManager)
src/game/nlcore/action/srcManager.ts:206
↓ 1 callers
Method
hasListeners
(event: keyof T)
src/util/data.ts:587
↓ 1 callers
Method
hasNamespace
(key: string)
src/game/nlcore/elements/persistent/storable.ts:178
↓ 1 callers
Method
hide
* @chainable
src/game/nlcore/elements/video.ts:72
↓ 1 callers
Method
initPersistent
@internal
src/game/nlcore/elements/story.ts:265
↓ 1 callers
Method
initialize
* Must be called ONCE on the client side to prepare audio subsystem. * Doing it here avoids "AudioContext is not defined" on the server.
src/game/player/lib/AudioManager.ts:45
↓ 1 callers
Function
inject
(content: React.ReactNode)
src/game/player/lib/PageRouter/Page.tsx:148
↓ 1 callers
Method
isAborted
()
src/util/data.ts:412
↓ 1 callers
Function
isAsyncFunction
(fn: (...args: T) => U | Promise<U>)
src/util/data.ts:1255
↓ 1 callers
Method
isDataURI
(src: string)
src/game/nlcore/common/Utils.ts:158
↓ 1 callers
Method
isExternalSrc
(src: string)
src/game/nlcore/common/Utils.ts:89
↓ 1 callers
Method
isLocked
()
src/game/nlcore/elements/transform/transform.ts:143
↓ 1 callers
Method
isLocked
()
src/util/data.ts:722
↓ 1 callers
Function
isNamedColor
(color: string)
src/util/data.ts:1046
↓ 1 callers
Method
isPlainObject
(value: any)
src/util/config.ts:84
↓ 1 callers
Method
isPlaying
@internal
src/game/nlcore/game/liveGame.ts:680
↓ 1 callers
Method
isPosition
(arg: any)
src/game/nlcore/elements/transform/position.ts:137
↓ 1 callers
Function
isPureObject
(obj: any, seen: WeakSet<any> = new WeakSet())
src/util/data.ts:1293
↓ 1 callers
Method
isSceneActive
(scene: Scene)
src/game/player/gameState.ts:281
↓ 1 callers
Method
isSerializable
(value: any)
src/game/nlcore/elements/persistent/storable.ts:14
↓ 1 callers
Method
isSettled
()
src/util/data.ts:416
↓ 1 callers
Method
isSound
@internal
src/game/nlcore/elements/sound.ts:124
↓ 1 callers
Method
isStackModel
(action: CalledActionResult | Awaitable<CalledActionResult> | StackModel)
src/game/nlcore/action/stackModel.ts:73
↓ 1 callers
Method
isStateMounted
(key: Values<ExposedKeys>)
src/game/player/gameState.ts:557
↓ 1 callers
Method
italic
(text: string | Word)
src/game/nlcore/elements/character/word.ts:39
↓ 1 callers
Function
keyExcept
( obj: T, keys: Filtered[] )
src/util/data.ts:973
↓ 1 callers
Method
loadData
(data: PlayerStateData, elementMap: Map<string, LogicAction.GameElement>)
src/game/player/gameState.ts:629
↓ 1 callers
Method
loadStory
@internal
src/game/nlcore/game/liveGame.ts:117
↓ 1 callers
Method
merge
(a: Coord2D, b: Coord2D)
src/game/nlcore/elements/transform/position.ts:232
↓ 1 callers
Method
mergePosition
( a: RawPosition | IPosition | undefined, b: RawPosition | IPosition | undefined )
src/game/nlcore/elements/transform/transform.ts:78
↓ 1 callers
Function
mergeValue
(_: string, value1: any, value2: any)
src/util/data.ts:77
↓ 1 callers
Method
mergeValue
( key: string, defaultValue: any, newValue: any )
src/util/config.ts:64
↓ 1 callers
Method
mergeWithDefaultConfig
( config: Partial<Raw>, )
src/util/config.ts:52
↓ 1 callers
Method
mountDefaultHandler
@internal
src/game/player/lib/PageRouter/router.tsx:935
↓ 1 callers
Method
narrativeToActions
@internal
src/game/nlcore/elements/scene.ts:456
↓ 1 callers
Method
narrativeToActions
@internal
src/game/nlcore/elements/condition.ts:237
↓ 1 callers
Method
newChain
@internal
src/game/nlcore/action/chain.ts:62
↓ 1 callers
Function
next
()
src/game/player/elements/Player.tsx:73
↓ 1 callers
Method
offHistoryLimit
(callback: (removed: ActionHistory<any>[]) => void)
src/game/nlcore/action/actionHistory.ts:142
↓ 1 callers
Method
offListener
(listener: (value: T) => void)
src/util/data.ts:428
↓ 1 callers
Method
offSkipControllerRegister
(callback: (skipController: SkipController<T, []>) => void)
src/util/data.ts:389
↓ 1 callers
Method
offUndo
(callback: (affected: ActionHistory<any>[]) => void)
src/game/nlcore/action/actionHistory.ts:127
↓ 1 callers
Method
offset
( ori: [xOri: string, yOri: string], offset: [xOffset: number, yOffset: number], inver
src/game/nlcore/common/Utils.ts:162
↓ 1 callers
Method
onCancelled
(callback: () => void)
src/game/player/Tasks.ts:247
↓ 1 callers
Method
onChange
(handler)
project/test/router.js:467
↓ 1 callers
Method
onExitComplete
(handler)
project/test/router.js:384
↓ 1 callers
Method
onFlush
(listener: () => void)
src/game/player/elements/say/UIDialog.tsx:166
↓ 1 callers
Method
onHistoryLimit
(callback: (removed: ActionHistory<any>[]) => void)
src/game/nlcore/action/actionHistory.ts:135
↓ 1 callers
Method
onKeyBindingChange
(type: KeyBindingType | string, listener: (value: KeyBindingValue) => void)
src/game/nlcore/game/keyMap.ts:91
↓ 1 callers
Method
onPageMount
(handler)
project/test/router.js:392
↓ 1 callers
Method
onRequestedUpdate
(callback: () => void)
src/game/player/provider/ratio.tsx:106
↓ 1 callers
Method
onResolved
(callback: () => void)
src/game/player/Tasks.ts:243
↓ 1 callers
Method
onTaskComplete
()
src/util/data.ts:1241
↓ 1 callers
Method
onTimelineRegistered
(callback: () => void)
src/game/player/Tasks.ts:310
↓ 1 callers
Method
onUndo
(callback: (affected: ActionHistory<any>[]) => void)
src/game/nlcore/action/actionHistory.ts:120
↓ 1 callers
Method
onUpdate
@internal
src/game/player/lib/PageRouter/router.tsx:901
↓ 1 callers
Method
onceExitComplete
* Event listener for exit complete (once) * @example * ```typescript * const router = new LayoutRouter(game); * * router.onc
src/game/player/lib/PageRouter/router.tsx:861
↓ 1 callers
Function
onceInteraction
(listener: InteractionHandler)
src/game/player/elements/say/Sentence.tsx:186
↓ 1 callers
Method
oncePageMount
(handler)
project/test/router.js:396
↓ 1 callers
Method
oncePageMount
* Event listener for page mount (once) * @example * ```typescript * const router = new LayoutRouter(game); * * router.oncePa
src/game/player/lib/PageRouter/router.tsx:896
↓ 1 callers
Method
pause
(sound: SoundElement, duration: number = 0)
src/game/player/lib/AudioManager.ts:170
↓ 1 callers
Method
positionToCSS
@internal
src/game/nlcore/elements/transform/transform.ts:267
↓ 1 callers
Method
preventAttach
()
src/game/player/Tasks.ts:356
↓ 1 callers
Method
proxy
(onSettled: (resolved: Timeline[], canceled: Timeline[]) => void)
src/game/player/Tasks.ts:8
↓ 1 callers
Method
proxy
@internal
src/game/nlcore/action/chain.ts:89
↓ 1 callers
Method
race
* Creates a new `Awaitable<T>` that resolves with the first resolved value from multiple awaitables. * All other awaitables will be cancelled whe
src/util/data.ts:188
↓ 1 callers
Function
randId
(len: number = 16)
src/util/data.ts:1360
↓ 1 callers
Method
rawTrigger
(key: K, value: () => T[K])
src/util/data.ts:1420
↓ 1 callers
Method
registerAll
()
src/game/nlcore/game/plugin/plugin.ts:25
↓ 1 callers
Method
registerFuture
(srcManager: SrcManager)
src/game/nlcore/action/srcManager.ts:200
↓ 1 callers
Method
registerPersistent
* Register a Persistent to the story * * You can't use a Persistent that isn't registered to the story
src/game/nlcore/elements/story.ts:80
↓ 1 callers
Method
registerSrc
@internal
src/game/nlcore/elements/scene.ts:471
↓ 1 callers
Method
registerSrc
@internal
src/game/nlcore/elements/displayable/image.ts:516
↓ 1 callers
Method
registerUnmountingPath
(path)
project/test/router.js:570
↓ 1 callers
Method
remove
()
src/game/nlcore/action/tree/actionTree.ts:175
↓ 1 callers
Method
removeChild
(child: RenderableNode | null)
src/game/nlcore/action/tree/actionTree.ts:138
↓ 1 callers
Method
removeElement
(element: PlayerStateElement)
src/game/player/gameState.ts:198
↓ 1 callers
Method
removeQueryParam
(key)
project/test/router.js:152
↓ 1 callers
Method
removeVideo
(video: Video)
src/game/player/gameState.ts:160
↓ 1 callers
Method
requestUpdate
()
src/game/player/provider/ratio.tsx:102
↓ 1 callers
Method
resetLayers
(layers: Map<Layer, LogicAction.DisplayableElements[]>)
src/game/player/gameState.ts:717
↓ 1 callers
Function
resetRefs
()
src/game/player/elements/displayable/Displayable.tsx:321
↓ 1 callers
Method
resetStackModels
@internal
src/game/nlcore/game/liveGame.ts:674
↓ 1 callers
Method
resolvePending
(id: string)
src/game/nlcore/action/gameHistory.ts:61
↓ 1 callers
Method
restoreSceneSnapshot
(snapshot: SceneSnapshot, state: GameState)
src/game/nlcore/action/actions/sceneAction.ts:80
↓ 1 callers
Method
run
(story: Story)
src/game/nlcore/common/Utils.ts:250
↓ 1 callers
Method
runStaticCheck
@internal
src/game/nlcore/elements/story.ts:282
↓ 1 callers
Function
safeClone
(obj: T)
src/util/data.ts:437
↓ 1 callers
Method
scale
* Set the scale of the current staging sequence. * @param scaleX - The scale of the transform on x axis. use negative value to invert the scale
src/game/nlcore/elements/transform/transform.ts:625
↓ 1 callers
Method
scheduleTask
(handler: () => void, delay: number)
src/util/data.ts:796
↓ 1 callers
Method
sequence
* Executes a chain of asynchronous steps in sequence using the provided generator function. * * Each step receives the result of the previou
src/game/player/Tasks.ts:159
↓ 1 callers
Method
serialize
@internal
src/game/nlcore/elements/persistent/storable.ts:98
↓ 1 callers
Method
serializePosition
(pos: IPosition)
src/game/nlcore/elements/transform/position.ts:107
↓ 1 callers
Method
serializeServices
@internal
src/game/nlcore/elements/story.ts:149
↓ 1 callers
Method
setCharacter
@internal
src/game/nlcore/elements/character/sentence.ts:143
↓ 1 callers
Method
setContent
(content: C)
src/game/nlcore/action/tree/actionTree.ts:23
↓ 1 callers
Method
setContentNode
(contentNode: ContentNode<ContentNodeType>)
src/game/nlcore/action/action.ts:58
← previous
next →
601–700 of 1,297, ranked by callers