Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nagix/mini-tokyo-3d
/ functions
Functions
418 in github.com/nagix/mini-tokyo-3d
⨍
Functions
418
◇
Types & classes
98
↓ 114 callers
Method
get
(id)
src/dataset.js:31
↓ 50 callers
Method
add
(timetable)
src/data-classes/train-timetables.js:29
↓ 20 callers
Function
createElement
(tagName, attributes, container)
src/helpers/helpers.js:278
↓ 19 callers
Function
getTimeOffset
(string)
src/helpers/helpers.js:112
↓ 17 callers
Function
includes
(array, value)
src/helpers/helpers.js:51
↓ 17 callers
Function
lerp
(x, y, a)
src/helpers/helpers.js:43
↓ 17 callers
Method
trackObject
(object)
src/map.js:3203
↓ 15 callers
Method
getTime
* Returns the number of milliseconds since the Unix Epoch at the specified time. * If the time is not specified, it returns that at the current t
src/clock.js:74
↓ 13 callers
Method
addLayer
* Adds a layer to the map. * @param {Object | CustomLayerInterface | GeoJsonLayerInterface | ThreeLayerInterface | Tile3DLayerInterface} layer
src/map.js:489
↓ 12 callers
Method
getModelPosition
* Projects a LngLat to a MercatorCoordinate, and returns the translated * mercator coordinates with Tokyo Station as the origin. * @param {L
src/map.js:558
↓ 12 callers
Function
isVehicle
(object)
src/map.js:3807
↓ 12 callers
Method
updatePopup
(options)
src/map.js:3407
↓ 11 callers
Method
getZoom
* Returns the map's current zoom level. * @returns {number} The map's current zoom level
src/map.js:201
↓ 11 callers
Function
loadJSON
(url)
src/loader/helpers.js:5
↓ 11 callers
Function
removePrefix
(value)
src/helpers/helpers.js:135
↓ 11 callers
Function
saveJSON
(path, data)
src/loader/helpers.js:27
↓ 10 callers
Method
_setViewMode
(mode)
src/map.js:3042
↓ 10 callers
Method
addTo
* Adds the popup to a map. * @param {Map} map - The Mini Tokyo 3D map to add the popup to * @returns {Popup} Returns itself to allow for met
src/popup.js:31
↓ 10 callers
Function
define
(name, code)
src/mesh-sets/shaders.js:236
↓ 10 callers
Method
getJSTDate
* Returns the date object in JST. * If the time is not specified, it returns that at the current time. * In the playback mode, the time in t
src/clock.js:58
↓ 10 callers
Method
getTimeOffset
* Returns a time offset based on the current time. * @returns {number} The number of milliseconds elapsed since the last 3am
src/clock.js:132
↓ 10 callers
Method
markObject
(object)
src/map.js:3152
↓ 9 callers
Method
getBearing
* Returns the map's current bearing. The bearing is the compass direction that * is "up"; for example, a bearing of 90° orients the map so that e
src/map.js:222
↓ 9 callers
Method
getLocalizedStationTitle
(array)
src/map.js:2087
↓ 9 callers
Function
valueOrDefault
(value, defaultValue)
src/helpers/helpers.js:76
↓ 8 callers
Method
getPitch
* Returns the map's current pitch (tilt). * @returns {number} The map's current pitch, measured in degrees away from the * plane of the
src/map.js:246
↓ 8 callers
Function
getTimeString
(timeOffset)
src/helpers/helpers.js:100
↓ 8 callers
Method
setHTML
* Sets the panel's content to the HTML provided as a string. * @param {string} html - A string representing HTML content for the panel * @re
src/panels/panel.js:38
↓ 7 callers
Method
clear
()
src/data-classes/train-timetables.js:76
↓ 7 callers
Function
colorToRGBArray
(color)
src/helpers/helpers.js:265
↓ 7 callers
Method
getCenter
* Returns the map's geographical centerpoint. * @returns {LngLat} The map's geographical centerpoint
src/map.js:180
↓ 7 callers
Function
getLocationAlongLine
(line, point, options)
src/loader/features.js:30
↓ 7 callers
Method
read
(line)
src/worker.js:234
↓ 7 callers
Method
remove
* Removes the popup from the map it has been added to. * @returns {Popup} Returns itself to allow for method chaining
src/popup.js:40
↓ 7 callers
Method
remove
()
src/panels/station-panel.js:723
↓ 7 callers
Method
remove
* Removes the panel from a map. * @returns {Panel} Returns itself to allow for method chaining
src/panels/panel.js:155
↓ 7 callers
Method
setTitle
* Sets the panel's title to a string of text. * @param {string} title - The title of the panel * @returns {Panel} Returns itself to allow fo
src/panels/panel.js:21
↓ 7 callers
Method
stopTrain
(train, keep)
src/map.js:2280
↓ 7 callers
Method
updateObject
(object)
src/layers/traffic-layer.js:163
↓ 6 callers
Function
createInterpolant
(xs, ys)
src/map.js:3739
↓ 6 callers
Method
filter
src/map.js:797
↓ 6 callers
Method
flyTo
* Changes any combination of center, zoom, bearing, and pitch, animating the * transition along a curve that evokes flight. The animation seamles
src/map.js:291
↓ 6 callers
Method
getUniforms
()
src/mesh-sets/mesh-set.js:11
↓ 6 callers
Function
isStation
(object)
src/map.js:3811
↓ 6 callers
Method
setButtons
* Sets buttons on the panel's title. * @param {Array<HTMLElement>} buttons - An array of DOM elements to use as buttons * on the title o
src/panels/panel.js:56
↓ 5 callers
Method
_setSearchMode
(mode)
src/map.js:3029
↓ 5 callers
Method
_setVisibility
(visible)
src/marker.js:112
↓ 5 callers
Method
clone
()
src/data-classes/train-timetable.js:165
↓ 5 callers
Method
disable
()
src/plugin.js:64
↓ 5 callers
Method
getHighResTime
* Returns the number of milliseconds since the time origin. * In the playback mode, the time in the simulation clock is used. * @returns {nu
src/clock.js:143
↓ 5 callers
Method
getOpacity
()
src/mesh-sets/mesh-set.js:53
↓ 5 callers
Method
getTimeString
* Returns the time expression in JST. * If the time is not specified, it returns that at the current time. * In the playback mode, the time
src/clock.js:120
↓ 5 callers
Method
setInstanceAttributes
(index, attributes)
src/mesh-sets/mesh-set.js:41
↓ 5 callers
Method
update
(params, refs)
src/data-classes/train.js:146
↓ 5 callers
Method
updateContent
()
src/panels/about-panel.js:19
↓ 5 callers
Method
updateFlightShape
(flight, t)
src/map.js:1412
↓ 4 callers
Method
_jumpTo
(options)
src/map.js:1194
↓ 4 callers
Method
_refresh
()
src/controls/clock-control.js:207
↓ 4 callers
Method
enable
()
src/plugin.js:47
↓ 4 callers
Function
featureFilter
(geojson, fn)
src/helpers/helpers-geojson.js:16
↓ 4 callers
Method
getAll
()
src/dataset.js:49
↓ 4 callers
Method
getLightColor
* Returns the light color based on the current date and time. * In the playback mode, the time in the simulation clock is used. * @returns {
src/map.js:3123
↓ 4 callers
Method
getLocalizedDestinationTitle
(destination, direction)
src/map.js:2104
↓ 4 callers
Method
getLocalizedTrainNameOrRailwayTitle
(names, railway)
src/map.js:2072
↓ 4 callers
Method
getLocalizedTrainTypeTitle
(type)
src/map.js:2080
↓ 4 callers
Method
getMesh
()
src/mesh-sets/mesh-set.js:21
↓ 4 callers
Method
getOutlineMesh
()
src/mesh-sets/mesh-set.js:29
↓ 4 callers
Method
getPickingMesh
()
src/mesh-sets/mesh-set.js:25
↓ 4 callers
Method
getUniforms
(extras)
src/mesh-sets/car-mesh-set.js:112
↓ 4 callers
Method
hideRoute
()
src/panels/station-panel.js:700
↓ 4 callers
Method
onAdd
(map, beforeId)
src/layers/three-layer.js:16
↓ 4 callers
Function
process
(data, calendar, postfix)
src/loader/train-timetables.js:3
↓ 4 callers
Method
refreshCameraParams
(params)
src/mesh-sets/mesh-set.js:57
↓ 4 callers
Method
refreshMap
()
src/map.js:3018
↓ 4 callers
Method
setLayerVisibility
* Sets the visibility of the layer. * @param {string} layerId - The ID of the layer to set the visibility in. * @param {string} visibility -
src/map.js:523
↓ 4 callers
Method
setLngLat
* Sets the geographical location of the popup's anchor, and moves the popup to it. * @param {LngLatLike} lnglat - The geographical location to se
src/popup.js:50
↓ 4 callers
Method
setOpacity
(opacity)
src/mesh-sets/mesh-set.js:49
↓ 4 callers
Method
setVisibility
(visible)
src/plugin.js:81
↓ 4 callers
Method
trainRepeat
(train, elapsed)
src/map.js:1651
↓ 4 callers
Method
trainStand
(train, final)
src/map.js:1597
↓ 4 callers
Method
trainStart
(train, index)
src/map.js:1569
↓ 4 callers
Method
updateTrainShape
(train, t)
src/map.js:1306
↓ 3 callers
Method
addObject
(object)
src/layers/traffic-layer.js:116
↓ 3 callers
Method
adjustCoord
* Returns a LngLat representing geographical coordinates on the ground * that shares the same projected pixel coordinates with the specified
src/map.js:2047
↓ 3 callers
Function
alignDirection
(feature, refCoords)
src/loader/features.js:48
↓ 3 callers
Method
deactivateTrain
(train)
src/map.js:2300
↓ 3 callers
Method
dispose
()
src/mesh-sets/car-mesh-set.js:140
↓ 3 callers
Function
easeInOutQuad
(t)
src/loader/features.js:100
↓ 3 callers
Method
getByTrainId
(trainId)
src/data-classes/train-timetables.js:51
↓ 3 callers
Method
getCalendar
()
src/clock.js:153
↓ 3 callers
Function
getLayerZoom
(zoom)
src/map.js:3798
↓ 3 callers
Method
getLocalizedRailwayTitle
(railway)
src/map.js:2065
↓ 3 callers
Method
getTimezoneOffset
()
src/clock.js:149
↓ 3 callers
Function
hideLoader
(container)
src/map.js:3611
↓ 3 callers
Method
hideStationExits
()
src/map.js:3380
↓ 3 callers
Method
isOpen
* Checks if a panel is open. * @returns {boolean} True if the panel is open, false if it is closed
src/panels/panel.js:184
↓ 3 callers
Function
normalizeLang
(lang)
src/helpers/helpers.js:320
↓ 3 callers
Method
refreshFlights
()
src/map.js:1750
↓ 3 callers
Method
refreshTrains
()
src/map.js:1550
↓ 3 callers
Method
removeObject
(object)
src/layers/traffic-layer.js:226
next →
1–100 of 418, ranked by callers