Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@2gis/mapgl-directions

Package Overview
Dependencies
Maintainers
6
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@2gis/mapgl-directions - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

2

dist/docs.json

@@ -1,1 +0,1 @@

{"typescript":{"PpnaDrawer":{"fileName":"src/ppnaDrawer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"class","name":"PpnaDrawer","methods":[{"fileName":"src/ppnaDrawer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"clear","signatures":[{"fileName":"src/ppnaDrawer.ts","kind":"signature","name":"clear","parameters":[],"returnType":"void","type":"() => void"}]},{"fileName":"src/ppnaDrawer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"draw","signatures":[{"fileName":"src/ppnaDrawer.ts","kind":"signature","name":"draw","parameters":[{"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"ppna","type":"Ppna"}],"returnType":"void","type":"(ppna: Ppna) => void"}]}],"properties":[],"accessors":[],"constructorType":{"fileName":"src/ppnaDrawer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"constructor","name":"constructor","signatures":[{"fileName":"src/ppnaDrawer.ts","kind":"signature","name":"new PpnaDrawer","parameters":[{"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"map","type":"mapgl.Map"},{"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"config","type":"PpnaSettings"}],"returnType":"PpnaDrawer","type":"(map: mapgl.Map, config: PpnaSettings) => PpnaDrawer"}]}},"Directions":{"fileName":"src/directions.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"class","name":"Directions","methods":[{"fileName":"src/directions.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"carRoute","signatures":[{"fileName":"src/directions.ts","kind":"signature","name":"carRoute","parameters":[{"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"params","type":"CarRouteOptions"}],"returnType":"void","type":"(params: CarRouteOptions) => void"}]},{"fileName":"src/directions.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"clear","signatures":[{"fileName":"src/directions.ts","kind":"signature","name":"clear","parameters":[],"returnType":"void","type":"() => void"}]}],"properties":[],"accessors":[],"constructorType":{"fileName":"src/directions.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"constructor","name":"constructor","signatures":[{"fileName":"src/directions.ts","kind":"signature","name":"new Directions","parameters":[{"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"map","type":"mapgl.Map"},{"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"options","type":"DirectionsOptions"}],"returnType":"Directions","type":"(map: mapgl.Map, options: DirectionsOptions) => Directions"}]}},"resolvePpnaManeuverColor":{"fileName":"src/formatters.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"method","name":"resolvePpnaManeuverColor","signatures":[{"documentation":{"contents":["<p>Получает цвет маневра ППНА с фоллбэком на ingnore для неожидаемых нами цветов.\nУже был баг, когда Нави добавили новый цвет &#39;slow-jams&#39; а мы его в конфиге карт не поддержали,\nгеометрия такого маневра отрисовывется с багом.</p>\n"],"contentsRaw":"Получает цвет маневра ППНА с фоллбэком на ingnore для неожидаемых нами цветов.\nУже был баг, когда Нави добавили новый цвет 'slow-jams' а мы его в конфиге карт не поддержали,\nгеометрия такого маневра отрисовывется с багом.","metadata":{}},"fileName":"src/formatters.ts","kind":"signature","name":"resolvePpnaManeuverColor","parameters":[{"flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"color","type":"ManeuverOutGeometryColor"}],"returnType":"ManeuverOutGeometryColor","type":"(color?: ManeuverOutGeometryColor) => ManeuverOutGeometryColor"}]},"formatPpnaPoints":{"fileName":"src/formatters.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"method","name":"formatPpnaPoints","signatures":[{"fileName":"src/formatters.ts","kind":"signature","name":"formatPpnaPoints","parameters":[{"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"points","type":"Point[]"}],"returnType":"PpnaPoint[]","type":"(points: Point[]) => PpnaPoint[]"}]},"formatPpnaRoutes":{"fileName":"src/formatters.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"method","name":"formatPpnaRoutes","signatures":[{"fileName":"src/formatters.ts","kind":"signature","name":"formatPpnaRoutes","parameters":[{"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"type","type":"\"ppna\" | \"pedestrian\""},{"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"directions","type":"PpnaDirection[]"}],"returnType":"PpnaRoute[]","type":"(type: \"ppna\" | \"pedestrian\", directions: PpnaDirection[]) => PpnaRoute[]"}]},"getPpnaSettings":{"documentation":{"contents":["<p>Возвращает конфиг ППНА для карты</p>\n"],"contentsRaw":"Возвращает конфиг ППНА для карты","metadata":{}},"fileName":"src/styles.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"method","name":"getPpnaSettings","signatures":[{"documentation":{"contents":["<p>Возвращает конфиг ППНА для карты</p>\n"],"contentsRaw":"Возвращает конфиг ППНА для карты","metadata":{}},"fileName":"src/styles.ts","kind":"signature","name":"getPpnaSettings","parameters":[{"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"colors","type":"PpnaDefaultColors"}],"returnType":"PpnaSettings","type":"(colors: PpnaDefaultColors) => PpnaSettings"}]},"getLineStylesCurves":{"fileName":"src/styles.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"method","name":"getLineStylesCurves","signatures":[{"fileName":"src/styles.ts","kind":"signature","name":"getLineStylesCurves","parameters":[{"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"settings","type":"PpnaSettings"}],"returnType":"LineStylesCurves","type":"(settings: PpnaSettings) => LineStylesCurves"}]},"PpnaSection":{"fileName":"src/types/formatters.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"PpnaSection","methods":[],"properties":[{"fileName":"src/types/formatters.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"geometry","type":"string"},{"fileName":"src/types/formatters.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"type","type":"SectionType"}]},"PpnaRoute":{"fileName":"src/types/formatters.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"PpnaRoute","methods":[],"properties":[{"fileName":"src/types/formatters.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"id","type":"string"},{"fileName":"src/types/formatters.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"sections","type":"PpnaSection[]"}]},"SectionStyle":{"fileName":"src/types/styles.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"SectionStyle","methods":[],"properties":[{"fileName":"src/types/styles.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"border2Color","type":"string"},{"fileName":"src/types/styles.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"borderColor","type":"string"},{"fileName":"src/types/styles.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"color","type":"string"},{"fileName":"src/types/styles.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"hoveredBorder2Color","type":"string"},{"fileName":"src/types/styles.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"hoveredBorderColor","type":"string"},{"fileName":"src/types/styles.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"hoveredColor","type":"string"}]},"ZoomDependent":{"fileName":"src/types/styles.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"ZoomDependent","indexSignature":{"fileName":"src/types/styles.ts","kind":"signature","name":"__index","parameters":[{"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"zoom","type":"number"}],"returnType":"T","type":"{ [zoom: number]: T }"},"methods":[],"properties":[]},"PpnaSettings":{"fileName":"src/types/styles.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"PpnaSettings","methods":[],"properties":[{"fileName":"src/types/styles.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"lineStyles","type":""},{"fileName":"src/types/styles.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"lineStylesByZoom","type":"ZoomDependent<>"}]},"SectionSize":{"fileName":"src/types/styles.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"SectionSize","methods":[],"properties":[{"fileName":"src/types/styles.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"border2Width","type":"number"},{"fileName":"src/types/styles.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"borderWidth","type":"number"},{"fileName":"src/types/styles.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"width","type":"number"}]},"DirectionsOptions":{"fileName":"src/types/index.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"DirectionsOptions","methods":[],"properties":[{"fileName":"src/types/index.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"directionsApiKey","type":"string"}]},"CarRouteOptions":{"fileName":"src/types/index.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"CarRouteOptions","methods":[],"properties":[{"fileName":"src/types/index.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"points","type":"Point[]"}]},"PpnaQuery":{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"PpnaQuery","methods":[],"properties":[{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"locale","type":"string"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"point_a_name","type":"string"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"point_b_name","type":"string"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"points","type":"Array<>"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"type","type":"\"jam\" | \"statistic\" | \"shortest\" | \"pedestrian\""}]},"DirectionBase":{"documentation":{"contents":["<p>Базовый набор полей маршрута путь</p>\n"],"contentsRaw":"Базовый набор полей маршрута путь","metadata":{}},"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"DirectionBase","methods":[],"properties":[{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"id","type":"string"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"route_id","type":"string"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"total_duration","type":"number"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"type","type":"DirectionType"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"ui_total_duration","type":"string"}]},"PpnaDirection":{"documentation":{"contents":["<p>ППНА и пеший маршруты.\nОписаны в одном типе, потому что пеший — это ППНА с ограниченным набором маневров с типами: <code>begin</code> и <code>end</code>.</p>\n<p>Дока: <a href=\"https://confluence.2gis.ru/pages/viewpage.action?pageId=143464609\">https://confluence.2gis.ru/pages/viewpage.action?pageId=143464609</a></p>\n"],"contentsRaw":"ППНА и пеший маршруты.\nОписаны в одном типе, потому что пеший — это ППНА с ограниченным набором маневров с типами: `begin` и `end`.\n\nДока: https://confluence.2gis.ru/pages/viewpage.action?pageId=143464609","metadata":{}},"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"PpnaDirection","extends":["DirectionBase"],"methods":[],"properties":[{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"algorithm","type":"undefined | string"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"begin_pedestrian_path","type":"PedestrianPath"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"end_pedestrian_path","type":"PedestrianPath"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"filter_road_types","type":"DirectionRoadType[]"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"id","inheritedFrom":"DirectionBase.id","type":"string"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"maneuvers","type":"Maneuver[]"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"requested_filters","type":"DirectionRoadType[]"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"result_filters","type":"DirectionRoadType[]"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"route_id","inheritedFrom":"DirectionBase.route_id","type":"string"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"total_distance","type":"number"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"total_duration","inheritedFrom":"DirectionBase.total_duration","type":"number"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"type","type":"\"carrouting\" | \"pedestrianrouting\""},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"ui_total_distance","type":""},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"ui_total_duration","inheritedFrom":"DirectionBase.ui_total_duration","type":"string"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"waypoints","type":"WayPoint[]"}]},"Maneuver":{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"Maneuver","methods":[],"properties":[{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"comment","type":"string"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"geometry","type":"undefined | "},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"icon","type":"ManeuverIcon"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"id","type":"string"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"outcoming_path","type":"undefined | "},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"outcoming_path_comment","type":"string"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"pass_through","type":"undefined | "},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"ringroad_exit_number","type":"undefined | number"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"turn_angle","type":"undefined | number"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"turn_direction","type":"ManeuverTurnDirection"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"type","type":"ManeuverType"}]},"PedestrianPath":{"documentation":{"contents":["<p>Пеший путь</p>\n"],"contentsRaw":"Пеший путь","metadata":{}},"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"PedestrianPath","methods":[],"properties":[{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"geometry","type":""}]},"WayPoint":{"documentation":{"contents":["<p>Точка с проекцией на ребро</p>\n"],"contentsRaw":"Точка с проекцией на ребро","metadata":{}},"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"WayPoint","methods":[],"properties":[{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"original_point","type":"LonLat"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"projected_point","type":"LonLat"},{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"transit","type":"boolean"}]},"PpnaPoint":{"fileName":"src/types/ppnaDrawer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"PpnaPoint","methods":[],"properties":[{"fileName":"src/types/ppnaDrawer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"icon","type":"IconStyle"},{"fileName":"src/types/ppnaDrawer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"label","type":"LabelStyle"},{"fileName":"src/types/ppnaDrawer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"position","type":"number[]"}]},"Ppna":{"fileName":"src/types/ppnaDrawer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"Ppna","methods":[],"properties":[{"fileName":"src/types/ppnaDrawer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"activeRouteId","type":"undefined | string"},{"fileName":"src/types/ppnaDrawer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":true,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"hoveredRouteId","type":"undefined | string"},{"fileName":"src/types/ppnaDrawer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"points","type":"PpnaPoints"},{"fileName":"src/types/ppnaDrawer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"routes","type":"PpnaRoute[]"}]},"SectionType":{"fileName":"src/types/formatters.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"type alias","name":"SectionType","type":"\"fast\" | \"normal\" | \"slow\" | \"slow-jams\" | \"ignore\" | \"no-traffic\" | \"pedestrian\" | \"pedestrian-underground\" | \"inactive\""},"ManeuverOutGeometryColor":{"documentation":{"contents":["<p>Цвет заливки геометрий участка проезда, который идет после совершения маневра.</p>\n"],"contentsRaw":"Цвет заливки геометрий участка проезда, который идет после совершения маневра.","metadata":{}},"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"type alias","name":"ManeuverOutGeometryColor","type":"\"fast\" | \"normal\" | \"slow\" | \"slow-jams\" | \"ignore\" | \"no-traffic\""},"PpnaDefaultColors":{"fileName":"src/types/styles.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"type alias","name":"PpnaDefaultColors","type":""},"Point":{"fileName":"src/types/index.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"type alias","name":"Point","type":"[number, number] | number[]"},"DirectionType":{"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"type alias","name":"DirectionType","type":"\"carrouting\" | \"pedestrianrouting\" | \"ctxrouting\""},"DirectionRoadType":{"documentation":{"contents":["<p>Тип дорог маршрута</p>\n"],"contentsRaw":"Тип дорог маршрута","metadata":{}},"fileName":"src/types/navi.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"type alias","name":"DirectionRoadType","type":"\"dirt_road\" | \"toll_road\""},"Curve":{"fileName":"src/types/ppnaDrawer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"type alias","name":"Curve","type":"Array<[number, number, number]>"},"PpnaPoints":{"fileName":"src/types/ppnaDrawer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"type alias","name":"PpnaPoints","type":"PpnaPoint[]"},"LineStylesCurves":{"fileName":"src/types/ppnaDrawer.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"type alias","name":"LineStylesCurves","type":""}}}
{"typescript":{"Directions":{"documentation":{"contents":["<p>A class that provides driving direction functionality.</p>\n"],"contentsRaw":"A class that provides driving direction functionality.","metadata":{}},"fileName":"src/directions.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"class","name":"Directions","methods":[{"fileName":"src/directions.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"carRoute","signatures":[{"documentation":{"contents":["<p>Finds and draws an optimal car route.</p>\n"],"contentsRaw":"Finds and draws an optimal car route.","metadata":{}},"fileName":"src/directions.ts","kind":"signature","name":"carRoute","parameters":[{"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"options","type":"CarRouteOptions"}],"returnType":"void","type":"(options: CarRouteOptions) => void"}]},{"fileName":"src/directions.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":true,"isRest":false,"isStatic":false},"kind":"method","name":"clear","signatures":[{"documentation":{"contents":["<p>Clears the map from any previously drawn routes.</p>\n"],"contentsRaw":"Clears the map from any previously drawn routes.","metadata":{}},"fileName":"src/directions.ts","kind":"signature","name":"clear","parameters":[],"returnType":"void","type":"() => void"}]}],"properties":[],"accessors":[],"constructorType":{"documentation":{"contents":["<p>Example:</p>\n<pre><code class=\"language-js\">const directions = new mapgl.Directions(map, {\n directionsApiKey: &#39;Your Directions API access key&#39;,\n});\n\ndirections.carRoute({\n points: [\n [55.2772379, 25.2377810],\n [55.2986956, 25.2576546],\n ],\n});</code></pre>\n"],"contentsRaw":"Example:\n```js\nconst directions = new mapgl.Directions(map, {\n directionsApiKey: 'Your Directions API access key',\n});\n\ndirections.carRoute({\n points: [\n [55.2772379, 25.2377810],\n [55.2986956, 25.2576546],\n ],\n});\n```","metadata":{}},"fileName":"src/directions.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"constructor","name":"constructor","signatures":[{"documentation":{"contents":["<p>Example:</p>\n<pre><code class=\"language-js\">const directions = new mapgl.Directions(map, {\n directionsApiKey: &#39;Your Directions API access key&#39;,\n});\n\ndirections.carRoute({\n points: [\n [55.2772379, 25.2377810],\n [55.2986956, 25.2576546],\n ],\n});</code></pre>\n"],"contentsRaw":"Example:\n```js\nconst directions = new mapgl.Directions(map, {\n directionsApiKey: 'Your Directions API access key',\n});\n\ndirections.carRoute({\n points: [\n [55.2772379, 25.2377810],\n [55.2986956, 25.2576546],\n ],\n});\n```","metadata":{}},"fileName":"src/directions.ts","kind":"signature","name":"new Directions","parameters":[{"documentation":{"contents":["<p>The map instance.</p>\n"],"contentsRaw":"The map instance.","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"map","type":"mapgl.Map"},{"documentation":{"contents":["<p>Directions initialization options.</p>\n"],"contentsRaw":"Directions initialization options.","metadata":{}},"flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"parameter","name":"options","type":"DirectionsOptions"}],"returnType":"Directions","type":"(map: mapgl.Map, options: DirectionsOptions) => Directions"}]}},"DirectionsOptions":{"documentation":{"contents":["<p>Directions initialization options.</p>\n"],"contentsRaw":"Directions initialization options.","metadata":{}},"fileName":"src/types/index.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"DirectionsOptions","methods":[],"properties":[{"documentation":{"contents":["<p>Directions API access key.</p>\n"],"contentsRaw":"Directions API access key.","metadata":{}},"fileName":"src/types/index.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"directionsApiKey","type":"string"}]},"CarRouteOptions":{"documentation":{"contents":["<p>Car route options.</p>\n"],"contentsRaw":"Car route options.","metadata":{}},"fileName":"src/types/index.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"interface","name":"CarRouteOptions","methods":[],"properties":[{"documentation":{"contents":["<p>Array of geographical points [longitude, latitude].</p>\n<p>You can set up to 10 points.</p>\n"],"contentsRaw":"Array of geographical points [longitude, latitude].\n\nYou can set up to 10 points.","metadata":{}},"fileName":"src/types/index.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"property","name":"points","type":"Point[]"}]},"Point":{"documentation":{"contents":["<p>A geographical point [longitude, latitude].</p>\n"],"contentsRaw":"A geographical point [longitude, latitude].","metadata":{}},"fileName":"src/types/index.ts","flags":{"isExported":true,"isExternal":false,"isOptional":false,"isPrivate":false,"isProtected":false,"isPublic":false,"isRest":false,"isStatic":false},"kind":"type alias","name":"Point","type":"[number, number] | number[]"}}}
import { PpnaDefaultColors } from './types/styles';
/**
* @hidden
* @internal
*/
export declare const ppnaApiUrl = "https://catalog.api.2gis.ru/carrouting/6.0.0";
/**
* @hidden
* @internal
*/
export declare const phases: {

@@ -7,3 +15,11 @@ routeLines: number;

};
/**
* @hidden
* @internal
*/
export declare const PPNA_COLORS: PpnaDefaultColors;
/**
* @hidden
* @internal
*/
export declare const pointIcon: {

@@ -14,2 +30,6 @@ size: number[];

};
/**
* @hidden
* @internal
*/
export declare const pointLabel: {

@@ -16,0 +36,0 @@ fontSize: number;

import { CarRouteOptions, DirectionsOptions } from './types';
/**
* A class that provides driving direction functionality.
*/
export declare class Directions {

@@ -6,6 +9,33 @@ private map;

private ppnaDrawer;
/**
* Example:
* ```js
* const directions = new mapgl.Directions(map, {
* directionsApiKey: 'Your Directions API access key',
* });
*
* directions.carRoute({
* points: [
* [55.2772379, 25.2377810],
* [55.2986956, 25.2576546],
* ],
* });
* ```
* @param map The map instance.
* @param options Directions initialization options.
*/
constructor(map: mapgl.Map, options: DirectionsOptions);
/**
* Clears the map from any previously drawn routes.
*/
clear(): void;
carRoute(params: CarRouteOptions): void;
/**
* Finds and draws an optimal car route.
*/
carRoute(options: CarRouteOptions): void;
/**
* @hidden
* @internal
*/
private drawCarRoute;
}

@@ -9,5 +9,16 @@ import { Point } from './types';

* геометрия такого маневра отрисовывется с багом.
*
* @hidden
* @internal
*/
export declare function resolvePpnaManeuverColor(color?: ManeuverOutGeometryColor): ManeuverOutGeometryColor;
/**
* @hidden
* @internal
*/
export declare function formatPpnaPoints(points: Point[]): PpnaPoint[];
/**
* @hidden
* @internal
*/
export declare function formatPpnaRoutes(type: 'ppna' | 'pedestrian', directions: PpnaDirection[]): PpnaRoute[];
import { Ppna } from './types/ppnaDrawer';
import { PpnaSettings } from './types/styles';
/**
* @hidden
* @internal
*/
export declare class PpnaDrawer {

@@ -4,0 +8,0 @@ private map;

@@ -5,4 +5,11 @@ import { LineStylesCurves } from './types/ppnaDrawer';

* Возвращает конфиг ППНА для карты
*
* @hidden
* @internal
*/
export declare const getPpnaSettings: (colors: PpnaDefaultColors) => PpnaSettings;
/**
* @hidden
* @internal
*/
export declare function getLineStylesCurves(settings: PpnaSettings): LineStylesCurves;

@@ -0,2 +1,10 @@

/**
* @hidden
* @internal
*/
export declare type SectionType = 'fast' | 'normal' | 'slow' | 'slow-jams' | 'ignore' | 'no-traffic' | 'pedestrian' | 'pedestrian-underground' | 'inactive';
/**
* @hidden
* @internal
*/
export interface PpnaSection {

@@ -6,2 +14,6 @@ type: SectionType;

}
/**
* @hidden
* @internal
*/
export interface PpnaRoute {

@@ -8,0 +20,0 @@ id: string;

@@ -0,7 +1,24 @@

/**
* A geographical point [longitude, latitude].
*/
export declare type Point = [number, number] | number[];
/**
* Directions initialization options.
*/
export interface DirectionsOptions {
/**
* Directions API access key.
*/
directionsApiKey: string;
}
/**
* Car route options.
*/
export interface CarRouteOptions {
/**
* Array of geographical points [longitude, latitude].
*
* You can set up to 10 points.
*/
points: Point[];
}

@@ -0,1 +1,7 @@

/**
* https://confluence.2gis.ru/display/TRAFFIC/API+CarRouting+v3%2C+v4#APICarRoutingv3,v4-type
*
* @hidden
* @internal
*/
export interface PpnaQuery {

@@ -16,5 +22,12 @@ type: 'jam' | 'statistic' | 'shortest' | 'pedestrian';

}
/**
* @hidden
* @internal
*/
export declare type DirectionType = 'carrouting' | 'pedestrianrouting' | 'ctxrouting';
/**
* Базовый набор полей маршрута путь
*
* @hidden
* @internal
*/

@@ -33,2 +46,5 @@ export interface DirectionBase {

* Дока: https://confluence.2gis.ru/pages/viewpage.action?pageId=143464609
*
* @hidden
* @internal
*/

@@ -51,5 +67,21 @@ export interface PpnaDirection extends DirectionBase {

}
/**
* @hidden
* @internal
*/
declare type ManeuverType = 'begin' | 'end' | 'crossroad' | 'ringroad' | 'pass_through' | 'turn_over';
/**
* @hidden
* @internal
*/
declare type ManeuverIcon = 'start' | 'finish' | 'crossroad_straight' | 'crossroad_slightly_left' | 'crossroad_left' | 'crossroad_sharply_left' | 'crossroad_sharply_right' | 'crossroad_right' | 'crossroad_slightly_right' | 'ringroad_forward' | 'ringroad_left_45' | 'ringroad_left_90' | 'ringroad_left_135' | 'ringroad_left_180' | 'ringroad_right_45' | 'ringroad_right_90' | 'ringroad_right_135' | 'ringroad_right_180' | 'turn_over_right_hand' | 'turn_over_left_hand' | 'toll_ico';
/**
* @hidden
* @internal
*/
declare type ManeuverTurnDirection = 'straight' | 'slightly_left' | 'left' | 'sharply_left' | 'uturn_right' | 'uturn_left' | 'sharply_right' | 'right' | 'slightly_right';
/**
* @hidden
* @internal
*/
export interface Maneuver {

@@ -88,2 +120,5 @@ id: string;

* Тип дорог маршрута
*
* @hidden
* @internal
*/

@@ -93,2 +128,5 @@ export declare type DirectionRoadType = 'dirt_road' | 'toll_road';

* Цвет заливки геометрий участка проезда, который идет после совершения маневра.
*
* @hidden
* @internal
*/

@@ -98,2 +136,5 @@ export declare type ManeuverOutGeometryColor = 'fast' | 'normal' | 'slow' | 'slow-jams' | 'ignore' | 'no-traffic';

* Пеший путь
*
* @hidden
* @internal
*/

@@ -105,2 +146,6 @@ export interface PedestrianPath {

}
/**
* @hidden
* @internal
*/
interface LonLat {

@@ -112,2 +157,5 @@ lon: number;

* Точка с проекцией на ребро
*
* @hidden
* @internal
*/

@@ -114,0 +162,0 @@ export interface WayPoint {

import { PpnaRoute, SectionType } from './formatters';
/**
* @hidden
* @internal
*/
export declare type Curve = Array<[number, number, number]>;
export declare type PpnaPoints = PpnaPoint[];
/**
* @hidden
* @internal
*/
export interface PpnaPoint {

@@ -9,2 +16,6 @@ position: number[];

}
/**
* @hidden
* @internal
*/
interface LabelStyle {

@@ -15,2 +26,6 @@ text: string;

}
/**
* @hidden
* @internal
*/
interface IconStyle {

@@ -21,4 +36,8 @@ img: string;

}
/**
* @hidden
* @internal
*/
export interface Ppna {
points: PpnaPoints;
points: PpnaPoint[];
routes: PpnaRoute[];

@@ -28,2 +47,6 @@ activeRouteId?: string;

}
/**
* @hidden
* @internal
*/
export declare type LineStylesCurves = {

@@ -30,0 +53,0 @@ [type in SectionType]: {

import { SectionType } from './formatters';
/**
* @hidden
* @internal
*/
export interface SectionStyle {

@@ -10,5 +14,13 @@ color: string;

}
/**
* @hidden
* @internal
*/
export interface ZoomDependent<T> {
[zoom: number]: T;
}
/**
* @hidden
* @internal
*/
export interface PpnaSettings {

@@ -22,2 +34,6 @@ lineStylesByZoom: ZoomDependent<{

}
/**
* @hidden
* @internal
*/
export interface SectionSize {

@@ -30,5 +46,18 @@ width: number;

* Цвет заливки геометрий участка проезда, который идет после совершения маневра.
*
* @hidden
* @internal
*/
export declare type ManeuverOutGeometryColor = 'fast' | 'normal' | 'slow' | 'slow-jams' | 'ignore' | 'no-traffic';
/**
* Тип цветов ППНА
*
* @hidden
* @internal
*/
declare type PpnaColor = ManeuverOutGeometryColor | 'pedestrian' | 'pedestrian-underground' | 'inactive' | 'border' | 'border2' | 'hovered';
/**
* @hidden
* @internal
*/
export declare type PpnaDefaultColors = {

@@ -35,0 +64,0 @@ [key in PpnaColor]: string;

{
"name": "@2gis/mapgl-directions",
"version": "1.0.1",
"version": "1.1.0",
"description": "Driving directions plugin for Mapgl",

@@ -5,0 +5,0 @@ "main": "dist/directions.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc