@teeechina/teee-map 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use strict';var ee=require('maplibre-gl'),z=require('@turf/turf'),vectorTile=require('@mapbox/vector-tile'),pbf=require('pbf');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var ee__namespace=/*#__PURE__*/_interopNamespace(ee);var z__namespace=/*#__PURE__*/_interopNamespace(z);/**
2
- * @teeechina/teee-map v0.1.0
2
+ * @teeechina/teee-map v0.1.1
3
3
  * 基于 maplibre-gl 封装的业务地图 SDK,面向太昌 GIS 业务流提供开箱即用的地图初始化、图层管理、要素状态控制及加密瓦片支持。
4
4
  * (c) 2026 TeeChina
5
5
  * Released under the MIT License
package/dist/index.d.cts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as maplibregl from 'maplibre-gl';
2
2
  import { SourceSpecification, LayerSpecification, Map as Map$1 } from 'maplibre-gl';
3
3
 
4
+ type MapType = 'graph' | 'geom' | 'ctc' | 'raster';
4
5
  type LayerType = 'background' | 'signal' | 'track' | 'track_circuit' | 'bumper' | 'switch' | 'switch_loc' | 'insulation' | 'label' | 'prevention' | 'sgfhqy' | 'region' | 'display_polygon' | 'display_line' | 'display_point';
5
6
  type RegionLayerType = 'background' | 'track' | 'bridge' | 'tunnel' | 'region_signal' | 'curve' | 'floodcontrol' | 'ramp' | 'contactseparation' | 'callpost';
6
7
  interface MapForgeConfig {
@@ -25,6 +26,37 @@ interface IconType {
25
26
  id: string;
26
27
  image: HTMLImageElement;
27
28
  }
29
+ interface stateType {
30
+ state?: string | number;
31
+ select?: boolean;
32
+ visiable?: boolean;
33
+ subState1?: string;
34
+ subState2?: string;
35
+ subState3?: string;
36
+ subState4?: string;
37
+ }
38
+ interface layerSettingItem {
39
+ key: string;
40
+ label: string;
41
+ checked: boolean;
42
+ disabled: boolean;
43
+ }
44
+ interface FeatureInteractionPayload {
45
+ type: LayerType;
46
+ code: string;
47
+ state: stateType;
48
+ }
49
+ interface AppEvents {
50
+ 'map:inited': unknown;
51
+ 'map:feature-click': FeatureInteractionPayload;
52
+ 'map:path-selected': unknown;
53
+ 'map:node-insert': unknown;
54
+ 'map:sgfhqy-selected': unknown;
55
+ }
56
+ interface GeojsonStationDatas {
57
+ name: string;
58
+ data: GeoJSON.FeatureCollection | string;
59
+ }
28
60
 
29
61
  interface InterlockItem {
30
62
  name: string;
@@ -1385,4 +1417,4 @@ declare const getTrackBearing: (lineGeom: LineGeometry, pointGeom: GeoJSON.Point
1385
1417
  */
1386
1418
  declare const attachTrackAngle: (map: Map$1, options: AttachTrackAngleOptions) => void;
1387
1419
 
1388
- export { type AttachTrackAngleOptions, BS_SIGNAL_MAP, BsSignalStateEnums, type FeatureState, INTERLOCK_CIRCUIT_MAP, INTERLOCK_SIGNAL_COLOR_MAP, INTERLOCK_SIGNAL_MAP, INTERLOCK_SWITCHLOC_MAP, type InsulationSignals, InterLockCircuitStateEnums, InterLockInsulation, InterLockSignalStateEnums, InterLockSwitchlocStateEnums, InterLockVisualization, type InterlockData, type InterlockItem, InterlockProtocol, type InterlockVisualizationOptions, MapColor, MeasureTool, PREVENTION_TYPES, PreventionEnums, SignalColorEnums, StationFeatureCodeEnums, TeeeMap, attachTrackAngle, index$1 as canvasCreator, getTrackBearing, index as imageCreater, offsetFeatureCollection, transformGeoJsonFrom3857, transformGeoJsonProperties };
1420
+ export { type AppEvents, type AttachTrackAngleOptions, BS_SIGNAL_MAP, BsSignalStateEnums, type FeatureInteractionPayload, type FeatureState, type GeojsonStationDatas, INTERLOCK_CIRCUIT_MAP, INTERLOCK_SIGNAL_COLOR_MAP, INTERLOCK_SIGNAL_MAP, INTERLOCK_SWITCHLOC_MAP, type IconType, type InsulationSignals, InterLockCircuitStateEnums, InterLockInsulation, InterLockSignalStateEnums, InterLockSwitchlocStateEnums, InterLockVisualization, type InterlockData, type InterlockItem, InterlockProtocol, type InterlockVisualizationOptions, type LayerType, MapColor, type MapForgeConfig, type MapParams, type MapType, MeasureTool, PREVENTION_TYPES, PreventionEnums, type RegionLayerType, SignalColorEnums, StationFeatureCodeEnums, TeeeMap, attachTrackAngle, index$1 as canvasCreator, getTrackBearing, index as imageCreater, type layerSettingItem, offsetFeatureCollection, type stateType, transformGeoJsonFrom3857, transformGeoJsonProperties };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as maplibregl from 'maplibre-gl';
2
2
  import { SourceSpecification, LayerSpecification, Map as Map$1 } from 'maplibre-gl';
3
3
 
4
+ type MapType = 'graph' | 'geom' | 'ctc' | 'raster';
4
5
  type LayerType = 'background' | 'signal' | 'track' | 'track_circuit' | 'bumper' | 'switch' | 'switch_loc' | 'insulation' | 'label' | 'prevention' | 'sgfhqy' | 'region' | 'display_polygon' | 'display_line' | 'display_point';
5
6
  type RegionLayerType = 'background' | 'track' | 'bridge' | 'tunnel' | 'region_signal' | 'curve' | 'floodcontrol' | 'ramp' | 'contactseparation' | 'callpost';
6
7
  interface MapForgeConfig {
@@ -25,6 +26,37 @@ interface IconType {
25
26
  id: string;
26
27
  image: HTMLImageElement;
27
28
  }
29
+ interface stateType {
30
+ state?: string | number;
31
+ select?: boolean;
32
+ visiable?: boolean;
33
+ subState1?: string;
34
+ subState2?: string;
35
+ subState3?: string;
36
+ subState4?: string;
37
+ }
38
+ interface layerSettingItem {
39
+ key: string;
40
+ label: string;
41
+ checked: boolean;
42
+ disabled: boolean;
43
+ }
44
+ interface FeatureInteractionPayload {
45
+ type: LayerType;
46
+ code: string;
47
+ state: stateType;
48
+ }
49
+ interface AppEvents {
50
+ 'map:inited': unknown;
51
+ 'map:feature-click': FeatureInteractionPayload;
52
+ 'map:path-selected': unknown;
53
+ 'map:node-insert': unknown;
54
+ 'map:sgfhqy-selected': unknown;
55
+ }
56
+ interface GeojsonStationDatas {
57
+ name: string;
58
+ data: GeoJSON.FeatureCollection | string;
59
+ }
28
60
 
29
61
  interface InterlockItem {
30
62
  name: string;
@@ -1385,4 +1417,4 @@ declare const getTrackBearing: (lineGeom: LineGeometry, pointGeom: GeoJSON.Point
1385
1417
  */
1386
1418
  declare const attachTrackAngle: (map: Map$1, options: AttachTrackAngleOptions) => void;
1387
1419
 
1388
- export { type AttachTrackAngleOptions, BS_SIGNAL_MAP, BsSignalStateEnums, type FeatureState, INTERLOCK_CIRCUIT_MAP, INTERLOCK_SIGNAL_COLOR_MAP, INTERLOCK_SIGNAL_MAP, INTERLOCK_SWITCHLOC_MAP, type InsulationSignals, InterLockCircuitStateEnums, InterLockInsulation, InterLockSignalStateEnums, InterLockSwitchlocStateEnums, InterLockVisualization, type InterlockData, type InterlockItem, InterlockProtocol, type InterlockVisualizationOptions, MapColor, MeasureTool, PREVENTION_TYPES, PreventionEnums, SignalColorEnums, StationFeatureCodeEnums, TeeeMap, attachTrackAngle, index$1 as canvasCreator, getTrackBearing, index as imageCreater, offsetFeatureCollection, transformGeoJsonFrom3857, transformGeoJsonProperties };
1420
+ export { type AppEvents, type AttachTrackAngleOptions, BS_SIGNAL_MAP, BsSignalStateEnums, type FeatureInteractionPayload, type FeatureState, type GeojsonStationDatas, INTERLOCK_CIRCUIT_MAP, INTERLOCK_SIGNAL_COLOR_MAP, INTERLOCK_SIGNAL_MAP, INTERLOCK_SWITCHLOC_MAP, type IconType, type InsulationSignals, InterLockCircuitStateEnums, InterLockInsulation, InterLockSignalStateEnums, InterLockSwitchlocStateEnums, InterLockVisualization, type InterlockData, type InterlockItem, InterlockProtocol, type InterlockVisualizationOptions, type LayerType, MapColor, type MapForgeConfig, type MapParams, type MapType, MeasureTool, PREVENTION_TYPES, PreventionEnums, type RegionLayerType, SignalColorEnums, StationFeatureCodeEnums, TeeeMap, attachTrackAngle, index$1 as canvasCreator, getTrackBearing, index as imageCreater, type layerSettingItem, offsetFeatureCollection, type stateType, transformGeoJsonFrom3857, transformGeoJsonProperties };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import*as ee from'maplibre-gl';import*as z from'@turf/turf';import {bbox}from'@turf/turf';import {VectorTile}from'@mapbox/vector-tile';import {PbfReader}from'pbf';/**
2
- * @teeechina/teee-map v0.1.0
2
+ * @teeechina/teee-map v0.1.1
3
3
  * 基于 maplibre-gl 封装的业务地图 SDK,面向太昌 GIS 业务流提供开箱即用的地图初始化、图层管理、要素状态控制及加密瓦片支持。
4
4
  * (c) 2026 TeeChina
5
5
  * Released under the MIT License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teeechina/teee-map",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "基于 maplibre-gl 封装的业务地图 SDK,面向太昌 GIS 业务流提供开箱即用的地图初始化、图层管理、要素状态控制及加密瓦片支持。",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",