open-index/open-npm huggingface dataset:
npm package: @fengzos/station-simulate
Description: ```sh npm install @fengzos/station-simulate ```
Latest version: 0.0.2

# station-simulate

```sh
npm install @fengzos/station-simulate
```

```js
import StationSimulate from '@fengzos/station-simulate'

// 初始车站模拟配置
const stationSimulate = new StationSimulate({
    el: 'stationDiv', // 模拟图要加载的div的id
    chartsName: '北京南站', // 图的名称
    trainSymbol: 'circle', // 车辆运动轨迹图画, circle: 圆点
    signalSymbol: 'circle' // 信号灯图画
})

// 创建车站模拟图
stationSimulate.create(initData)

// 刷新车辆动画数据
stationSimulate.refresh(trainRouteData)

// 销毁车站模拟
stationSimulate.destroy()
```