Skip to content

Latest commit

 

History

History
180 lines (99 loc) · 4.33 KB

SvgStationAttributes.md

File metadata and controls

180 lines (99 loc) · 4.33 KB

transport-network-animator / SvgStationAttributes

Interface: SvgStationAttributes

A Station through which Lines can run.

SVG: rect

example

<rect data-station="Istanbul" x="28.9603" y="41.01" data-dir="ne" data-label-dir="w" />

Hierarchy

Table of contents

Properties

Properties

baseCoords

baseCoords: Vector

The position of the station.

SVG: standard x and y attributes

Defined in

svg/SvgApi.ts:212


from

from: Instant

Indicates when this element shall appear.

Pattern: (?<epoch>\d+) (?<second>\d+)(?<flag> [\w-]+)? e.g. 2020 5 noanim-nozoom

epoch: Epochs will be executed in order. Years can be used as epochs. second: Seconds reset to 0 with every epoch. flag: Optional. reverse, noanim, nozoom, keepzoom. Can be combined with -.

See further explanations in root Readme.

SVG: data-from

Inherited from

SvgAbstractTimedDrawableAttributes.from

Defined in

svg/SvgApi.ts:31


id

id: string

The Station identifier. Attention! This is not the SVG id attribute!

Required.

SVG: data-station

Defined in

svg/SvgApi.ts:205


labelDir

labelDir: Rotation

The direction in which labels for that Station appear, e.g. n, sw.

defaultvalue n

SVG: data-label-dir

Defined in

svg/SvgApi.ts:240


lonLat

lonLat: undefined | Vector

The position of the station in WGS84 / EPSG:4326, i.e. GPS coordinates. Longitude and latitude are to be separated by a space, e.g. 28.9603 41.01. This will be automatically projected to SVG coordinates using Projection.default. If set, this overrides the baseCoords coordinates.

SVG: data-lon-lat

Defined in

svg/SvgApi.ts:222


name

name: string

The name. In certain circumstances, this will be used a grouping identifier.

SVG: name, the standard SVG name attribute

Inherited from

SvgAbstractTimedDrawableAttributes.name

Defined in

svg/SvgApi.ts:16


rotation

rotation: Rotation

The orientation of the station, e.g. n, sw.

defaultvalue n

SVG: data-dir

Defined in

svg/SvgApi.ts:231


to

to: Instant

Indicates when this element shall disappear.

Pattern: (?<epoch>\d+) (?<second>\d+)(?<flag> [\w-]+)? e.g. 2020 5 noanim-nozoom

epoch: Epochs will be executed in order. Years can be used as epochs. second: Seconds reset to 0 with every epoch. flag: Optional. reverse, noanim, nozoom, keepzoom. Can be combined with -.

See further explanations in root Readme.

SVG: data-to

Inherited from

SvgAbstractTimedDrawableAttributes.to

Defined in

svg/SvgApi.ts:46