MCPcopy Create free account

hub / github.com/nagix/mini-tokyo-3d / functions

Functions418 in github.com/nagix/mini-tokyo-3d

↓ 114 callersMethodget
(id)
src/dataset.js:31
↓ 50 callersMethodadd
(timetable)
src/data-classes/train-timetables.js:29
↓ 20 callersFunctioncreateElement
(tagName, attributes, container)
src/helpers/helpers.js:278
↓ 19 callersFunctiongetTimeOffset
(string)
src/helpers/helpers.js:112
↓ 17 callersFunctionincludes
(array, value)
src/helpers/helpers.js:51
↓ 17 callersFunctionlerp
(x, y, a)
src/helpers/helpers.js:43
↓ 17 callersMethodtrackObject
(object)
src/map.js:3203
↓ 15 callersMethodgetTime
* 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 callersMethodaddLayer
* Adds a layer to the map. * @param {Object | CustomLayerInterface | GeoJsonLayerInterface | ThreeLayerInterface | Tile3DLayerInterface} layer
src/map.js:489
↓ 12 callersMethodgetModelPosition
* 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 callersFunctionisVehicle
(object)
src/map.js:3807
↓ 12 callersMethodupdatePopup
(options)
src/map.js:3407
↓ 11 callersMethodgetZoom
* Returns the map's current zoom level. * @returns {number} The map's current zoom level
src/map.js:201
↓ 11 callersFunctionloadJSON
(url)
src/loader/helpers.js:5
↓ 11 callersFunctionremovePrefix
(value)
src/helpers/helpers.js:135
↓ 11 callersFunctionsaveJSON
(path, data)
src/loader/helpers.js:27
↓ 10 callersMethod_setViewMode
(mode)
src/map.js:3042
↓ 10 callersMethodaddTo
* 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 callersFunctiondefine
(name, code)
src/mesh-sets/shaders.js:236
↓ 10 callersMethodgetJSTDate
* 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 callersMethodgetTimeOffset
* 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 callersMethodmarkObject
(object)
src/map.js:3152
↓ 9 callersMethodgetBearing
* 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 callersMethodgetLocalizedStationTitle
(array)
src/map.js:2087
↓ 9 callersFunctionvalueOrDefault
(value, defaultValue)
src/helpers/helpers.js:76
↓ 8 callersMethodgetPitch
* 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 callersFunctiongetTimeString
(timeOffset)
src/helpers/helpers.js:100
↓ 8 callersMethodsetHTML
* 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 callersMethodclear
()
src/data-classes/train-timetables.js:76
↓ 7 callersFunctioncolorToRGBArray
(color)
src/helpers/helpers.js:265
↓ 7 callersMethodgetCenter
* Returns the map's geographical centerpoint. * @returns {LngLat} The map's geographical centerpoint
src/map.js:180
↓ 7 callersFunctiongetLocationAlongLine
(line, point, options)
src/loader/features.js:30
↓ 7 callersMethodread
(line)
src/worker.js:234
↓ 7 callersMethodremove
* 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 callersMethodremove
()
src/panels/station-panel.js:723
↓ 7 callersMethodremove
* Removes the panel from a map. * @returns {Panel} Returns itself to allow for method chaining
src/panels/panel.js:155
↓ 7 callersMethodsetTitle
* 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 callersMethodstopTrain
(train, keep)
src/map.js:2280
↓ 7 callersMethodupdateObject
(object)
src/layers/traffic-layer.js:163
↓ 6 callersFunctioncreateInterpolant
(xs, ys)
src/map.js:3739
↓ 6 callersMethodfilter
src/map.js:797
↓ 6 callersMethodflyTo
* 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 callersMethodgetUniforms
()
src/mesh-sets/mesh-set.js:11
↓ 6 callersFunctionisStation
(object)
src/map.js:3811
↓ 6 callersMethodsetButtons
* 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 callersMethod_setSearchMode
(mode)
src/map.js:3029
↓ 5 callersMethod_setVisibility
(visible)
src/marker.js:112
↓ 5 callersMethodclone
()
src/data-classes/train-timetable.js:165
↓ 5 callersMethoddisable
()
src/plugin.js:64
↓ 5 callersMethodgetHighResTime
* 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 callersMethodgetOpacity
()
src/mesh-sets/mesh-set.js:53
↓ 5 callersMethodgetTimeString
* 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 callersMethodsetInstanceAttributes
(index, attributes)
src/mesh-sets/mesh-set.js:41
↓ 5 callersMethodupdate
(params, refs)
src/data-classes/train.js:146
↓ 5 callersMethodupdateContent
()
src/panels/about-panel.js:19
↓ 5 callersMethodupdateFlightShape
(flight, t)
src/map.js:1412
↓ 4 callersMethod_jumpTo
(options)
src/map.js:1194
↓ 4 callersMethod_refresh
()
src/controls/clock-control.js:207
↓ 4 callersMethodenable
()
src/plugin.js:47
↓ 4 callersFunctionfeatureFilter
(geojson, fn)
src/helpers/helpers-geojson.js:16
↓ 4 callersMethodgetAll
()
src/dataset.js:49
↓ 4 callersMethodgetLightColor
* 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 callersMethodgetLocalizedDestinationTitle
(destination, direction)
src/map.js:2104
↓ 4 callersMethodgetLocalizedTrainNameOrRailwayTitle
(names, railway)
src/map.js:2072
↓ 4 callersMethodgetLocalizedTrainTypeTitle
(type)
src/map.js:2080
↓ 4 callersMethodgetMesh
()
src/mesh-sets/mesh-set.js:21
↓ 4 callersMethodgetOutlineMesh
()
src/mesh-sets/mesh-set.js:29
↓ 4 callersMethodgetPickingMesh
()
src/mesh-sets/mesh-set.js:25
↓ 4 callersMethodgetUniforms
(extras)
src/mesh-sets/car-mesh-set.js:112
↓ 4 callersMethodhideRoute
()
src/panels/station-panel.js:700
↓ 4 callersMethodonAdd
(map, beforeId)
src/layers/three-layer.js:16
↓ 4 callersFunctionprocess
(data, calendar, postfix)
src/loader/train-timetables.js:3
↓ 4 callersMethodrefreshCameraParams
(params)
src/mesh-sets/mesh-set.js:57
↓ 4 callersMethodrefreshMap
()
src/map.js:3018
↓ 4 callersMethodsetLayerVisibility
* 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 callersMethodsetLngLat
* 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 callersMethodsetOpacity
(opacity)
src/mesh-sets/mesh-set.js:49
↓ 4 callersMethodsetVisibility
(visible)
src/plugin.js:81
↓ 4 callersMethodtrainRepeat
(train, elapsed)
src/map.js:1651
↓ 4 callersMethodtrainStand
(train, final)
src/map.js:1597
↓ 4 callersMethodtrainStart
(train, index)
src/map.js:1569
↓ 4 callersMethodupdateTrainShape
(train, t)
src/map.js:1306
↓ 3 callersMethodaddObject
(object)
src/layers/traffic-layer.js:116
↓ 3 callersMethodadjustCoord
* Returns a LngLat representing geographical coordinates on the ground * that shares the same projected pixel coordinates with the specified
src/map.js:2047
↓ 3 callersFunctionalignDirection
(feature, refCoords)
src/loader/features.js:48
↓ 3 callersMethoddeactivateTrain
(train)
src/map.js:2300
↓ 3 callersMethoddispose
()
src/mesh-sets/car-mesh-set.js:140
↓ 3 callersFunctioneaseInOutQuad
(t)
src/loader/features.js:100
↓ 3 callersMethodgetByTrainId
(trainId)
src/data-classes/train-timetables.js:51
↓ 3 callersMethodgetCalendar
()
src/clock.js:153
↓ 3 callersFunctiongetLayerZoom
(zoom)
src/map.js:3798
↓ 3 callersMethodgetLocalizedRailwayTitle
(railway)
src/map.js:2065
↓ 3 callersMethodgetTimezoneOffset
()
src/clock.js:149
↓ 3 callersFunctionhideLoader
(container)
src/map.js:3611
↓ 3 callersMethodhideStationExits
()
src/map.js:3380
↓ 3 callersMethodisOpen
* 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 callersFunctionnormalizeLang
(lang)
src/helpers/helpers.js:320
↓ 3 callersMethodrefreshFlights
()
src/map.js:1750
↓ 3 callersMethodrefreshTrains
()
src/map.js:1550
↓ 3 callersMethodremoveObject
(object)
src/layers/traffic-layer.js:226
next →1–100 of 418, ranked by callers