Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Neil-Ni/ng2-2048
/ functions
Functions
86 in github.com/Neil-Ni/ng2-2048
⨍
Functions
86
◇
Types & classes
52
↓ 6 callers
Method
forEach
(cb: any)
app/services/grid.service.ts:136
↓ 5 callers
Method
getCellAt
(pos: IPosition)
app/services/grid.service.ts:113
↓ 4 callers
Method
_coordinatesToPosition
(pos: IPosition)
app/services/grid.service.ts:153
↓ 4 callers
Function
templateLocals
()
tools/utils/seed/template_locals.ts:4
↓ 3 callers
Function
inject
(name?: string)
tools/tasks/seed/build.index.dev.ts:19
↓ 3 callers
Method
setCellAt
(pos: IPosition, tile: Tile)
app/services/grid.service.ts:122
↓ 3 callers
Method
withinGrid
(cell: IPosition)
app/services/grid.service.ts:73
↓ 2 callers
Method
_positionToCoordinates
(i: number)
app/services/grid.service.ts:144
↓ 2 callers
Method
availableCells
()
app/services/grid.service.ts:171
↓ 2 callers
Function
clean
(paths: string|string[])
tools/utils/seed/clean.ts:5
↓ 2 callers
Function
deleteAndWalk
(path: any)
tools/tasks/seed/clean.tools.ts:23
↓ 2 callers
Function
inject
(...files: Array<string>)
tools/tasks/seed/build.index.prod.ts:26
↓ 2 callers
Method
insertTile
(tile: Tile)
app/services/grid.service.ts:157
↓ 2 callers
Method
listen
(port: number)
tools/manual_typings/seed/tiny-lr.d.ts:8
↓ 2 callers
Function
makeTsProject
(options?: Object)
tools/utils/seed/tsproject.ts:6
↓ 2 callers
Method
moveTile
(tile: Tile, newPosition: IPosition)
app/services/grid.service.ts:129
↓ 2 callers
Method
randomlyInsertNewTile
()
app/services/grid.service.ts:184
↓ 1 callers
Method
anyCellsAvailable
()
app/services/grid.service.ts:197
↓ 1 callers
Function
appVersion
()
tools/config/seed.config.ts:208
↓ 1 callers
Method
buildEmptyGameBoard
()
app/services/grid.service.ts:24
↓ 1 callers
Method
buildStartingPosition
()
app/services/grid.service.ts:86
↓ 1 callers
Function
bundleShims
()
tools/tasks/seed/build.bundles.ts:19
↓ 1 callers
Method
calculateNextPosition
(cell: IPosition, key: string)
app/services/grid.service.ts:55
↓ 1 callers
Method
cellAvailable
(cell: IPosition)
app/services/grid.service.ts:78
↓ 1 callers
Method
changed
(options: any)
tools/manual_typings/seed/tiny-lr.d.ts:7
↓ 1 callers
Method
generate
()
app/services/uniqueId.service.ts:2
↓ 1 callers
Function
getEnvironment
()
tools/config/seed.config.ts:214
↓ 1 callers
Function
getInjectablesDependenciesRef
(name?: string)
tools/tasks/seed/build.index.dev.ts:26
↓ 1 callers
Function
getShims
()
tools/tasks/seed/build.bundles.ts:9
↓ 1 callers
Function
injectCss
()
tools/tasks/seed/build.index.prod.ts:37
↓ 1 callers
Function
injectJs
()
tools/tasks/seed/build.index.prod.ts:33
↓ 1 callers
Function
loadTasks
(path: string)
tools/utils/seed/tasks_tools.ts:10
↓ 1 callers
Method
move
(key: string)
app/services/game.service.ts:37
↓ 1 callers
Method
movesAvailable
()
app/services/game.service.ts:87
↓ 1 callers
Method
newGame
()
app/app.component.ts:18
↓ 1 callers
Method
newGame
()
app/services/game.service.ts:31
↓ 1 callers
Function
normalizeDependencies
(deps: InjectableDependency[])
tools/config/seed.config.ts:201
↓ 1 callers
Function
notifyLiveReload
(e:any)
tools/utils/seed/server.ts:14
↓ 1 callers
Function
onlyDirs
(es: any)
tools/tasks/seed/build.assets.prod.ts:7
↓ 1 callers
Function
prepareTemplates
()
tools/tasks/seed/build.html_scss.ts:19
↓ 1 callers
Method
prepareTiles
()
app/services/grid.service.ts:28
↓ 1 callers
Function
processComponentCss
()
tools/tasks/seed/build.html_scss.ts:24
↓ 1 callers
Method
randomAvailableCell
()
app/services/grid.service.ts:190
↓ 1 callers
Function
readDir
(root: string, cb: (taskname: string) => void)
tools/utils/seed/tasks_tools.ts:36
↓ 1 callers
Function
registerTask
(taskname: string, path: string)
tools/utils/seed/tasks_tools.ts:15
↓ 1 callers
Method
removeTile
(pos: IPosition)
app/services/grid.service.ts:162
↓ 1 callers
Method
reset
()
app/models/tile.ts:30
↓ 1 callers
Function
runServer
()
tools/utils/seed/code_change_tools.ts:4
↓ 1 callers
Method
samePositions
(a: IPosition, b: IPosition)
app/services/grid.service.ts:167
↓ 1 callers
Method
savePosition
()
app/models/tile.ts:25
↓ 1 callers
Method
tileMatchesAvailable
()
app/services/grid.service.ts:92
↓ 1 callers
Function
transformPath
()
tools/tasks/seed/build.index.dev.ts:40
↓ 1 callers
Function
transformPath
()
tools/tasks/seed/build.index.prod.ts:41
↓ 1 callers
Method
traversalDirections
(key: string)
app/services/grid.service.ts:37
↓ 1 callers
Method
updatePosition
(newPosition: IPosition)
app/models/tile.ts:38
↓ 1 callers
Function
walk
(path: string)
tools/utils/seed/tasks_tools.ts:41
↓ 1 callers
Function
walk
(path: any)
tools/tasks/seed/clean.tools.ts:13
↓ 1 callers
Function
watch
(taskname: string)
tools/utils/seed/watch.ts:8
Method
DEPENDENCIES
()
tools/config/seed.config.ts:67
Method
add
(stream: NodeJS.ReadWriteStream)
tools/manual_typings/seed/merge-stream.d.ts:4
Function
changed
(files: any)
tools/utils/seed/code_change_tools.ts:20
Method
constructor
()
tools/config/project.config.ts:6
Method
constructor
(public game: GameService)
app/app.component.ts:14
Method
constructor
(private gameService: GameService)
app/components/message/message.component.ts:12
Method
constructor
( private gridService: GridService, private store: Store<any> )
app/services/game.service.ts:19
Method
constructor
()
app/services/grid.service.ts:16
Method
constructor
(position: IPosition, value: number)
app/models/tile.ts:13
Function
filterDependency
(env: string, d: InjectableDependency)
tools/config/seed.config.ts:191
Function
gameReducer
(state = initialState, action: Action)
app/services/game.reducer.ts:25
Method
getSize
()
app/services/grid.service.ts:20
Method
isDuplex
(stream: any)
tools/manual_typings/seed/istream.d.ts:6
Method
isReadable
(stream: any)
tools/manual_typings/seed/istream.d.ts:4
Method
isWritable
(stream: any)
tools/manual_typings/seed/istream.d.ts:5
Method
keepGoing
()
app/components/message/message.component.ts:18
Method
keepGoing
()
app/services/game.service.ts:91
Function
listen
()
tools/utils/seed/code_change_tools.ts:8
Function
mapPath
(dep: any)
tools/tasks/seed/build.index.dev.ts:32
Function
myUtil
()
tools/utils/project/sample_util.ts:1
Method
on
(eventName: string, cb: Function)
tools/manual_typings/seed/walk.d.ts:3
Method
onKeydown
(event: KeyboardEvent)
app/app.component.ts:23
Method
position
()
app/models/tile.ts:21
Method
restart
()
app/components/message/message.component.ts:14
Function
serveProd
()
tools/utils/seed/server.ts:19
Function
serveSPA
()
tools/utils/seed/server.ts:10
Method
updateValue
(newVal: number)
app/models/tile.ts:34
Method
walk
(path: string, options: any)
tools/manual_typings/seed/walk.d.ts:6