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
↓ 95 callers
Method
push
@internal
src/game/nlcore/action/chain.ts:47
↓ 74 callers
Method
chain
@internal
src/game/nlcore/action/chain.ts:73
↓ 73 callers
Method
map
* Map the notifications to a new array * * **Note:** The callback function is called with the notification message, the **id** of the notif
src/game/player/lib/notification.ts:56
↓ 47 callers
Method
getContent
()
src/game/nlcore/action/tree/actionTree.ts:28
↓ 46 callers
Method
forEach
(callback: (node: RenderableNode) => void)
src/game/nlcore/action/tree/actionTree.ts:179
↓ 43 callers
Method
resolve
(value: T)
src/util/data.ts:148
↓ 42 callers
Method
emit
(event: K, ...args: Type[K])
src/util/data.ts:531
↓ 40 callers
Method
debug
(tag: string, ...args: any[])
src/util/logger.ts:38
↓ 39 callers
Method
getId
()
src/game/nlcore/action/action.ts:45
↓ 34 callers
Method
cancel
()
src/util/data.ts:655
↓ 34 callers
Method
navigate
(path, queryParams)
project/test/router.js:194
↓ 34 callers
Method
push
(...items: T[])
src/util/data.ts:1474
↓ 34 callers
Method
setContent
(content: ContentNodeType)
src/game/nlcore/action/action.ts:53
↓ 33 callers
Method
forEach
(callbackfn: (notification: string, id: string, array: string[]) => void)
src/game/player/lib/notification.ts:64
↓ 33 callers
Method
then
(callback: (value: T) => void)
src/util/data.ts:346
↓ 32 callers
Method
get
(_, prop)
src/game/nlcore/elements/character.ts:62
↓ 32 callers
Method
getLiveGame
()
src/game/player/gameState.ts:194
↓ 31 callers
Method
getChild
()
src/game/nlcore/action/tree/actionTree.ts:121
↓ 31 callers
Method
push
@internal
src/game/nlcore/elements/control.ts:137
↓ 30 callers
Method
filter
(callbackfn: (notification: string, id: string, array: string[]) => boolean)
src/game/player/lib/notification.ts:60
↓ 30 callers
Method
on
* Register an action handler * @param key action type * @param handler handler, the arguments are the same as the action content type
src/game/nlcore/elements/service.ts:30
↓ 28 callers
Method
attachTimeline
* Attaches a new timeline or an awaitable to the task pool. * If an Awaitable is provided, it wraps it into a new Timeline. * Automatically
src/game/player/Tasks.ts:376
↓ 28 callers
Method
has
(src: string | string[])
src/game/player/lib/Preloaded.ts:58
↓ 26 callers
Method
get
(src: string)
src/game/player/lib/Preloaded.ts:52
↓ 25 callers
Method
exactMatch
(path, pattern)
project/test/router.js:339
↓ 23 callers
Method
from
@internal
src/game/nlcore/elements/condition.ts:24
↓ 23 callers
Method
getCurrentPath
()
project/test/router.js:85
↓ 23 callers
Method
set
(_, prop, value)
src/game/nlcore/elements/character.ts:65
↓ 23 callers
Method
warn
(type: GuardWarningType, message: string)
src/game/player/guard.ts:30
↓ 22 callers
Method
join
( config: T | Config<T, any>, )
src/util/config.ts:113
↓ 21 callers
Method
create
* Create a new transform with the given config. The sequences will be empty. * @param config - The config for the transform. * @returns A ne
src/game/nlcore/elements/transform/transform.ts:262
↓ 21 callers
Function
useGame
()
src/game/player/provider/game-state.tsx:37
↓ 20 callers
Method
abort
()
src/game/player/Tasks.ts:262
↓ 20 callers
Function
deepMerge
(obj1: Record<string, any>, obj2: Record<string, any>, ...objs: Record<string, any>[])
src/util/data.ts:73
↓ 20 callers
Method
get
(key: Key)
src/game/nlcore/elements/persistent/storable.ts:58
↓ 19 callers
Method
add
* Add an item to the gallery * @chainable * @param name - The name of the item to add * @example * ```ts * scene.action([
src/game/nlcore/elements/built-in/Gallery.ts:94
↓ 19 callers
Method
resolve
(tags: SelectElementFromEach<Tags> | string[])
src/game/nlcore/elements/displayable/image.ts:432
↓ 17 callers
Method
registerSkipController
(skipController: SkipController<T, []>)
src/util/data.ts:322
↓ 16 callers
Method
entries
()
src/game/nlcore/elements/persistent/storable.ts:199
↓ 15 callers
Method
add
(src: PreloadedSrc<T>)
src/game/player/lib/Preloaded.ts:43
↓ 15 callers
Method
assertGameState
* @internal * @throws {RuntimeGameError} - If the game state isn't found
src/game/nlcore/game/liveGame.ts:821
↓ 14 callers
Method
assign
@internal
src/game/nlcore/elements/character/word.ts:96
↓ 14 callers
Method
forEach
(fn: (item: T) => void)
src/util/data.ts:1507
↓ 14 callers
Method
is
(parent: new (...args: any[]) => T, type: string)
src/game/nlcore/action/actions.ts:37
↓ 14 callers
Method
isSettled
()
src/game/player/Tasks.ts:231
↓ 14 callers
Method
isUnknown
(arg: any)
src/game/nlcore/elements/transform/position.ts:55
↓ 14 callers
Method
keys
()
src/game/nlcore/elements/persistent/storable.ts:191
↓ 14 callers
Function
listener
(event: KeyboardEvent)
src/game/player/elements/menu/UIMenu/Item.tsx:52
↓ 14 callers
Method
toString
()
src/game/nlcore/common/Utils.ts:57
↓ 13 callers
Method
getLiveGame
()
src/game/nlcore/game.ts:220
↓ 13 callers
Method
getNamespace
@internal
src/game/nlcore/elements/persistent.ts:51
↓ 13 callers
Method
isAwaitable
(obj: any)
src/util/data.ts:135
↓ 13 callers
Method
update
(width: number, height: number, scale: number)
src/game/player/provider/ratio.tsx:46
↓ 13 callers
Function
useFlush
(deps?: React.DependencyList)
src/game/player/lib/flush.tsx:3
↓ 13 callers
Method
weakWarn
(tag: string, ...args: any[])
src/util/logger.ts:50
↓ 12 callers
Method
emitOnChange
@internal
src/game/player/lib/PageRouter/router.tsx:974
↓ 12 callers
Method
has
(plugin: IGamePluginRegistry)
src/game/nlcore/game/plugin/plugin.ts:33
↓ 12 callers
Method
next
@internal
src/game/nlcore/game/liveGame.ts:616
↓ 12 callers
Method
orUnknown
(arg: T | UnknownAble<T> | undefined)
src/game/nlcore/elements/transform/position.ts:97
↓ 12 callers
Method
stringifyWithName
(name: string)
src/game/nlcore/action/actions.ts:48
↓ 11 callers
Method
call
* Call method to implement tag function functionality * @internal
src/game/nlcore/elements/character.ts:180
↓ 11 callers
Method
error
(tag: string, ...args: any[])
src/util/logger.ts:32
↓ 11 callers
Method
isColor
* Accepts: {@link Color}
src/game/nlcore/common/Utils.ts:110
↓ 11 callers
Method
isEnabled
(type: keyof Extract<GameConfig["app"]["logger"], object>)
src/util/logger.ts:86
↓ 11 callers
Method
isImageSrc
* Accepts: {@link ImageSrc}
src/game/nlcore/common/Utils.ts:96
↓ 11 callers
Method
log
(tag: string, ...args: any[])
src/util/logger.ts:14
↓ 11 callers
Method
parsePath
(path)
project/test/router.js:299
↓ 11 callers
Method
setChild
(child: RenderableNode | null)
src/game/nlcore/action/tree/actionTree.ts:102
↓ 11 callers
Method
srcToURL
(src: string | NextJSStaticImageData)
src/game/nlcore/common/Utils.ts:70
↓ 10 callers
Method
buildUrl
(path, query)
project/test/router.js:122
↓ 10 callers
Method
emitOnChange
()
project/test/router.js:471
↓ 10 callers
Method
evaluate
@internal
src/game/nlcore/elements/condition.ts:44
↓ 10 callers
Method
forward
* Go forward to next path * @example * ```typescript * const router = new LayoutRouter(game, "/home"); * router.navigate("/about")
src/game/player/lib/PageRouter/router.tsx:527
↓ 10 callers
Method
getExposedStateForce
(key: ExposedKeys[T])
src/game/player/gameState.ts:565
↓ 10 callers
Method
isCalledActionResult
(action: CalledActionResult | Awaitable<CalledActionResult> | StackModel | undefined | null)
src/game/nlcore/action/stackModel.ts:83
↓ 10 callers
Method
register
(game: Game)
src/game/nlcore/game/plugin/plugin.ts:5
↓ 10 callers
Function
useRatio
()
src/game/player/provider/ratio.tsx:134
↓ 9 callers
Method
attachChild
(arg0: Awaitable | Timeline)
src/game/player/Tasks.ts:272
↓ 9 callers
Function
createMicroTask
(t: () => (() => void) | void)
src/util/data.ts:957
↓ 9 callers
Method
getActions
@internal
src/game/nlcore/action/chain.ts:52
↓ 9 callers
Method
getHistory
()
project/test/router.js:178
↓ 9 callers
Method
getSceneRoot
@internal
src/game/nlcore/elements/scene.ts:582
↓ 9 callers
Method
getSrc
(src: Src | string)
src/game/player/lib/Preloaded.ts:87
↓ 9 callers
Method
isEmpty
()
src/game/nlcore/action/stackModel.ts:467
↓ 9 callers
Method
isTagSrc
@internal
src/game/nlcore/elements/displayable/image.ts:162
↓ 9 callers
Method
isWord
(obj: any)
src/game/nlcore/elements/character/word.ts:21
↓ 9 callers
Method
matchPath
(path, pattern)
project/test/router.js:315
↓ 9 callers
Method
pushChange
@internal
src/game/nlcore/elements/transform/transform.ts:696
↓ 9 callers
Method
say
( contentOrText: SentencePrompt | Sentence | TemplateStringsArray, configOrArg0?: SentenceUser
src/game/nlcore/elements/character.ts:107
↓ 9 callers
Method
toData
(item: CalledActionResult | Awaitable<CalledActionResult>)
src/game/nlcore/action/stackModel.ts:389
↓ 8 callers
Method
abort
* **Note**: Calling this method won't trigger the `then` callbacks.
src/util/data.ts:400
↓ 8 callers
Method
copy
@internal
src/game/nlcore/elements/character/word.ts:102
↓ 8 callers
Method
deserialize
(data: Record<string, any>)
src/game/nlcore/elements/built-in/Gallery.ts:67
↓ 8 callers
Method
fromData
@internal
src/game/nlcore/action/baseElement.ts:23
↓ 8 callers
Method
getCurrentQuery
()
project/test/router.js:93
↓ 8 callers
Method
getPreference
(key: K)
src/game/nlcore/game/preference.ts:27
↓ 8 callers
Method
getStorable
()
src/game/nlcore/game/liveGame.ts:107
↓ 8 callers
Method
keys
()
src/util/config.ts:44
↓ 8 callers
Method
map
(fn: (item: T) => U)
src/util/data.ts:1517
↓ 8 callers
Method
onAbort
(handler: () => void)
src/game/nlcore/elements/service.ts:56
next →
1–100 of 1,297, ranked by callers