├── .gitignore ├── LICENSE ├── README.md └── ymaps ├── Balloon.d.ts ├── Circle.d.ts ├── ClusterPlacemark.d.ts ├── Clusterer.d.ts ├── Collection.d.ts ├── DomEvent.d.ts ├── Error.d.ts ├── Event.d.ts ├── GeoObject.d.ts ├── GeoObjectCollection.d.ts ├── GeoQueryResult.d.ts ├── Hint.d.ts ├── Hotspot.d.ts ├── Layer.d.ts ├── LayerCollection.d.ts ├── LoadingObjectManager.d.ts ├── Map.d.ts ├── MapEvent.d.ts ├── MapType.d.ts ├── Monitor.d.ts ├── ObjectManager.d.ts ├── Placemark.d.ts ├── Polygon.d.ts ├── Polyline.d.ts ├── Popup.d.ts ├── Rectangle.d.ts ├── RemoteObjectManager.d.ts ├── SuggestView.d.ts ├── Template.d.ts ├── behavior ├── DblClickZoom.d.ts ├── Drag.d.ts ├── LeftMouseButtonMagnifier.d.ts ├── MultiTouch.d.ts ├── RightMouseButtonMagnifier.d.ts ├── RouteEditor.d.ts ├── Ruler.d.ts ├── ScrollZoom.d.ts └── storage.d.ts ├── clusterer ├── Balloon.d.ts └── Hint.d.ts ├── collection └── Item.d.ts ├── control ├── Button.d.ts ├── FullscreenControl.d.ts ├── GeolocationControl.d.ts ├── ListBox.d.ts ├── ListBoxItem.d.ts ├── Manager.d.ts ├── RouteEditor.d.ts ├── RulerControl.d.ts ├── SearchControl.d.ts ├── TrafficControl.d.ts ├── TypeSelector.d.ts ├── ZoomControl.d.ts └── storage.d.ts ├── coordSystem ├── cartesian.d.ts └── geo.d.ts ├── data └── Manager.d.ts ├── domEvent ├── MultiPointer.d.ts ├── MultiTouch.d.ts ├── Pointer.d.ts ├── Touch.d.ts └── manager.d.ts ├── error ├── AccessError.d.ts ├── ClientError.d.ts ├── DataProcessingError.d.ts ├── DeprecationWarning.d.ts ├── EmptyResultReject.d.ts ├── ExternalError.d.ts ├── FeatureRemovedError.d.ts ├── InputError.d.ts ├── NotSupportedError.d.ts ├── OperationCanceledReject.d.ts ├── OperationUnallowedReject.d.ts ├── OperationUnawailableReject.d.ts ├── OveruseWarning.d.ts ├── Reject.d.ts ├── RequestError.d.ts ├── StateError.d.ts ├── StorageItemAccessError.d.ts └── Warning.d.ts ├── event ├── Group.d.ts ├── Manager.d.ts └── Mapper.d.ts ├── formatter.d.ts ├── geoObject ├── Balloon.d.ts ├── Hint.d.ts ├── Sequence.d.ts └── addon │ ├── balloon.d.ts │ ├── editor.d.ts │ └── hint.d.ts ├── geoQuery.d.ts ├── geoXml └── load.d.ts ├── geocode.d.ts ├── geolocation.d.ts ├── geometry ├── Circle.d.ts ├── LineString.d.ts ├── LineString │ ├── fromEncodedCoordinates.d.ts │ └── toEncodedCoordinates.d.ts ├── Point.d.ts ├── Polygon.d.ts ├── Polygon │ ├── fromEncodedCoordinates.d.ts │ └── toEncodedCoordinates.d.ts ├── Rectangle.d.ts ├── base │ ├── Circle.d.ts │ ├── LineString.d.ts │ ├── LineString │ │ ├── fromEncodedCoordinates.d.ts │ │ └── toEncodedCoordinates.d.ts │ ├── LinearRing.d.ts │ ├── LinearRing │ │ ├── fromEncodedCoordinates.d.ts │ │ └── toEncodedCoordinates.d.ts │ ├── Point.d.ts │ ├── Polygon.d.ts │ ├── Polygon │ │ ├── fromEncodedCoordinates.d.ts │ │ └── toEncodedCoordinates.d.ts │ └── Rectangle.d.ts ├── json │ ├── Point.d.ts │ ├── circle.d.ts │ ├── lineString.d.ts │ ├── polygon.d.ts │ └── rectangle.d.ts └── pixel │ ├── Circle.d.ts │ ├── LineString.d.ts │ ├── MultiPolygon.d.ts │ ├── Point.d.ts │ ├── Polygon.d.ts │ └── Rectangle.d.ts ├── geometryEditor ├── LineString.d.ts ├── Point.d.ts ├── Polygon.d.ts ├── model │ ├── ChildLineString.d.ts │ ├── ChildLinearRing.d.ts │ ├── ChildVertex.d.ts │ ├── Edge.d.ts │ ├── EdgeGeometry.d.ts │ ├── RootLineString.d.ts │ └── RootPolygon.d.ts └── view │ ├── Edge.d.ts │ ├── MultiPath.d.ts │ ├── Path.d.ts │ └── Vertex.d.ts ├── getZoomRange.d.ts ├── graphics └── style │ ├── color.d.ts │ └── stroke.d.ts ├── hotspot ├── Layer.d.ts ├── ObjectSource.d.ts └── layer │ ├── Balloon.d.ts │ ├── Hint.d.ts │ └── Object.d.ts ├── interactivityModel └── storage.d.ts ├── interfaces ├── IBalloon.d.ts ├── IBalloonLayout.d.ts ├── IBalloonManager.d.ts ├── IBalloonOwner.d.ts ├── IBalloonSharingManager.d.ts ├── IBaseCircleGeometry.d.ts ├── IBaseGeometry.d.ts ├── IBaseLineStringGeometry.d.ts ├── IBaseLinearRingGeometry.d.ts ├── IBasePointGeometry.d.ts ├── IBasePolygonGeometry.d.ts ├── IBaseRectangleGeometry.d.ts ├── IBehavior.d.ts ├── ICanvasTile.d.ts ├── IChild.d.ts ├── IChildOnMap.d.ts ├── ICircleGeometry.d.ts ├── ICircleGeometryAccess.d.ts ├── ICollection.d.ts ├── IContainerPane.d.ts ├── IControl.d.ts ├── IControlParent.d.ts ├── ICoordSystem.d.ts ├── ICopyrightsAccessor.d.ts ├── ICopyrightsProvider.d.ts ├── ICustomizable.d.ts ├── IDataManager.d.ts ├── IDomEvent.d.ts ├── IDomEventEmitter.d.ts ├── IDomTile.d.ts ├── IEvent.d.ts ├── IEventController.d.ts ├── IEventEmitter.d.ts ├── IEventGroup.d.ts ├── IEventManager.d.ts ├── IEventPane.d.ts ├── IEventTrigger.d.ts ├── IEventWorkflowController.d.ts ├── IExpandableControlLayout.d.ts ├── IFreezable.d.ts ├── IGeoObject.d.ts ├── IGeoObjectCollection.d.ts ├── IGeoObjectPopupData.d.ts ├── IGeoObjectSequence.d.ts ├── IGeocodeProvider.d.ts ├── IGeometry.d.ts ├── IGeometryEditor.d.ts ├── IGeometryEditorChildModel.d.ts ├── IGeometryEditorModel.d.ts ├── IGeometryEditorRootModel.d.ts ├── IGeometryJson.d.ts ├── IGroupControlLayout.d.ts ├── IHint.d.ts ├── IHintManager.d.ts ├── IHintOwner.d.ts ├── IHintSharingManager.d.ts ├── IHotspot.d.ts ├── IHotspotContainer.d.ts ├── IHotspotLayerObject.d.ts ├── IHotspotObjectSource.d.ts ├── IHotspotShape.d.ts ├── IIterator.d.ts ├── ILayer.d.ts ├── ILayout.d.ts ├── ILineStringGeometry.d.ts ├── ILineStringGeometryAccess.d.ts ├── ILinearRingGeometryAccess.d.ts ├── IMapAction.d.ts ├── IMapObjectCollection.d.ts ├── IMapState.d.ts ├── IMultiRouteModelJson.d.ts ├── IMultiRouteParams.d.ts ├── IMultiRouteReferencePoint.d.ts ├── IMultiTouchEvent.d.ts ├── IOptionManager.d.ts ├── IOverlay.d.ts ├── IPane.d.ts ├── IParentOnMap.d.ts ├── IPixelCircleGeometry.d.ts ├── IPixelGeometry.d.ts ├── IPixelLineStringGeometry.d.ts ├── IPixelMultiPolygonGeometry.d.ts ├── IPixelPointGeometry.d.ts ├── IPixelPolygonGeometry.d.ts ├── IPixelRectangleGeometry.d.ts ├── IPointGeometry.d.ts ├── IPointGeometryAccess.d.ts ├── IPolygonGeometry.d.ts ├── IPolygonGeometryAccess.d.ts ├── IPopup.d.ts ├── IPopupManager.d.ts ├── IPositioningContext.d.ts ├── IProjection.d.ts ├── IPromiseProvider.d.ts ├── IRatioMap.d.ts ├── IRectangleGeometry.d.ts ├── IRectangleGeometryAccess.d.ts ├── ISearchControlLayout.d.ts ├── ISearchProvider.d.ts ├── ISelectableControl.d.ts ├── ISelectableControlLayout.d.ts ├── IShape.d.ts ├── ISuggestProvider.d.ts ├── ISuggestViewLayout.d.ts ├── ITrafficControlLayout.d.ts ├── ITrafficProvider.d.ts └── IZoomControlLayout.d.ts ├── layer ├── storage.d.ts ├── tile │ ├── CanvasTile.d.ts │ └── DomTile.d.ts └── tileContainer │ ├── CanvasContainer.d.ts │ └── DomContainer.d.ts ├── layout ├── Image.d.ts ├── ImageWithContent.d.ts ├── storage.d.ts └── templateBased │ └── Base.d.ts ├── map ├── Balloon.d.ts ├── Container.d.ts ├── Converter.d.ts ├── Copyrights.d.ts ├── GeoObjects.d.ts ├── Hint.d.ts ├── ZoomRange.d.ts ├── action │ ├── Continuous.d.ts │ ├── Manager.d.ts │ └── Single.d.ts ├── addon │ ├── balloon.d.ts │ └── hint.d.ts ├── behavior │ └── Manager.d.ts ├── layer │ └── Manager.d.ts └── pane │ └── Manager.d.ts ├── mapType └── storage.d.ts ├── meta.d.ts ├── modules.d.ts ├── multiRouter ├── Editor.d.ts ├── EditorAddon.d.ts ├── MultiRoute.d.ts ├── MultiRouteModel.d.ts ├── ViaPoint.d.ts ├── ViaPointModel.d.ts ├── WayPoint.d.ts ├── WayPointModel.d.ts ├── driving │ ├── Path.d.ts │ ├── PathModel.d.ts │ ├── Route.d.ts │ ├── RouteModel.d.ts │ ├── Segment.d.ts │ └── SegmentModel.d.ts └── masstransit │ ├── Path.d.ts │ ├── PathModel.d.ts │ ├── Route.d.ts │ ├── RouteModel.d.ts │ ├── StopModel.d.ts │ ├── TransferSegment.d.ts │ ├── TransferSegmentModel.d.ts │ ├── TransportProperties.d.ts │ ├── TransportSegment.d.ts │ ├── TransportSegmentModel.d.ts │ ├── WalkSegment.d.ts │ └── WalkSegmentModel.d.ts ├── objectManager ├── Balloon.d.ts ├── ClusterCollection.d.ts ├── Hint.d.ts ├── ObjectCollection.d.ts └── OverlayCollection.d.ts ├── option ├── Manager.d.ts └── presetStorage.d.ts ├── overlay ├── Circle.d.ts ├── Pin.d.ts ├── Placemark.d.ts ├── Polygon.d.ts ├── Polyline.d.ts ├── Rectangle.d.ts ├── hotspot │ ├── Base.d.ts │ ├── Circle.d.ts │ ├── Placemark.d.ts │ ├── Polygon.d.ts │ ├── Polyline.d.ts │ └── Rectangle.d.ts ├── html │ ├── Balloon.d.ts │ ├── Hint.d.ts │ ├── Placemark.d.ts │ └── Rectangle.d.ts └── storage.d.ts ├── pane ├── EventsPane.d.ts ├── MovablePane.d.ts └── StaticPane.d.ts ├── projection ├── Cartesian.d.ts ├── sphericalMercator.d.ts └── wgs84Mercator.d.ts ├── ready.d.ts ├── regions └── load.d.ts ├── route.d.ts ├── router ├── Editor.d.ts ├── Path.d.ts ├── Route.d.ts ├── Segment.d.ts ├── ViaPoint.d.ts └── WayPoint.d.ts ├── search.d.ts ├── shape ├── Circle.d.ts ├── LineString.d.ts ├── MultiPolygon.d.ts ├── Polygon.d.ts ├── Rectangle.d.ts └── storage.d.ts ├── suggest.d.ts ├── template └── filtersStorage.d.ts ├── templateLayoutFactory.d.ts ├── traffic └── provider │ ├── Actual.d.ts │ ├── Archive.d.ts │ ├── Forecast.d.ts │ └── storage.d.ts ├── types.d.ts ├── util ├── AsyncStorage.d.ts ├── Dragger.d.ts ├── Storage.d.ts ├── augment.d.ts ├── bind.d.ts ├── bounds.d.ts ├── cursor │ ├── Accessor.d.ts │ └── Manager.d.ts ├── defineClass.d.ts ├── extend.d.ts ├── hd.d.ts ├── math │ ├── areEqual.d.ts │ ├── cycleRestrict.d.ts │ └── restrict.d.ts ├── pixelBounds.d.ts └── requireCenterAndZoom.d.ts └── vow ├── Deferred.d.ts └── Promise.d.ts /.gitignore: -------------------------------------------------------------------------------- 1 | # Created by .ignore support plugin (hsz.mobi) 2 | ### JetBrains template 3 | # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion 4 | 5 | ## Directory-based project format: 6 | .idea/ 7 | # if you remove the above rule, at least ignore the following: 8 | 9 | # User-specific stuff: 10 | # .idea/workspace.xml 11 | # .idea/tasks.xml 12 | # .idea/dictionaries 13 | 14 | # Sensitive or high-churn files: 15 | # .idea/dataSources.ids 16 | # .idea/dataSources.xml 17 | # .idea/sqlDataSources.xml 18 | # .idea/dynamic.xml 19 | # .idea/uiDesigner.xml 20 | 21 | # Gradle: 22 | # .idea/gradle.xml 23 | # .idea/libraries 24 | 25 | # Mongo Explorer plugin: 26 | # .idea/mongoSettings.xml 27 | 28 | ## File-based project format: 29 | *.ipr 30 | *.iws 31 | 32 | ## Plugin-specific files: 33 | 34 | # IntelliJ 35 | /out/ 36 | 37 | # mpeltonen/sbt-idea plugin 38 | .idea_modules/ 39 | 40 | # JIRA plugin 41 | atlassian-ide-plugin.xml 42 | 43 | # Crashlytics plugin (for Android Studio and IntelliJ) 44 | com_crashlytics_export_strings.xml 45 | crashlytics.properties 46 | crashlytics-build.properties 47 | 48 | 49 | dev/ -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Roman Kulikov 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # typed-ymaps-api 2 | TypeScript definition files for Yandex Maps API 3 | 4 | ### This project is under development. Please do not use it. 5 | 6 | todo replace all `void` with `any` or just remove `void` 7 | todo check all classes for correct interfaces/classes inheritance 8 | 9 | 10 | ## @null returns problem 11 | According to [TypeScript specification](http://www.typescriptlang.org/Content/TypeScript%20Language%20Specification.pdf) part `3.2.5 The Null Type` 12 | there is no need to describe null-return statements. Remove them all. 13 | 14 | ## @void problem 15 | Replace all `void`'s with `any` 16 | -------------------------------------------------------------------------------- /ymaps/Balloon.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export class Balloon extends interfaces.IBalloon, Popup { 3 | constructor(map:Map, options?:BalloonOptions); 4 | } 5 | export class BalloonOptions { 6 | autoPan:boolean = true; 7 | autoPanCheckZoomRange:boolean = false; 8 | autoPanDuration:number = 500; 9 | autoPanMargin:number|number[] = 34; 10 | closeButton:boolean = true; 11 | contentLayout:string|Function; 12 | layout:string|Function = "islands#balloon"; 13 | maxHeight:number; 14 | maxWidth:number; 15 | minHeight:number; 16 | minWidth:number; 17 | offset:number[]; 18 | pane:string = "balloon"; 19 | panelContentLayout:string|Function = null; 20 | panelMaxHeightRatio:number; 21 | panelMaxMapArea:number; 22 | shadow:boolean = true; 23 | shadowLayout:string|Function; 24 | shadowOffset:number[]; 25 | } 26 | } -------------------------------------------------------------------------------- /ymaps/Clusterer.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export class Clusterer extends interfaces.IChildOnMap, interfaces.ICustomizable, interfaces.IEventEmitter, interfaces.IParentOnMap { 3 | constructor(options?:ClustererOptions); 4 | } 5 | 6 | export class ClustererOptions { 7 | gridSize:number = 64; 8 | groupByCoordinates:boolean = false; 9 | hasBalloon:boolean = true; 10 | hasHint:boolean = true; 11 | margin:number | number[] = 10; 12 | maxZoom:number[]|number = Infinity; // todo check type declaration 13 | minClusterSize:number = 2; 14 | preset:string; 15 | showInAlphabeticalOrder:boolean = false; 16 | viewportMargin:number | number[] = 128; 17 | zoomMargin:number | number[] = 0; 18 | 19 | } 20 | } -------------------------------------------------------------------------------- /ymaps/Collection.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export class Collection extends interfaces.ICollection, collection.Item { 3 | constructor(options?:any); 4 | 5 | add(child:collection.Item):Collection; 6 | remove(child:collection.Item):Collection; 7 | removeAll():Collection; 8 | 9 | each(callback:Function, context:any):Collection; 10 | filter(filterFunction:Function):any[]; // todo collection.Item[] ? todo notation for first fn argument? 11 | 12 | get(index:number):any; // // todo collection.Item ? 13 | getAll():any[]; // todo collection.Item[] ? 14 | 15 | getIterator():interfaces.IIterator; 16 | getLength():number; 17 | indexOf(childToFind:any):number; // todo collection.Item ? 18 | 19 | } 20 | } -------------------------------------------------------------------------------- /ymaps/DomEvent.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export class DomEvent extends interfaces.IDomEvent { 3 | constructor(originalEvent:any, type?:any){ // todo originalEvent:DomEvent ? 4 | super(originalEvent); 5 | void type; // todo remove inspection? 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /ymaps/Error.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps { 2 | interface Error { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/Event.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export class Event extends interfaces.IEvent { 3 | constructor(originalEvent:any, sourceEvent?:interfaces.IEvent); 4 | 5 | callMethod(name:string):any; 6 | 7 | get(name:string):any; 8 | 9 | isDefaultPrevented():boolean; 10 | 11 | isImmediatePropagationStopped():boolean; 12 | 13 | isPropagationStopped():boolean; 14 | 15 | preventDefault():void; 16 | 17 | stopImmediatePropagation():void; 18 | 19 | stopPropagation():void; 20 | } 21 | } -------------------------------------------------------------------------------- /ymaps/GeoObjectCollection.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export class GeoObjectCollection extends interfaces.IGeoObject, interfaces.IGeoObjectCollection { 3 | constructor(feature?:GeoObjectCollectionFeature, options?:GeoObjectOptions); // todo check options carefully 4 | 5 | add(child:interfaces.IGeoObject):GeoObjectCollection; 6 | 7 | each(callback:Function, context?:any):void; // todo duplicate parent? determine (item?:interfaces.IGeoObject) => any ? 8 | getBounds():number[][]; // todo duplicate parent? 9 | getIterator():interfaces.IIterator; // todo duplicate parent? 10 | getLength():number; // todo duplicate parent? 11 | getPixelBounds():number[][]; // todo duplicate parent? 12 | remove(child:interfaces.IGeoObject):GeoObjectCollection; // todo duplicate parent? 13 | removeAll():GeoObjectCollection; // todo duplicate parent? 14 | set(index:number, child:interfaces.IGeoObject):GeoObjectCollection; // todo duplicate parent? 15 | splice(index:number, number:number):GeoObjectCollection; // todo duplicate parent? 16 | toArray():interfaces.IGeoObject[]; 17 | } 18 | 19 | export class GeoObjectCollectionFeature { 20 | children:interfaces.IGeoObject[]; 21 | geometry:interfaces.IGeometry|any; 22 | properties:interfaces.IDataManager|Object; 23 | } 24 | } -------------------------------------------------------------------------------- /ymaps/Hint.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export class Hint extends interfaces.IHint, Popup { 3 | constructor(map:Map, options?:HintOptions); 4 | } 5 | 6 | export class HintOptions { 7 | contentLayout:string|Function; // todo ILayout constructor? 8 | fitPane:boolean = true; 9 | holdByMouse:boolean = true; 10 | layout:string|Function = "islands#hint"; // todo ILayout constructor? 11 | offset:number[]; // todo check for single-number version 12 | pane:string = "outerHint"; // todo determine all keys? 13 | } 14 | } -------------------------------------------------------------------------------- /ymaps/Hotspot.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export class Hotspot extends interfaces.IHotspot { 3 | constructor(shape:interfaces.IShape, zIndex:number = 0); 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/Layer.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export class Layer extends interfaces.ILayer, interfaces.IParentOnMap, interfaces.IPositioningContext { 3 | constructor(tileUrlTemplate:string|Function, options?:LayerOptions); 4 | 5 | // todo check clientPixelPoint:number[]? 6 | clientPixelsToNumber(clientPixelPoint:number, tileZoom:number):number[]; 7 | getPane():interfaces.IPane; 8 | getTileSize(zoom:number):number[]; 9 | 10 | // todo report about types missed 11 | // todo check tileNumber:number[]? 12 | getTileUrl(tileNumber:number, tileZoom:number):string; 13 | getTileUrlTemplate():string|Function; 14 | numberToClientBounds(tileNumber:number[], tileZoom:number):number[][]; 15 | restrict(number:number[], tileZoom:number):number[]; 16 | setTileUrlTemplate(tileUrlTemplate:string|Function):void; 17 | 18 | // todo check updateBounds parameter 19 | // todo report about ambiguous description 20 | update():void; 21 | } 22 | 23 | export class LayerOptions { 24 | brightness:number = 0.5; 25 | notFoundTile:string = null; 26 | pane:string|interfaces.IPane = "ground"; // todo report about string type missed 27 | projection:any; // todo IProjection? 28 | tileSize:number[] = [256, 256]; 29 | tileTransparent:boolean = false; 30 | zIndex:number /* = constants.zIndex.layer */; 31 | } 32 | } -------------------------------------------------------------------------------- /ymaps/LayerCollection.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export class LayerCollection extends interfaces.ILayer, interfaces.IMapObjectCollection { 3 | add(child:string|interfaces.ILayer):LayerCollection; 4 | 5 | // todo check is it really void 6 | // todo check for (item?:string|ILayer) => any? 7 | each(callback:Function, context?:any):void; 8 | getBrightness():number; 9 | 10 | // todo generics? 11 | getCopyrights(coordinates?:number[], zoom:number):vow.Promise; 12 | 13 | // todo generics? 14 | getZoomRange():vow.Promise; 15 | remove(child:string|interfaces.ILayer):LayerCollection; 16 | } 17 | } -------------------------------------------------------------------------------- /ymaps/MapEvent.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export class MapEvent extends Event { 3 | constructor(originalEvent:any, sourceEvent?:interfaces.IEvent){ 4 | super(originalEvent, sourceEvent); 5 | } 6 | 7 | get(name:"coords"):number[]; 8 | get(name:"globalPixels"):number[]; 9 | get(name:"pagePixels"):number[]; 10 | get(name:"position"):number[]; 11 | get(name:"clientPixels"):number[]; 12 | get(name:"domEvent"):DomEvent; 13 | } 14 | } -------------------------------------------------------------------------------- /ymaps/MapType.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export class MapType { 3 | constructor(name:string, layers:string[]|Function[]); // todo determine 4 | 5 | getLayers():string[]|Function[]; 6 | 7 | // todo report about ambiguous declaration 8 | // todo check for map parameter 9 | getName():string; 10 | } 11 | } -------------------------------------------------------------------------------- /ymaps/Monitor.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export class Monitor { 3 | constructor(dataManager:interfaces.IDataManager|interfaces.IOptionManager); 4 | 5 | add(name:string|string[], changeCallback:Function, context?:any, params?:MonitorAddParams); 6 | forceChange():Monitor; 7 | get(name:string):any; 8 | remove(name:string|string[]):Monitor; 9 | removeAll():Monitor; 10 | } 11 | 12 | export interface MonitorAddParams { 13 | compareCallback?:(oldValue?:any, newValue?:any)=>any; 14 | compareCallbacks?:{[key:string]:(oldValue?:any, newValue?:any)=>any}; 15 | defaultValue?:any; 16 | defaultValues?:{[key:string]:any}; 17 | resolveCallback?:(name?:string, dataManager?:interfaces.IDataManager|interfaces.IOptionManager)=>any; 18 | resolveCallbacks?:{[key:string]:(name?:string, dataManager?:interfaces.IDataManager|interfaces.IOptionManager)=>any}; 19 | } 20 | } -------------------------------------------------------------------------------- /ymaps/Popup.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export class Popup extends interfaces.IPopup { 3 | constructor(map:Map, options?:PopupOptions); 4 | } 5 | 6 | export class PopupOptions{ 7 | closeTimeout:number = 700; 8 | interactivityModel:"default#opaque"|"default#geoObject"|"default#layer"|"default#transparent"|"default#silent"; 9 | openTimeout:number = 150; 10 | pane:string|interfaces.IPane; // todo determine - map.pane.Manager 11 | projection:interfaces.IProjection; 12 | zIndex:string; // todo check for number type? 13 | } 14 | } -------------------------------------------------------------------------------- /ymaps/SuggestView.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export class SuggestView extends interfaces.ICustomizable, interfaces.IEventEmitter { 3 | 4 | options:SuggestViewOptionsManager; 5 | state:SuggestViewStateManager; 6 | 7 | constructor(element:HTMLElement|string, options?:SuggestViewOptions); 8 | 9 | destroy():any; 10 | } 11 | 12 | export class SuggestViewOptionsManager extends interfaces.IOptionManager { 13 | 14 | } 15 | export class SuggestViewStateManager extends data.Manager { 16 | get(path:"request", defaultValue?:T):T|string; 17 | get(path:"items", defaultValue?:T):T|SuggestViewStateManagerItems[]; 18 | get(path:"activeIndex", defaultValue?:T):T|number; 19 | get(path:"panelClosed", defaultValue?:T):T|boolean; 20 | } 21 | 22 | export class SuggestViewStateManagerItems { 23 | value:any; // todo determine? 24 | displayName:string; 25 | } 26 | 27 | export class SuggestViewOptions { 28 | boundedBy:number[][]; 29 | container:HTMLElement; 30 | layout:string|SuggestViewLayout = "islands#suggestView"; 31 | offset:number[]; 32 | provider:string|interfaces.ISearchProvider = "yandex#map"; 33 | results:number = 5; 34 | width:number; 35 | zIndex:number = 40000; 36 | } 37 | 38 | export class SuggestViewLayout implements interfaces.ISuggestViewLayout { 39 | constructor(params?:SuggestViewLayoutParameters); 40 | } 41 | 42 | export class SuggestViewLayoutParameters { 43 | suggestView:SuggestView; 44 | options:SuggestViewOptionsManager; 45 | state:SuggestViewStateManager; 46 | } 47 | } -------------------------------------------------------------------------------- /ymaps/Template.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export class Template { 3 | constructor(text:string); 4 | 5 | build(data:interfaces.IDataManager):TemplateBuildResult; 6 | } 7 | 8 | export class TemplateBuildResult { 9 | text:string; 10 | renderedValues:Object[]; 11 | } 12 | } -------------------------------------------------------------------------------- /ymaps/behavior/DblClickZoom.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.behavior { 2 | 3 | interface DblClickZoomStatic { 4 | new(options:DblClickZoomOptions = defaultDblClickZoomOptions):DblClickZoom; 5 | } 6 | interface DblClickZoom extends ymaps.interfaces.IBehavior { 7 | } 8 | 9 | interface DblClickZoomOptions { 10 | centering?:boolean; 11 | duration ?:number; 12 | } 13 | 14 | 15 | declare var DblClickZoom:DblClickZoomStatic; 16 | declare var defaultDblClickZoomOptions:DblClickZoomOptions = { 17 | centering: true, 18 | duration : 200 19 | }; 20 | } -------------------------------------------------------------------------------- /ymaps/behavior/Drag.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.behavior { 2 | 3 | interface DragStatic { 4 | new(options:DragOptions = defaultDragOptionsOptions):Drag; 5 | } 6 | interface Drag extends ymaps.interfaces.IBehavior { 7 | } 8 | interface DragOptions { 9 | actionCursor ?:string; 10 | cursor ?:string; 11 | inertia ?:boolean; 12 | inertiaDuration?:number; 13 | tremor ?:number; 14 | } 15 | 16 | 17 | declare var Drag:DragStatic; 18 | declare var defaultDragOptionsOptions:DragOptions = { 19 | actionCursor : 'grabbing', 20 | cursor : 'grab', 21 | inertia : true, 22 | inertiaDuration: 400, 23 | tremor : 2 24 | }; 25 | } -------------------------------------------------------------------------------- /ymaps/behavior/LeftMouseButtonMagnifier.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.behavior { 2 | 3 | interface LeftMouseButtonMagnifierStatic { 4 | new(options:LeftMouseButtonMagnifierOptions = defaultLeftMouseButtonMagnifierOptions):LeftMouseButtonMagnifier; 5 | } 6 | interface LeftMouseButtonMagnifier extends ymaps.interfaces.IBehavior { 7 | } 8 | interface LeftMouseButtonMagnifierOptions { 9 | actionCursor?:string; 10 | cursor ?:string; 11 | duration ?:number; 12 | } 13 | 14 | 15 | declare var LeftMouseButtonMagnifier:LeftMouseButtonMagnifierStatic; 16 | declare var defaultLeftMouseButtonMagnifierOptions:LeftMouseButtonMagnifierOptions = { 17 | actionCursor: 'crosshair', 18 | cursor : 'zoom', 19 | duration : 300 20 | } 21 | } -------------------------------------------------------------------------------- /ymaps/behavior/MultiTouch.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.behavior { 2 | 3 | interface MultiTouchStatic { 4 | new(options:MultiTouchOptions = defaultMultiTouchOptions):MultiTouch; 5 | } 6 | interface MultiTouch extends ymaps.interfaces.IBehavior { 7 | } 8 | interface MultiTouchOptions { 9 | tremor?:number; 10 | } 11 | 12 | 13 | declare var MultiTouch:MultiTouchStatic; 14 | declare var defaultMultiTouchOptions:MultiTouchOptions = { 15 | tremor: 2 16 | } 17 | } -------------------------------------------------------------------------------- /ymaps/behavior/RightMouseButtonMagnifier.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.behavior { 2 | 3 | interface RightMouseButtonMagnifierStatic { 4 | new(options?:RightMouseButtonMagnifierOptions):RightMouseButtonMagnifier; 5 | } 6 | interface RightMouseButtonMagnifier extends ymaps.interfaces.IBehavior { 7 | } 8 | interface RightMouseButtonMagnifierOptions { 9 | actionCursor?:string; 10 | duration ?:number; 11 | } 12 | 13 | 14 | declare var RightMouseButtonMagnifier:RightMouseButtonMagnifierStatic; 15 | declare var defaultRightMouseButtonMagnifierOptions:RightMouseButtonMagnifierOptions = { 16 | actionCursor: 'crosshair', 17 | duration : 300 18 | } 19 | } -------------------------------------------------------------------------------- /ymaps/behavior/RouteEditor.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.behavior { 2 | 3 | interface RouteEditorStatic { 4 | new():RouteEditor; 5 | } 6 | interface RouteEditor extends ymaps.interfaces.IBehavior { 7 | } 8 | 9 | 10 | declare var RouteEditor:RouteEditorStatic; 11 | } -------------------------------------------------------------------------------- /ymaps/behavior/Ruler.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.behavior { 2 | 3 | interface RulerStatic{ 4 | new():Ruler; 5 | } 6 | interface Ruler extends ymaps.interfaces.IBehavior { 7 | geometry:geometry.LineString; 8 | 9 | close():boolean; 10 | 11 | getState():string; 12 | setState(state:string):any; 13 | } 14 | 15 | declare var Ruler:RulerStatic; 16 | } -------------------------------------------------------------------------------- /ymaps/behavior/ScrollZoom.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.behavior { 2 | 3 | interface ScrollZoomStatic { 4 | new(options:ScrollZoomOptions = defaultScrollZoomOptions):ScrollZoom; 5 | } 6 | 7 | interface ScrollZoom extends ymaps.interfaces.IBehavior { 8 | } 9 | interface ScrollZoomOptions { 10 | maximumDelta?:number; 11 | speed ?:number; 12 | } 13 | 14 | 15 | declare var ScrollZoom:ScrollZoomStatic; 16 | declare var defaultScrollZoomOptions:ScrollZoomOptions = { 17 | maximumDelta: 5, 18 | speed : 5 19 | } 20 | } -------------------------------------------------------------------------------- /ymaps/behavior/storage.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.behavior { 2 | declare var storage:ymaps.util.Storage; 3 | } -------------------------------------------------------------------------------- /ymaps/clusterer/Balloon.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.clusterer { 2 | 3 | interface BalloonStatic { 4 | new(clusterer:ymaps.Clusterer):Balloon; 5 | } 6 | interface Balloon extends ymaps.interfaces.IBalloonManager { 7 | } 8 | 9 | declare var Balloon:BalloonStatic; 10 | } -------------------------------------------------------------------------------- /ymaps/clusterer/Hint.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.clusterer { 2 | 3 | interface HintStatic{ 4 | new(clusterer:ymaps.Clusterer):Hint; 5 | } 6 | interface Hint extends ymaps.interfaces.IHintManager{ 7 | } 8 | 9 | declare var Hint:HintStatic; 10 | } -------------------------------------------------------------------------------- /ymaps/collection/Item.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.collection { 2 | 3 | interface ItemStatic { 4 | new(options?:ymaps.Dictionary):Item; 5 | } 6 | interface Item extends ymaps.interfaces.IChildOnMap, ymaps.interfaces.ICustomizable, ymaps.interfaces.IEventEmitter, ymaps.interfaces.IParentOnMap { 7 | getMap():ymaps.Map; 8 | 9 | // todo @incompatible 10 | getParent():ymaps.interfaces.IParentOnMap; 11 | setParent(parent:ymaps.interfaces.IParentOnMap):Item; 12 | 13 | onAddToMap(map:ymaps.Map):any; 14 | onRemoveFromMap(oldMap:ymaps.Map):any; 15 | } 16 | 17 | declare var Item:ItemStatic; 18 | } -------------------------------------------------------------------------------- /ymaps/control/GeolocationControl.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.control { 2 | 3 | interface GeolocationControlStatic { 4 | new(parameters:GeolocationParameters = defaultGeolocationParameters):GeolocationControl; 5 | } 6 | interface GeolocationControl extends Button { 7 | } 8 | 9 | interface GeolocationParameters { 10 | data ?:GeolocationParametersData; 11 | options?:GeolocationParametersOptions; 12 | state ?:GeolocationParametersState; 13 | } 14 | interface GeolocationParametersData { 15 | image?:string; 16 | title?:string; 17 | } 18 | interface GeolocationParametersOptions { 19 | float ?:ymaps.Float; 20 | floatIndex ?:number; 21 | maxWidth ?:number|number[]; 22 | visible ?:boolean; 23 | noPlacemark?:boolean; 24 | position ?:GeolocationParametersOptionsPosition; 25 | } 26 | interface GeolocationParametersOptionsPosition { 27 | top ?:number|string; 28 | right ?:number|string; 29 | bottom?:number|string; 30 | left ?:number|string; 31 | } 32 | interface GeolocationParametersState { 33 | } 34 | 35 | declare var GeolocationControl:GeolocationControlStatic; 36 | declare var defaultGeolocationParameters:GeolocationParameters = { 37 | data : { 38 | image: 'geolocation' 39 | }, 40 | options: { 41 | float : "right", 42 | floatIndex : 300, 43 | maxWidth : 28, 44 | visible : true, 45 | noPlacemark: false, 46 | position : { 47 | top : "auto", 48 | right : "auto", 49 | bottom: "auto", 50 | left : "auto", 51 | } 52 | } 53 | } 54 | } -------------------------------------------------------------------------------- /ymaps/control/ListBoxItem.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.control { 2 | 3 | interface ListBoxItemStatic { 4 | new(parameters:string|ListBoxItemParameters):ListBoxItemParameters; 5 | } 6 | interface ListBoxItem extends interfaces.ICustomizable, interfaces.ISelectableControl { 7 | 8 | data:ymaps.data.Manager; 9 | state:ymaps.data.Manager; 10 | 11 | getMap():Map; 12 | } 13 | 14 | interface ListBoxItemParameters { 15 | data ?:ListBoxItemParametersData; 16 | items ?:interfaces.IControl[]; 17 | options?:ListBoxItemParametersOptions; 18 | state ?:ListBoxItemParametersState; 19 | } 20 | interface ListBoxItemParametersData { 21 | content?:string; 22 | } 23 | interface ListBoxItemParametersOptions { 24 | layout ?:string|Function; // todo constructor 25 | selectableLayout?:string|Function; 26 | selectOnClick ?:boolean; 27 | separatorLayout ?:string|Function; 28 | expandOnClick ?:boolean; 29 | type ?:"selectable"|"separator"; 30 | visible ?:boolean; 31 | } 32 | interface ListBoxItemParametersState { 33 | selected?:boolean; 34 | } 35 | 36 | declare var ListBoxItem:ListBoxItemStatic; 37 | declare var defaultListBoxItemParameters:ListBoxItemParameters = { 38 | options: { 39 | layout : "islands#listBoxItemLayout", 40 | selectableLayout: "islands#listBoxItemSelectableLayout", 41 | selectOnClick : true, 42 | separatorLayout : "islands#listBoxItemSeparatorLayout", 43 | expandOnClick : true, 44 | type : "selectable", 45 | visible : true 46 | }, 47 | state : { 48 | selected: false 49 | } 50 | } 51 | } -------------------------------------------------------------------------------- /ymaps/control/RouteEditor.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.control { 2 | 3 | interface RouteEditorStatic { 4 | new(parameters:RouteEditorParameters = defaultRouteEditorParameters):RouteEditor 5 | } 6 | interface RouteEditor extends Button { 7 | getRoute():router.Route; 8 | } 9 | 10 | interface RouteEditorParameters { 11 | data ?:RouteEditorParametersData; 12 | options?:RouteEditorParametersOptions; 13 | state ?:RouteEditorParametersState; 14 | } 15 | interface RouteEditorParametersData { 16 | image?:string; 17 | title?:string; 18 | } 19 | interface RouteEditorParametersOptions { 20 | float ?:ymaps.Float; 21 | floatIndex?:number; 22 | layout ?:string|interfaces.ISelectableControlLayout; 23 | maxWidth ?:number|number[]; 24 | position ?:RouteEditorParametersOptionsPosition; 25 | visible ?:boolean; 26 | } 27 | interface RouteEditorParametersOptionsPosition { 28 | top ?:number|string; 29 | right ?:number|string; 30 | bottom?:number|string; 31 | left ?:number|string; 32 | } 33 | interface RouteEditorParametersState { 34 | } 35 | 36 | declare var RouteEditor:RouteEditorStatic; 37 | declare var defaultRouteEditorParameters:RouteEditorParameters = { 38 | data : { 39 | image: "routes" 40 | }, 41 | options: { 42 | float : "right", 43 | floatIndex: 100, 44 | maxWidth : 28, 45 | position : { 46 | top : "auto", 47 | right : "auto", 48 | bottom: "auto", 49 | left : "auto", 50 | }, 51 | visible : true, 52 | } 53 | } 54 | } -------------------------------------------------------------------------------- /ymaps/control/RulerControl.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.control { 2 | 3 | interface RulerControlStatic { 4 | new(parameters:RulerControlParameters = defaultRulerControlParameters):RulerControl; 5 | } 6 | interface RulerControl extends Button { 7 | } 8 | 9 | interface RulerControlParameters { 10 | data ?:RulerControlParametersData; 11 | options?:RulerControlParametersOptions; 12 | state ?:RulerControlParametersState; 13 | } 14 | interface RulerControlParametersData { 15 | } 16 | interface RulerControlParametersOptions { 17 | position ?:RulerControlParametersOptionsPosition; 18 | scaleLine?:boolean; 19 | visible ?:boolean; 20 | } 21 | interface RulerControlParametersOptionsPosition { 22 | top ?:number|string; 23 | right ?:number|string; 24 | bottom?:number|string; 25 | left ?:number|string; 26 | } 27 | interface RulerControlParametersState { 28 | } 29 | 30 | declare var RulerControl:RulerControlStatic; 31 | declare var defaultRulerControlParameters:RulerControlParameters = { 32 | options: { 33 | position : { 34 | top : "auto", 35 | right : 10, 36 | bottom: 30, 37 | left : "auto", 38 | }, 39 | scaleLine: true, 40 | visible : true 41 | } 42 | } 43 | } -------------------------------------------------------------------------------- /ymaps/control/ZoomControl.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.control { 2 | 3 | interface ZoomControlStatic { 4 | new(parameters:ZoomControlParameters = defaultZoomControlParameters):ZoomControl; 5 | } 6 | interface ZoomControl extends interfaces.IControl, interfaces.ICustomizable { 7 | } 8 | 9 | interface ZoomControlParameters { 10 | data ?:ZoomControlParametersData; 11 | options?:ZoomControlParametersOptions; 12 | state ?:ZoomControlParametersState; 13 | } 14 | interface ZoomControlParametersData { 15 | 16 | } 17 | interface ZoomControlParametersOptions { 18 | layout ?:string|interfaces.IZoomControlLayout; 19 | position ?:ZoomControlParametersOptionsPosition; 20 | size ?:"small"|"large"|"auto"; 21 | visible ?:boolean; 22 | zoomDuration?:number; 23 | zoomStep ?:number; 24 | } 25 | interface ZoomControlParametersOptionsPosition { 26 | top ?:number|string; 27 | right ?:number|string; 28 | bottom?:number|string; 29 | left ?:number|string; 30 | } 31 | interface ZoomControlParametersState { 32 | } 33 | 34 | declare var ZoomControl:ZoomControlStatic; 35 | declare var defaultZoomControlParameters:ZoomControlParameters = { 36 | options: { 37 | position : { 38 | top : 108, 39 | right : "auto", 40 | bottom: "auto", 41 | left : 10, 42 | }, 43 | size : "auto", 44 | visible : true, 45 | zoomDuration: 200, 46 | zoomStep : 1, 47 | } 48 | }; 49 | } -------------------------------------------------------------------------------- /ymaps/control/storage.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.control { 2 | 3 | interface Storage extends util.Storage { 4 | get(key:"rulerControl"):control.RulerControl; 5 | get(key:"searchControl"):control.SearchControl; 6 | get(key:"trafficControl"):control.TrafficControl; 7 | get(key:"typeSelector"):control.TypeSelector; 8 | get(key:"zoomControl"):control.ZoomControl; 9 | get(key:"geolocationControl"):control.GeolocationControl; 10 | get(key:"routeEditor"):control.RouteEditor; 11 | get(key:"fullscreenControl"):control.FullscreenControl; 12 | } 13 | 14 | declare var storage:Storage; 15 | } -------------------------------------------------------------------------------- /ymaps/coordSystem/cartesian.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.coordSystem { 2 | 3 | // todo check is this constructions correct 4 | interface CartesianCoordSystemStatic { 5 | new(scale:number|number[] = 1):CartesianCoordSystem; 6 | (scale:number|number[] = 1):CartesianCoordSystem; 7 | } 8 | interface CartesianCoordSystem extends ymaps.interfaces.ICoordSystem { 9 | } 10 | 11 | declare var cartesian:CartesianCoordSystemStatic; 12 | } -------------------------------------------------------------------------------- /ymaps/coordSystem/geo.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.coordSystem { 2 | 3 | // todo check is this constructions correct 4 | interface GeoCoordSystemStatic { 5 | new(scale:number|number[] = 1):GeoCoordSystem; 6 | (scale:number|number[] = 1):GeoCoordSystem; 7 | } 8 | interface GeoCoordSystem extends ymaps.interfaces.ICoordSystem { 9 | } 10 | 11 | declare var geo:GeoCoordSystemStatic; 12 | } -------------------------------------------------------------------------------- /ymaps/data/Manager.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.data { 2 | 3 | interface ManagerStatic{ 4 | new(data:ymaps.Dictionary):Manager; 5 | } 6 | interface Manager extends ymaps.interfaces.IDataManager, ymaps.interfaces.IFreezable { 7 | getAll():any; 8 | 9 | set(dictionary:ymaps.Dictionary):Manager; 10 | set(path:string, value:any):Manager; 11 | setAll():Manager; 12 | 13 | unset(path:string|string[]):Manager; 14 | unsetAll():Manager; 15 | } 16 | 17 | declare var Manager:ManagerStatic; 18 | } -------------------------------------------------------------------------------- /ymaps/domEvent/MultiPointer.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.domEvent { 2 | 3 | interface MultiPointerStatic{ 4 | new(originalEvent:any, type?:string):MultiPointer; 5 | } 6 | interface MultiPointer extends interfaces.IMultiTouchEvent { 7 | get(name:string):any; 8 | } 9 | 10 | declare var MultiPointer:MultiPointerStatic; 11 | } -------------------------------------------------------------------------------- /ymaps/domEvent/MultiTouch.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.domEvent { 2 | 3 | interface MultiTouchStatic{ 4 | new(originalEvent:any, type?:string):MultiTouch; 5 | } 6 | interface MultiTouch extends interfaces.IMultiTouchEvent { 7 | get(name:string):any; 8 | } 9 | 10 | declare var MultiTouch:MultiTouchStatic; 11 | } -------------------------------------------------------------------------------- /ymaps/domEvent/Pointer.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.domEvent { 2 | 3 | interface PointerStatic{ 4 | new(originalEvent:any, type?:string):Pointer; 5 | } 6 | interface Pointer extends interfaces.IMultiTouchEvent { 7 | get(name:string):any; 8 | } 9 | 10 | declare var Pointer:PointerStatic; 11 | } -------------------------------------------------------------------------------- /ymaps/domEvent/Touch.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.domEvent { 2 | 3 | interface TouchStatic { 4 | new(originalEvent:any, type?:string):Touch; 5 | } 6 | interface Touch extends interfaces.IMultiTouchEvent { 7 | get(name:string):any; 8 | } 9 | 10 | declare var Touch:TouchStatic; 11 | } -------------------------------------------------------------------------------- /ymaps/domEvent/manager.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.domEvent { 2 | 3 | // todo check is this correct 4 | interface Manager { 5 | add(htmlElement:HTMLElement, types:string|string[], callback:Function, context?:any, capture?:boolean):Manager; 6 | remove(htmlElement:HTMLElement, types:string|string[], callback:string|Function, context?:any, capture?:boolean):Manager; 7 | group(htmlElement:HTMLElement, capture?:boolean):event.Group; 8 | } 9 | 10 | declare var manager:Manager; 11 | } -------------------------------------------------------------------------------- /ymaps/error/AccessError.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.error { 2 | interface AccessError extends ExternalError { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/error/ClientError.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.error { 2 | interface ClientError extends Error { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/error/DataProcessingError.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.error { 2 | interface DataProcessingError extends ExternalError { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/error/DeprecationWarning.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.error { 2 | interface DeprecationWarning extends Warning { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/error/EmptyResultReject.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.error { 2 | interface EmptyResultReject extends Reject { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/error/ExternalError.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.error { 2 | interface ExternalError extends Error { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/error/FeatureRemovedError.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.error { 2 | interface FeatureRemovedError extends ClientError { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/error/InputError.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.error { 2 | interface InputError extends ClientError { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/error/NotSupportedError.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.error { 2 | interface NotSupportedError extends ExternalError { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/error/OperationCanceledReject.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.error { 2 | interface OperationCanceledReject extends Reject { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/error/OperationUnallowedReject.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.error { 2 | interface OperationUnallowedReject extends Reject { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/error/OperationUnawailableReject.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.error { 2 | interface OperationUnawailableReject extends Reject { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/error/OveruseWarning.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.error { 2 | interface OveruseWarning extends Warning { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/error/Reject.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.error { 2 | interface Reject extends Error { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/error/RequestError.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.error { 2 | interface RequestError extends ExternalError { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/error/StateError.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.error { 2 | interface StateError extends ClientError { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/error/StorageItemAccessError.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.error { 2 | interface StorageItemAccessError extends ClientError { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/error/Warning.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.error { 2 | interface Warning extends ClientError { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/event/Group.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.event { 2 | 3 | interface GroupStatic { 4 | new(events:interfaces.IEventManager):Group; 5 | } 6 | interface Group extends interfaces.IEventGroup { 7 | events:interfaces.IEventManager; 8 | } 9 | 10 | declare var Group:GroupStatic; 11 | } -------------------------------------------------------------------------------- /ymaps/event/Manager.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.event { 2 | 3 | interface ManagerStatic { 4 | new(parameters?:ManagerParameters):Manager; 5 | } 6 | interface Manager extends interfaces.IEventManager { 7 | createEventObject(type:string, event:any, target:any):Event; 8 | once(types:string|string[], callback:(event?:Event) => any, context?:any, priority:number = 0):interfaces.IEventManager; 9 | } 10 | 11 | interface ManagerParameters { 12 | context ?:any; 13 | controllers?:interfaces.IEventWorkflowController[]; 14 | parent ?:interfaces.IEventManager; 15 | } 16 | 17 | declare var Manager:ManagerStatic; 18 | } -------------------------------------------------------------------------------- /ymaps/event/Mapper.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.event { 2 | 3 | interface MapperStatic { 4 | new(targetEventManager:interfaces.IEventManager, mappingTable:MapperMappingTable):Mapper; 5 | } 6 | interface Mapper extends interfaces.IEventTrigger { 7 | } 8 | 9 | interface MapperMappingTable extends Dictionary { 10 | } 11 | interface MapperMappingTableFunction { 12 | (event:Event):Event; 13 | } 14 | 15 | declare var Mapper:MapperStatic; 16 | } -------------------------------------------------------------------------------- /ymaps/formatter.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export class formatter { 3 | static distance(value:number, significantDigits:number = 2):string; 4 | static duration(value:number, significantDigits:number = 2):string; 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/geoObject/Balloon.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geoObject { 2 | 3 | interface BalloonStatic { 4 | new(geoObject:any):Balloon; // todo GeoObject type? 5 | } 6 | interface Balloon extends interfaces.IBalloonManager { 7 | open(position?:number[], data?:any, options?:any):vow.Promise; 8 | setData(data?:any):vow.Promise; 9 | } 10 | 11 | declare var Balloon:BalloonStatic; 12 | } -------------------------------------------------------------------------------- /ymaps/geoObject/Hint.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geoObject { 2 | 3 | interface HintStatic { 4 | new(geoObject:any):Hint; // todo GeoObject type? 5 | } 6 | interface Hint extends interfaces.IHintManager { 7 | open(position?:number[], data?:any, options?:any):vow.Promise; 8 | setData(data?:any):vow.Promise; 9 | } 10 | 11 | declare var Hint:HintStatic; 12 | } -------------------------------------------------------------------------------- /ymaps/geoObject/Sequence.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geoObject { 2 | 3 | interface SequenceStatic { 4 | new(feature?:SequenceFeatures, options?:any):Sequence 5 | } 6 | interface Sequence extends interfaces.IGeoObject, interfaces.IGeoObjectSequence { 7 | } 8 | 9 | interface SequenceFeatures { 10 | children?:interfaces.IGeoObject[]; 11 | geometry?:interfaces.IGeometry|any; 12 | properties?:interfaces.IDataManager|any; 13 | } 14 | 15 | declare var Sequence:SequenceStatic; 16 | } -------------------------------------------------------------------------------- /ymaps/geoObject/addon/balloon.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geoObject.addon { 2 | 3 | // todo check is this correct 4 | interface Balloon { 5 | get(geoObject:interfaces.IGeoObject):interfaces.IPopupManager; 6 | } 7 | 8 | declare var balloon:Balloon; 9 | } -------------------------------------------------------------------------------- /ymaps/geoObject/addon/editor.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geoObject.addon { 2 | 3 | interface Editor { 4 | get(geoObject:interfaces.IGeoObject):interfaces.IGeometryEditor; 5 | } 6 | 7 | declare var editor:Editor; 8 | } -------------------------------------------------------------------------------- /ymaps/geoObject/addon/hint.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geoObject.addon { 2 | 3 | interface Hint { 4 | get(geoObject:interfaces.IGeoObject):interfaces.IPopupManager; 5 | } 6 | 7 | declare var hint:Hint; 8 | } -------------------------------------------------------------------------------- /ymaps/geoQuery.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export function geoQuery(source:string 3 | |interfaces.IGeoObject 4 | |interfaces.IGeoObject[] 5 | |interfaces.ICollection // todo generics like ICollection? 6 | |interfaces.ICollection[] // todo generics like ICollection? 7 | |vow.Promise // todo check for generics? 8 | |GeoQueryResult 9 | |GeoQueryJsonDescription):GeoQueryResult; 10 | 11 | } -------------------------------------------------------------------------------- /ymaps/geoXml/load.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geoXml { 2 | function load(url:string):vow.Promise; // todo generics? 3 | } -------------------------------------------------------------------------------- /ymaps/geocode.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export function geocode(request:string|number[], options?:GeocodeOptions):vow.Promise; 3 | 4 | export class GeocodeOptions { 5 | boundedBy:number[][]; 6 | json:boolean = false; 7 | kind:"house"|"street"|"metro"|"district"|"locality" = "house"; // todo enum? 8 | provider:"yandex#map"|"yandex#publicMap"|interfaces.IGeocodeProvider = "yandex#map"; // todo check string type? 9 | results:number = 10; 10 | searchCoordOrder:string; // todo "lat-long"|"long-lat"? 11 | skip:number = 0; 12 | strictBounds:boolean = false; 13 | 14 | } 15 | } -------------------------------------------------------------------------------- /ymaps/geolocation.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export class geolocation { 3 | static get(options?:GeolocationGetOptions):vow.Promise; 4 | } 5 | 6 | export class GeolocationGetOptions { // todo report about types missing? 7 | autoReverseGeocode:boolean = true; 8 | mapStateAutoApply:boolean = false; 9 | provider:string = "auto"; // todo determine string type? ('yandex' for sure) 10 | timeout:number = 30000; 11 | } 12 | } -------------------------------------------------------------------------------- /ymaps/geometry/Circle.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry { 2 | 3 | interface CircleStatic { 4 | new(coordinates:number[] = null, radius:number = 0, options:CircleOptions = defaultCircleOptions):Circle; 5 | } 6 | interface Circle extends interfaces.ICircleGeometry { 7 | } 8 | 9 | interface CircleOptions { 10 | geodesic ?:boolean; 11 | pixelRendering?:ymaps.PixelRenderings; 12 | projection ?:interfaces.IProjection; 13 | } 14 | 15 | declare var Circle:CircleStatic; 16 | declare var defaultCircleOptions:CircleOptions = { 17 | geodesic : false, 18 | pixelRendering: "jumpy" 19 | } 20 | } -------------------------------------------------------------------------------- /ymaps/geometry/LineString.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry { 2 | 3 | interface LineStringStatic { 4 | new(coordinates:number[][] = [], options:LineStringOptions = defaultLineStringOptions):LineString; 5 | } 6 | interface LineString extends interfaces.ILineStringGeometry { 7 | getDistance(from:number = 0, to?:number):number; 8 | } 9 | 10 | interface LineStringOptions { 11 | coordRendering?:ymaps.CoordRenderings; 12 | geodesic ?:boolean; 13 | pixelRendering?:ymaps.PixelRenderings; 14 | projection ?:interfaces.IProjection; 15 | simplification?:boolean; 16 | } 17 | 18 | declare var LineString:LineStringStatic; 19 | declare var defaultLineStringOptions:LineStringOptions = { 20 | geodesic : false, 21 | pixelRendering: "jumpy", 22 | simplification: true 23 | } 24 | } -------------------------------------------------------------------------------- /ymaps/geometry/LineString/fromEncodedCoordinates.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.LineString { 2 | function fromEncodedCoordinates(encodedCoordinates:string):ymaps.geometry.LineString; 3 | } -------------------------------------------------------------------------------- /ymaps/geometry/LineString/toEncodedCoordinates.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.LineString { 2 | function toEncodedCoordinates(geometry:ymaps.geometry.LineString):string; 3 | } -------------------------------------------------------------------------------- /ymaps/geometry/Point.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry { 2 | 3 | interface PointStatic { 4 | new(position?:number[], options:PointOptions = defaultPointOptions):Point; 5 | } 6 | interface Point extends interfaces.IPointGeometry { 7 | } 8 | 9 | interface PointOptions { 10 | pixelRendering?:ymaps.PixelRenderings; 11 | projection ?:interfaces.IProjection; 12 | } 13 | 14 | declare var Point:PointStatic; 15 | declare var defaultPointOptions:PointOptions = { 16 | pixelRendering: "jumpy" 17 | } 18 | } -------------------------------------------------------------------------------- /ymaps/geometry/Polygon.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry { 2 | 3 | interface PolygonStatic { 4 | new(coordinates:number[][][] = [], fillRule:ymaps.FillRules = "evenOdd", options:PolygonOptions = defaultPolygonOptions):Polygon; 5 | } 6 | interface Polygon extends interfaces.IPolygonGeometry { 7 | constructor(coordinates:number[][][] = [], fillRule:ymaps.FillRules = "evenOdd", options:PolygonOptions = defaultPolygonOptions); 8 | } 9 | 10 | interface PolygonOptions { 11 | coordRendering?:ymaps.CoordRenderings; 12 | geodesic ?:boolean; 13 | pixelRendering?:ymaps.PixelRenderings; 14 | projection ?:interfaces.IProjection; 15 | simplification?:boolean; 16 | } 17 | 18 | declare var Polygon:PolygonStatic; 19 | declare var defaultPolygonOptions:PolygonOptions = { 20 | coordRendering: "shortestPath", 21 | geodesic : false, 22 | pixelRendering: "jumpy", 23 | simplification: true 24 | } 25 | } -------------------------------------------------------------------------------- /ymaps/geometry/Polygon/fromEncodedCoordinates.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps.geometry.Polygon { 2 | function fromEncodedCoordinates(encodedCoordinates:string):ymaps.geometry.Polygon; 3 | } -------------------------------------------------------------------------------- /ymaps/geometry/Polygon/toEncodedCoordinates.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps.geometry.Polygon { 2 | function toEncodedCoordinates(geometry:ymaps.geometry.Polygon):string; 3 | } -------------------------------------------------------------------------------- /ymaps/geometry/Rectangle.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry { 2 | 3 | interface RectangleStatic { 4 | new(coordinates:number[][] = null, options?:RectangleOptions):Rectangle; 5 | } 6 | interface Rectangle extends interfaces.IRectangleGeometry { 7 | getDistance(from:number = 0, to?:number):number; 8 | } 9 | 10 | interface RectangleOptions { 11 | coordRendering?:ymaps.CoordRenderings|"boundsPath"; // todo bad logic 12 | geodesic ?:boolean; 13 | pixelRendering?:ymaps.PixelRenderings; 14 | projection ?:interfaces.IProjection; 15 | } 16 | 17 | declare var Rectangle:RectangleStatic; 18 | declare var defaultRectangleOptions:RectangleOptions = { 19 | geodesic : false, 20 | pixelRendering: "jumpy" 21 | } 22 | } -------------------------------------------------------------------------------- /ymaps/geometry/base/Circle.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.base { 2 | 3 | interface CircleStatic { 4 | new(coordinates:number[] = null, radius:number = 0):Circle; 5 | } 6 | interface Circle extends interfaces.IBaseCircleGeometry { 7 | events:event.Manager; 8 | } 9 | 10 | declare var Circle:CircleStatic; 11 | } -------------------------------------------------------------------------------- /ymaps/geometry/base/LineString.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.base { 2 | 3 | interface LineStringStatic { 4 | new(coordinates?:number[][]):LineString; 5 | } 6 | interface LineString extends interfaces.IBaseLineStringGeometry { 7 | events:event.Manager; 8 | } 9 | 10 | declare var LineString:LineStringStatic; 11 | } -------------------------------------------------------------------------------- /ymaps/geometry/base/LineString/fromEncodedCoordinates.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.base.LineString { 2 | function fromEncodedCoordinates(encodedCoordinates:string):ymaps.geometry.base.LineString; 3 | } -------------------------------------------------------------------------------- /ymaps/geometry/base/LineString/toEncodedCoordinates.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.base.LineString { 2 | function toEncodedCoordinates(geometry:ymaps.geometry.base.LineString):string; 3 | } -------------------------------------------------------------------------------- /ymaps/geometry/base/LinearRing.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.base { 2 | 3 | interface LinearRingStatic { 4 | new(coordinates:number[] = null, radius:number = 0):LinearRing; 5 | } 6 | interface LinearRing extends interfaces.IBaseLinearRingGeometry { 7 | events:event.Manager; 8 | } 9 | 10 | declare var LinearRing:LinearRingStatic; 11 | } -------------------------------------------------------------------------------- /ymaps/geometry/base/LinearRing/fromEncodedCoordinates.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.base.LinearRing { 2 | function fromEncodedCoordinates(encodedCoordinates:string):ymaps.geometry.base.LinearRing; 3 | } -------------------------------------------------------------------------------- /ymaps/geometry/base/LinearRing/toEncodedCoordinates.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.base.LinearRing { 2 | function toEncodedCoordinates(geometry:ymaps.geometry.base.LinearRing):string; 3 | } -------------------------------------------------------------------------------- /ymaps/geometry/base/Point.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.base { 2 | 3 | interface PointStatic { 4 | new(coordinates?:number[][]):Point; 5 | } 6 | interface Point extends interfaces.IBasePointGeometry { 7 | events:event.Manager; 8 | } 9 | 10 | declare var Point:PointStatic; 11 | } -------------------------------------------------------------------------------- /ymaps/geometry/base/Polygon.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.base { 2 | 3 | interface PolygonStatic { 4 | new(coordinates:number[][][] = [], fillRule:ymaps.FillRules = "evenOdd"):Polygon; 5 | } 6 | interface Polygon extends interfaces.IBasePolygonGeometry { 7 | events:event.Manager; 8 | } 9 | 10 | declare var Polygon:PolygonStatic; 11 | } -------------------------------------------------------------------------------- /ymaps/geometry/base/Polygon/fromEncodedCoordinates.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.base.Polygon { 2 | function fromEncodedCoordinates(encodedCoordinates:string):ymaps.geometry.base.Polygon; 3 | } -------------------------------------------------------------------------------- /ymaps/geometry/base/Polygon/toEncodedCoordinates.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.base.Polygon { 2 | function toEncodedCoordinates(geometry:ymaps.geometry.base.Polygon):string; 3 | } -------------------------------------------------------------------------------- /ymaps/geometry/base/Rectangle.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.base { 2 | 3 | interface RectangleStatic { 4 | new(coordinates:number[][] = null):Rectangle; 5 | } 6 | interface Rectangle extends interfaces.IBaseRectangleGeometry { 7 | events:event.Manager; 8 | } 9 | 10 | declare var Rectangle:RectangleStatic; 11 | } -------------------------------------------------------------------------------- /ymaps/geometry/json/Point.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.json { 2 | 3 | // todo why it starts from large letter? 4 | interface Point extends interfaces.IGeometryJson { 5 | coordinates:number[]; // todo report about doc missing 6 | type:"Point"; 7 | } 8 | } -------------------------------------------------------------------------------- /ymaps/geometry/json/circle.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.json { 2 | 3 | interface circle extends interfaces.IGeometryJson { 4 | coordinates:number[]; 5 | radius:number; 6 | type:"Circle"; 7 | } 8 | } -------------------------------------------------------------------------------- /ymaps/geometry/json/lineString.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.json { 2 | 3 | interface lineString extends interfaces.IGeometryJson { 4 | coordinates:number[][]; 5 | type:"LineString"; 6 | } 7 | } -------------------------------------------------------------------------------- /ymaps/geometry/json/polygon.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.json { 2 | 3 | interface polygon extends interfaces.IGeometryJson { 4 | coordinates:number[][][]; 5 | fillRule:ymaps.FillRules; 6 | type:"Polygon"; 7 | } 8 | } -------------------------------------------------------------------------------- /ymaps/geometry/json/rectangle.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.json { 2 | 3 | interface rectangle extends interfaces.IGeometryJson { 4 | coordinates:number[][]; 5 | type:"Rectangle"; 6 | } 7 | } -------------------------------------------------------------------------------- /ymaps/geometry/pixel/Circle.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.pixel { 2 | 3 | interface Circle extends interfaces.IPixelCircleGeometry { 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/geometry/pixel/LineString.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.pixel { 2 | 3 | interface LineStringStatic { 4 | new(coordinates:number[][], metaData?:any):LineString; 5 | } 6 | interface LineString extends interfaces.IPixelLineStringGeometry { 7 | } 8 | 9 | declare var LineString:LineStringStatic; 10 | } -------------------------------------------------------------------------------- /ymaps/geometry/pixel/MultiPolygon.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.pixel { 2 | 3 | interface MultiPolygonStatic { 4 | new(coordinates:number[][][][], fillRule:ymaps.FillRules, metaData:MultiPolygonMetaData = defaultMultiPolygonMetaData):MultiPolygon; 5 | } 6 | interface MultiPolygon extends interfaces.IPixelMultiPolygonGeometry { 7 | } 8 | 9 | interface MultiPolygonMetaData { 10 | convex?:boolean; 11 | } 12 | 13 | declare var MultiPolygon:MultiPolygonStatic; 14 | declare var defaultMultiPolygonMetaData:MultiPolygonMetaData = { 15 | convex: false 16 | } 17 | } -------------------------------------------------------------------------------- /ymaps/geometry/pixel/Point.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.pixel { 2 | 3 | interface PointStatic { 4 | new(position:number[], metaData?:any):Point; 5 | } 6 | interface Point extends interfaces.IPixelPointGeometry { 7 | } 8 | 9 | declare var Point:PointStatic; 10 | } -------------------------------------------------------------------------------- /ymaps/geometry/pixel/Polygon.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.pixel { 2 | 3 | interface PolygonStatic { 4 | new(coordinates:number[][][], fillRule:ymaps.FillRules, metaData:PolygonMetaData = defaultPolygonMetaData):Polygon; 5 | } 6 | interface Polygon extends interfaces.IPixelPolygonGeometry { 7 | } 8 | 9 | interface PolygonMetaData { 10 | convex?:boolean; 11 | } 12 | 13 | declare var Polygon:PolygonStatic; 14 | declare var defaultPolygonMetaData:PolygonMetaData = { 15 | convex: false 16 | } 17 | } -------------------------------------------------------------------------------- /ymaps/geometry/pixel/Rectangle.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometry.pixel { 2 | 3 | interface RectangleStatic { 4 | new(coordinates:number[][] = null, metaData?:any):Rectangle; 5 | } 6 | interface Rectangle extends ymaps.interfaces.IPixelRectangleGeometry { 7 | } 8 | 9 | declare var Rectangle:RectangleStatic; 10 | } -------------------------------------------------------------------------------- /ymaps/geometryEditor/LineString.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometryEditor { 2 | 3 | interface LineStringStatic { 4 | new(geometry:interfaces.ILineStringGeometry, options:LineStringOptions = defaultLineStringOptions):LineString; 5 | } 6 | interface LineString extends interfaces.IGeometryEditor { 7 | state:ymaps.data.Manager; 8 | 9 | getModel():vow.Promise; // todo check error return; generics 10 | getModelSync():model.RootLineString; 11 | getView():vow.Promise; 12 | getViewSync():view.Path; 13 | startDrawing():vow.Promise; // todo check error return; generics 14 | startEditing():vow.Promise; // todo check error return; generics 15 | startFraming():vow.Promise; 16 | stopDrawing():void; 17 | stopEditing():void; 18 | stopFraming():void; 19 | } 20 | 21 | interface LineStringOptions { 22 | dblClickHandler?:Function; 23 | drawingCursor ?:boolean|string; // todo report about type error? @determine? 24 | drawOver ?:boolean; 25 | edgeLayout ?:Function; 26 | maxPoints ?:number; 27 | menuManager ?:Function; // todo determine 28 | vertexLayout ?:Function; 29 | } 30 | 31 | declare var LineString:LineStringStatic; 32 | declare var defaultLineStringOptions:LineStringOptions = { 33 | drawingCursor: "arrow", 34 | drawOver : true, 35 | maxPoints : Infinity 36 | } 37 | } -------------------------------------------------------------------------------- /ymaps/geometryEditor/Point.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometryEditor { 2 | 3 | interface PointStatic { 4 | new(geometry:interfaces.IPointGeometry, options:PointOptions = defaultPointOptions):Point; 5 | } 6 | interface Point extends interfaces.IGeometryEditor { 7 | state:ymaps.data.Manager; 8 | 9 | startDrawing():any; 10 | stopDrawing():any; 11 | } 12 | 13 | interface PointOptions { 14 | dblClickHandler?:Function; 15 | drawingCursor ?:boolean|string; // todo report about type error? 16 | drawOver ?:boolean; 17 | } 18 | 19 | declare var Point:PointStatic; 20 | declare var defaultPointOptions:PointOptions = { 21 | drawingCursor: "arrow", 22 | drawOver : true 23 | } 24 | 25 | } -------------------------------------------------------------------------------- /ymaps/geometryEditor/Polygon.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometryEditor { 2 | 3 | interface PolygonStatic { 4 | new(geometry:interfaces.IPolygonGeometry, options:PolygonOptions = defaultPolygonOptions):Polygon; 5 | } 6 | interface Polygon extends interfaces.IGeometryEditor { 7 | state:ymaps.data.Manager; 8 | 9 | getModel():vow.Promise; // todo error return; generics 10 | getModelSync():model.RootPolygon; 11 | getView():vow.Promise; // todo error return; generics 12 | getViewSync():view.MultiPath; 13 | startDrawing():vow.Promise; // todo error return; generics 14 | startEditing():vow.Promise; // todo error return; generics 15 | startFraming():vow.Promise; 16 | stopDrawing():any; 17 | stopEditing():any; 18 | stopFraming():any; 19 | } 20 | 21 | interface PolygonOptions { 22 | dblClickHandler?:Function; 23 | drawingCursor ?:boolean|string; // todo report about type error? @determine 24 | drawOver ?:boolean; 25 | edgeLayout ?:Function; 26 | maxPoints ?:number; 27 | menuManager ?:Function; // todo determine 28 | vertexLayout ?:Function; 29 | } 30 | 31 | declare var Polygon:PolygonStatic; 32 | declare var defaultPolygonOptions:PolygonOptions = { 33 | drawingCursor: "arrow", 34 | drawOver : true, 35 | maxPoints : Infinity 36 | } 37 | 38 | } -------------------------------------------------------------------------------- /ymaps/geometryEditor/model/ChildLineString.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometryEditor.model { 2 | interface ChildLineString extends interfaces.IGeometryEditorChildModel { 3 | getAllVerticesNumber():number; 4 | getEdgeModels():model.Edge[]; 5 | getIndex():number; 6 | getVertexModels():ChildVertex[]; 7 | setIndex(index:number):void; 8 | spliceVertices(start:number, deleteCount:number):number[][]; 9 | } 10 | } -------------------------------------------------------------------------------- /ymaps/geometryEditor/model/ChildLinearRing.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometryEditor.model { 2 | interface ChildLinearRing extends ChildLineString { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/geometryEditor/model/ChildVertex.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometryEditor.model { 2 | interface ChildVertex extends interfaces.IGeometryEditorChildModel { 3 | getAllVerticesNumber():number; 4 | getIndex():number; 5 | getNextVertex():ChildVertex; 6 | getPrevVertex():ChildVertex; 7 | setGlobalPixels(pixels:number[]):any; 8 | setIndex(index:number):any; 9 | setNextVertex(nextVertex:ChildVertex):any; 10 | setPrevVertex(prevVertex:ChildVertex):any; 11 | } 12 | } -------------------------------------------------------------------------------- /ymaps/geometryEditor/model/Edge.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometryEditor.model { 2 | interface Edge extends interfaces.IGeometryEditorRootModel { 3 | getNextVertex():ChildVertex; 4 | getPrevVertex():ChildVertex; 5 | setNextVertex(nextVertex:ChildVertex):any; 6 | setPrevVertex(prevVertex:ChildVertex):any; 7 | } 8 | } -------------------------------------------------------------------------------- /ymaps/geometryEditor/model/EdgeGeometry.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometryEditor.model { 2 | interface EdgeGeometry extends interfaces.IGeometry { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/geometryEditor/model/RootLineString.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometryEditor.model { 2 | 3 | interface RootLineString extends interfaces.IGeometryEditorRootModel { 4 | getAllVerticesNumber():number; 5 | getVertexModels():ChildVertex[]; 6 | spliceVertices(start:number, deleteCount:number):number[][]; 7 | } 8 | } -------------------------------------------------------------------------------- /ymaps/geometryEditor/model/RootPolygon.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometryEditor.model { 2 | 3 | interface RootPolygon extends interfaces.IGeometryEditorRootModel { 4 | getAllVerticesNumber():number; 5 | getPathModels():ChildLinearRing[]; 6 | splicePaths(start:number, deleteCount:number):number[][]; 7 | } 8 | } -------------------------------------------------------------------------------- /ymaps/geometryEditor/view/Edge.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometryEditor.view { 2 | 3 | interface Edge { 4 | getPlacemark():GeoObject; 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/geometryEditor/view/MultiPath.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometryEditor.view { 2 | 3 | interface MultiPath { 4 | getEdgePlacemarks():GeoObjectCollection; 5 | getPathViews():Path[]; 6 | getVertexPlacemarks():GeoObjectCollection; 7 | } 8 | } -------------------------------------------------------------------------------- /ymaps/geometryEditor/view/Path.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometryEditor.view { 2 | 3 | interface Path { 4 | getEdgePlacemarks():GeoObjectCollection; 5 | getEdgeViews():Edge[]; 6 | getVertexPlacemarks():GeoObjectCollection; 7 | getVertexViews():Vertex[]; 8 | } 9 | } -------------------------------------------------------------------------------- /ymaps/geometryEditor/view/Vertex.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.geometryEditor.view { 2 | 3 | interface Vertex { 4 | getPlacemark():GeoObject; 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/getZoomRange.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export function getZoomRange(mapType:string|MapType, coordinates:number[], customizable:interfaces.ICustomizable = null):vow.Promise; 3 | // todo determine all mapTypes? 4 | // todo report about customizable is not required 5 | // todo generics for Promise? 6 | } -------------------------------------------------------------------------------- /ymaps/graphics/style/color.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps.graphics.style { 2 | // todo how to use it? 3 | } -------------------------------------------------------------------------------- /ymaps/graphics/style/stroke.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps.graphics.style { 2 | // todo how to use it? 3 | } -------------------------------------------------------------------------------- /ymaps/hotspot/Layer.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.hotspot { 2 | 3 | interface LayerStatic { 4 | new(objectSource:interfaces.IHotspotObjectSource, options:LayerOptions = defaultLayerOptions):Layer; 5 | } 6 | interface Layer extends interfaces.IChildOnMap, interfaces.ICustomizable { 7 | balloon:layer.Balloon; 8 | hint:layer.Hint; 9 | 10 | getMap():Map; 11 | getObjectInPosition(coordinates:number[]):vow.Promise; 12 | getObjectSource():interfaces.IHotspotObjectSource; 13 | update():any; 14 | } 15 | 16 | interface LayerOptions { 17 | cursor ?:string; 18 | dontChangeCursor ?:boolean; 19 | hasBalloon ?:boolean; 20 | hasHint ?:boolean; 21 | interactivityModel?:string; // todo determine 22 | openBalloonOnClick?:boolean; 23 | openEmptyBalloon ?:boolean; // todo report about error in type declaration 24 | openEmptyHint ?:boolean; // todo report about error in type declaration 25 | openHintOnHover ?:boolean; 26 | pane ?:string|interfaces.IEventPane; // todo report about string type missed 27 | zIndex ?:number; 28 | } 29 | 30 | declare var Layer:LayerStatic; 31 | declare var defaultLayerOptions:LayerOptions = { 32 | cursor : "pointer", 33 | dontChangeCursor : false, 34 | hasBalloon : true, 35 | hasHint : true, 36 | interactivityModel: "default#layer", 37 | openBalloonOnClick: true, 38 | openEmptyBalloon : false, 39 | openEmptyHint : false, 40 | openHintOnHover : true, 41 | pane : "events" 42 | } 43 | } -------------------------------------------------------------------------------- /ymaps/hotspot/ObjectSource.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.hotspot { 2 | 3 | interface ObjectSourceStatic { 4 | new(tileUrlTemplate:string|Function, keyTemplate?:string|Function, options:ObjectSourceOptions = defaultObjectSourceOptions):ObjectSource 5 | } 6 | interface ObjectSource extends interfaces.IHotspotObjectSource { 7 | getKey(tileNumber:number[], zoom:number):string; 8 | getKeyTemplate():string; 9 | getTileUrl(tileNumber:number[], zoom:number):string; 10 | getTileUrlTemplate():string; 11 | parseResponse(layer:hotspot.Layer, res:any, callback:Function, tileNumber:number[], zoom:number):void; 12 | restrict(layer:hotspot.Layer, tileNumber:number[], zoom:number):boolean; 13 | setKeyTemplate(template:string):void; 14 | setTileUrlTemplate(template:string):void; 15 | } 16 | 17 | interface ObjectSourceOptions { 18 | bounds ?:number[][]; // todo report about type error; check type carefully 19 | maxZoom?:number; // todo report about type error 20 | minZoom?:number; // todo report about type error 21 | noCache?:boolean; 22 | } 23 | 24 | declare var ObjectSource:ObjectSourceStatic; 25 | declare var defaultObjectSourceOptions:ObjectSourceOptions = { 26 | bounds : null, 27 | maxZoom: 0, 28 | minZoom: 0, 29 | noCache: false 30 | } 31 | } -------------------------------------------------------------------------------- /ymaps/hotspot/layer/Balloon.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.hotspot.layer { 2 | 3 | interface BalloonStatic{ 4 | // todo determine? 5 | new(hotspotLayer?:any):Balloon; 6 | } 7 | interface Balloon extends interfaces.IBalloonManager { 8 | // todo check data:IDataManager ? 9 | // todo check options:IOptionManager ? 10 | // todo check generics ? 11 | open(position?:number[], data?:any, options?:any):vow.Promise; 12 | } 13 | 14 | declare var Balloon:BalloonStatic; 15 | } -------------------------------------------------------------------------------- /ymaps/hotspot/layer/Hint.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.hotspot.layer { 2 | 3 | interface HintStatic{ 4 | // todo determine? 5 | new(hotspotLayer?:any):Hint; 6 | } 7 | interface Hint extends interfaces.IHintManager { 8 | // todo check data:IDataManager ? 9 | // todo check options:IOptionManager ? 10 | // todo check generics ? 11 | open(position?:number[], data?:any, options?:any):vow.Promise; 12 | } 13 | 14 | declare var Hint:HintStatic; 15 | } -------------------------------------------------------------------------------- /ymaps/hotspot/layer/Object.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.hotspot.layer { 2 | 3 | interface ObjectStatic { 4 | // todo determine options? 5 | // todo check feature carefully 6 | new(shape:interfaces.IShape, feature:GeoObjectFeature, options?:any):Object; 7 | } 8 | interface Object extends interfaces.IHotspotLayerObject { 9 | 10 | } 11 | 12 | declare var Object:ObjectStatic; 13 | } -------------------------------------------------------------------------------- /ymaps/interactivityModel/storage.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interactivityModel { 2 | declare var storage:util.Storage; 3 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IBalloon.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IBalloon extends IPopup { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IBalloonLayout.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IBalloonLayout extends ILayout { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IBalloonManager.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IBalloonManager extends IPopupManager { 3 | autoPan():vow.Promise; 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IBalloonOwner.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IBalloonOwner { 3 | balloon:IBalloonManager; 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IBalloonSharingManager.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IBalloonSharingManager { 3 | // todo @report about missed interface 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IBaseCircleGeometry.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IBaseCircleGeometry extends IBaseGeometry, ICircleGeometryAccess { 3 | getType():"Circle"; 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IBaseGeometry.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IBaseGeometry extends IEventEmitter { 3 | getBounds():number[][]; 4 | getType():string; 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IBaseLineStringGeometry.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IBaseLineStringGeometry extends IBaseGeometry, ILineStringGeometryAccess { 3 | getType():"LineString"; 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IBaseLinearRingGeometry.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IBaseLinearRingGeometry extends IBaseGeometry, ILinearRingGeometryAccess { 3 | getType():"LinearRing"; 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IBasePointGeometry.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IBasePointGeometry extends IBaseGeometry, IPointGeometryAccess { 3 | getType():"Point"; 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IBasePolygonGeometry.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IBasePolygonGeometry extends IBaseGeometry, IPolygonGeometryAccess { 3 | getType():"Polygon"; 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IBaseRectangleGeometry.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IBaseRectangleGeometry extends IBaseGeometry, IPolygonGeometryAccess { 3 | getType():"Rectangle"; 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IBehavior.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IBehaviorStatic{ 4 | new(options?:any):IBehavior; 5 | } 6 | interface IBehavior extends IChildOnMap, ICustomizable { 7 | disable():any; 8 | enable():any; 9 | isEnabled():boolean; 10 | } 11 | } -------------------------------------------------------------------------------- /ymaps/interfaces/ICanvasTile.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface ICanvasTileStatic{ 4 | new(url:string):ICanvasTile; 5 | } 6 | interface ICanvasTile { 7 | events:IEventManager; 8 | 9 | destroy():any; 10 | isReady():boolean; 11 | renderAt(context:any, canvasSize:number[], bounds:number[][], animate?:boolean):any; 12 | } 13 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IChild.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IChild extends IEventEmitter { 3 | getParent():any; 4 | setParent(parent:any):IChild; 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IChildOnMap.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IChildOnMap extends ymaps.interfaces.IChild { 3 | getParent():ymaps.interfaces.IControlParent; 4 | setParent(parent:ymaps.interfaces.IControlParent):ymaps.interfaces.IChildOnMap; 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/ICircleGeometry.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface ICircleGeometry extends ICircleGeometryAccess, IGeometry { 3 | getType():"Circle"; 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/interfaces/ICircleGeometryAccess.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface ICircleGeometryAccess extends IFreezable { 3 | contains(position:number[]):boolean; 4 | getClosest(anchorPosition:number[]):ICircleGeometryAccessGetClosestResult; 5 | getCoordinates():number[]; 6 | setCoordinates(coordinates:number[]):ICircleGeometryAccess; 7 | getRadius():number; 8 | setRadius(radius:number):ICircleGeometryAccess; 9 | } 10 | 11 | interface ICircleGeometryAccessGetClosestResult { 12 | position:number[]; 13 | distance:number; 14 | } 15 | } -------------------------------------------------------------------------------- /ymaps/interfaces/ICollection.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface ICollection extends IEventEmitter { 4 | add(object:any):ICollection; 5 | remove(object:any):ICollection; 6 | getIterator():IIterator; 7 | } 8 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IContainerPane.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IContainerPane extends IPane, IPositioningContext { 4 | getViewport():number[][]; 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IControl.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IControlStatic{ 4 | new(options?:any):IControl; 5 | } 6 | interface IControl extends IChildOnMap { 7 | options:IOptionManager; 8 | 9 | getParent():IControlParent; 10 | setParent(parent:IControlParent):IControl; // todo report about typo in official docs 11 | } 12 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IControlParent.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IControlParent extends ymaps.interfaces.IParentOnMap { 3 | state:ymaps.interfaces.IDataManager; 4 | 5 | getChildElement(child:ymaps.interfaces.IControl):vow.Promise; 6 | } 7 | } -------------------------------------------------------------------------------- /ymaps/interfaces/ICoordSystem.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface ICoordSystem { 3 | getDistance(point1:number[], point2:number[]):number; 4 | solveDirectProblem(startPoint:number[], direction:number[], distance:number):ICoordSystemSolveProblemResult; 5 | solveInverseProblem(startPoint:number[], endPoint:number[], reverseDirection:boolean = false):ICoordSystemSolveProblemResult; 6 | } 7 | 8 | interface ICoordSystemSolveProblemResult { 9 | startPoint :number[]; 10 | startDirection:number[]; 11 | endPoint :number[]; 12 | endDirection :number[]; 13 | distance :number; 14 | pathFunction :(part:number) => ICoordSystemSolveProblemResultPathFunctionResult; 15 | } 16 | interface ICoordSystemSolveProblemResultPathFunctionResult { 17 | point :number[]; 18 | direction:number[]; 19 | } 20 | } -------------------------------------------------------------------------------- /ymaps/interfaces/ICopyrightsAccessor.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface ICopyrightsAccessor extends ICopyrightsProvider { 4 | 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/ICopyrightsProvider.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface ICopyrightsProvider extends IEventEmitter { 4 | remove():any; 5 | getCopyrights(coordinates:number[], zoom:number):vow.Promise; 6 | setCopyrights(copyrights:string|HTMLElement|string[]|HTMLElement[]):any; 7 | } 8 | } -------------------------------------------------------------------------------- /ymaps/interfaces/ICustomizable.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface ICustomizable { 3 | options:IOptionManager; 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IDataManager.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IDataManager extends IEventEmitter { 3 | // todo @report about defaultValue is not required? 4 | // todo in https://tech.yandex.ru/maps/doc/jsapi/2.1/ref/reference/data.Manager-docpage/#get it is not 5 | get(path:string, defaultValue?:any):any; 6 | } 7 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IDomEvent.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IDomEventStatic{ 4 | new(originalEvent:any):IDomEvent; 5 | } 6 | interface IDomEvent extends IEvent { 7 | get(name:string):any; 8 | getSourceEvent():IDomEvent; 9 | preventDefault():any; 10 | stopImmediatePropagation():any; 11 | stopPropagation():any; 12 | } 13 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IDomEventEmitter.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IDomEventEmitter extends IEventEmitter { 3 | events:IEventManager; 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IDomTile.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IDomTileStatic{ 4 | new(url:string):IDomTile; 5 | } 6 | interface IDomTile { 7 | event:IEventManager; 8 | 9 | destroy():any; 10 | isReady():boolean; 11 | renderAt(context:HTMLElement, clientBounds:number[][], animate:boolean):any; 12 | } 13 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IEvent.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IEvent { 4 | allowMapEvent():any; 5 | callMethod(name:string):any; 6 | get(name:string):any; 7 | getSourceEvent():IEvent; 8 | isDefaultPrevented():boolean; 9 | isImmediatePropagationStopped():boolean; 10 | isMapEventAllowed():boolean; 11 | isPropagationStopped():boolean; 12 | preventDefault():any; 13 | stopImmediatePropagation():any; 14 | stopPropagation():any; 15 | } 16 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IEventController.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IEventController { 4 | onStartListening(events:IEventManager, type:string):any; 5 | onStopListening(events:IEventManager, type:string):any; 6 | } 7 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IEventEmitter.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IEventEmitter { 3 | events:IEventManager; 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IEventGroup.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IEventGroup { 3 | add(types:string|string[], callback:Function, context?:any, priority:number = 0):IEventGroup; 4 | remove(types:string|string[], callback:Function, context?:any, priority:number = 0):IEventGroup; 5 | removeAll():IEventGroup; 6 | } 7 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IEventManager.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IEventManager { 3 | add(types:string|string[], callback:Function, context?:any, priority:number = 0):IEventManager; 4 | remove(types:string|string[], callback:Function, context?:any, priority:number = 0):IEventManager; 5 | fire(type:string, event?:ymaps.Event|any):IEventManager; 6 | group():IEventGroup; 7 | getParent():IEventManager; 8 | setParent(parent:IEventManager):IEventManager; 9 | } 10 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IEventPane.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IEventPane extends IDomEventEmitter, IPane { 4 | 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IEventTrigger.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IEventTrigger { 3 | fire(type:string, eventObject?:IEvent|any):IEventTrigger; 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IEventWorkflowController.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IEventWorkflowController extends IEventController { 4 | onAfterEventFiring(events:IEventManager, type:string, event?:IEvent):any; 5 | onBeforeEventFiring(events:IEventManager, type:string, event?:IEvent):any; 6 | } 7 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IExpandableControlLayout.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IExpandableControlLayout extends ILayout { 4 | onAfterEventFiring(events:IEventManager, type:string, event?:IEvent):any; 5 | onBeforeEventFiring(events:IEventManager, type:string, event?:IEvent):any; 6 | } 7 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IFreezable.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IFreezable { 3 | events:ymaps.interfaces.IEventManager; 4 | 5 | freeze():IFreezable; 6 | unfreeze():IFreezable; 7 | isFrozen():boolean; 8 | 9 | } 10 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IGeoObject.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IGeoObject extends IChildOnMap, ICustomizable, IDomEventEmitter, IParentOnMap { 3 | geometry:IGeometry; 4 | properties:IDataManager; 5 | state:IDataManager; 6 | 7 | getOverlay():vow.Promise; 8 | getOverlaySync():IOverlay; 9 | } 10 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IGeoObjectCollection.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IGeoObjectCollection extends ICustomizable, IEventEmitter, IParentOnMap { 4 | add(child:IGeoObject, index?:number):IGeoObjectCollection; 5 | each(callback:Function, context?:any):any; 6 | get(index:number):IGeoObject; 7 | getBounds():number[][]; 8 | getIterator():IIterator; 9 | getLength():number; 10 | getPixelBounds():number[][]; 11 | indexOf(object:any):number; 12 | remove(child:IGeoObject):IGeoObjectCollection; 13 | removeAll():IGeoObjectCollection; 14 | set(index:number, child:IGeoObject):IGeoObjectCollection; 15 | splice(index:number, number:number):IGeoObjectCollection; 16 | } 17 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IGeoObjectPopupData.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | // todo wtf is that and for that is this needed? 4 | interface IGeoObjectPopupData { 5 | geometry:IGeometry; 6 | geoObject:IGeoObject; 7 | properties:IDataManager; 8 | userData:any; 9 | } 10 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IGeoObjectSequence.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IGeoObjectSequence extends ICustomizable, IEventEmitter, IParentOnMap { 3 | each(callback:Function, context?:any):any; 4 | get(index:number):IGeoObject; 5 | getBounds():number[][]; 6 | getIterator():IIterator; 7 | getLength():number; 8 | getPixelBounds():number[][]; 9 | indexOf(object:IGeoObject):number; 10 | } 11 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IGeocodeProvider.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IGeocodeProvider { 4 | geocode(request:string, options?:IGeocodeProviderGeocodeOptions):vow.Promise; 5 | suggest(request:string, options?:IGeocodeProviderSuggestOptions):vow.Promise; 6 | } 7 | 8 | interface IGeocodeProviderGeocodeOptions { 9 | boundedBy?:number[][]; 10 | results?:number; 11 | skip?:number; 12 | strictBounds?:boolean; 13 | } 14 | interface IGeocodeProviderSuggestOptions { 15 | boundedBy?:number[][]; 16 | results?:number; 17 | strictBounds?:boolean; 18 | } 19 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IGeometry.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IGeometry extends IBaseGeometry, ICustomizable { 3 | getBounds():number[][]; 4 | getPixelGeometry(options?:any):IPixelGeometry; 5 | getMap():ymaps.Map; 6 | setMap(map:ymaps.Map):any; 7 | } 8 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IGeometryEditor.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IGeometryEditor extends ICustomizable, IEventEmitter { 3 | geometry:IGeometry; 4 | state:IDataManager; 5 | 6 | startEditing():any; 7 | stopEditing():any; 8 | } 9 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IGeometryEditorChildModel.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IGeometryEditorChildModelStatic extends IGeometryEditorModelStatic{ 4 | new(geometry:IBaseGeometry, editor:IGeometryEditor, pixels:number[], parent:IGeometryEditorModel):IGeometryEditorChildModel; 5 | } 6 | interface IGeometryEditorChildModel extends IGeometryEditorModel { 7 | editor:IGeometryEditor; 8 | geometry:IBaseGeometry; 9 | 10 | getParent():IGeometryEditorModel; 11 | setPixels(pixels:number[]):any; 12 | } 13 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IGeometryEditorModel.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IGeometryEditorModelStatic{ 4 | new(geometry:IBaseGeometry, editor:IGeometryEditor):IGeometryEditorModel; 5 | } 6 | interface IGeometryEditorModel extends IEventEmitter { 7 | destroy():any; 8 | getPixels():number[]; 9 | } 10 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IGeometryEditorRootModel.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IGeometryEditorRootModelStatic extends IGeometryEditorModelStatic{ 4 | new(geometry:IBaseGeometry, editor:IGeometryEditor):IGeometryEditorRootModel; 5 | } 6 | interface IGeometryEditorRootModel extends IGeometryEditorModel { 7 | } 8 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IGeometryJson.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IGeometryJson { 3 | type:string; 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IGroupControlLayout.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IGroupControlLayout extends ILayout { 4 | getChildContainerElement():any; 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IHint.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IHint extends IPopup { 4 | 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IHintManager.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IHintManager extends IPopupManager { 3 | 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IHintOwner.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IHintOwner { 4 | hint:IHintManager; 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IHintSharingManager.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IHintSharingManager { 4 | // todo report about missed interface 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IHotspot.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IHotspot extends IDomEventEmitter { 4 | getShape():IShape; 5 | setShape(shape:IShape):any; 6 | getZIndex():number; 7 | setZIndex(zIndex:number):any; 8 | } 9 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IHotspotContainer.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IHotspotContainer { 4 | // todo report about undefined interface 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IHotspotLayerObject.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IHotspotLayerObject extends ICustomizable, IDomEventEmitter { 3 | getHotspot():IHotspot; 4 | getGeometry():any; 5 | setGeometry(geometry:any):any; 6 | getId():number; 7 | setId(id:number):any; 8 | getProperties():any; 9 | setProperties(properties:any):any; 10 | } 11 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IHotspotObjectSource.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IHotspotObjectSource extends ICustomizable { 3 | cancelLastRequest():any; 4 | requestObjects(layer:hotspot.Layer, tileNumber:number[], zoom:number, callback:Function):any; 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IHotspotShape.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IHotspotShape extends ICustomizable, IDomEventEmitter { 4 | getContainer():IHotspotContainer; // todo undefined interface? 5 | setContainer(container:IHotspotContainer):any; // todo undefined interface? 6 | getGeometry():any; 7 | setGeometry(geometry:any):any; 8 | getId():number; 9 | setId(id:number):any; 10 | getProperties():any; 11 | setProperties(properties:any):any; 12 | getShape():IShape; 13 | setShape(shape:IShape):any; 14 | } 15 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IIterator.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IIterator {// todo generics? 4 | STOP_ITERATION:any; 5 | 6 | getNext():any; 7 | } 8 | } -------------------------------------------------------------------------------- /ymaps/interfaces/ILayer.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface ILayer extends IChildOnMap, ICustomizable, IEventEmitter { 4 | getBrightness():number; 5 | getCopyrights(coordinates:number[], zoom:number):vow.Promise; 6 | getZoomRange(point:number[]):vow.Promise; 7 | } 8 | } -------------------------------------------------------------------------------- /ymaps/interfaces/ILayout.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface ILayoutStatic{ 4 | new (data:any):ILayout; 5 | } 6 | interface ILayout extends IDomEventEmitter { 7 | destroy():any; 8 | isEmpty():boolean; 9 | getShape():IShape; 10 | getData():any; 11 | setData(data:any):any; 12 | getParentElement():HTMLElement; 13 | setParentElement(parent:HTMLElement):any; 14 | } 15 | } -------------------------------------------------------------------------------- /ymaps/interfaces/ILineStringGeometry.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface ILineStringGeometry extends IGeometry, ILineStringGeometryAccess { 3 | getType():"LineString"; 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/interfaces/ILineStringGeometryAccess.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface ILineStringGeometryAccess extends IFreezable { 3 | getChildGeometry(index:number):IPointGeometryAccess; 4 | getClosest(anchorPosition:number[]):ILineStringGeometryAccessGetClosestResult; 5 | getCoordinates():number[][]; 6 | setCoordinates(coordinates:number[][]):ILineStringGeometryAccess; 7 | getLength():number; 8 | insert(index:number, coordinates:number[]):ILineStringGeometryAccess; 9 | remove(index:number):number[]; 10 | get(index:number):number[]; 11 | set(index:number, coordinates:number[]):ILineStringGeometryAccess; 12 | splice(index:number, number:number):number[][]; 13 | } 14 | 15 | interface ILineStringGeometryAccessGetClosestResult { 16 | position:number[]; 17 | distance:number; 18 | closestPointIndex:number; 19 | nextPointIndex?:number; 20 | prevPointIndex?:number; 21 | } 22 | } -------------------------------------------------------------------------------- /ymaps/interfaces/ILinearRingGeometryAccess.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface ILinearRingGeometryAccess extends IFreezable { 3 | contains(position:number[]):boolean; 4 | get(index:number):number[]; 5 | set(index:number, coordinates:number[]):ILinearRingGeometryAccess; 6 | getCoordinates():number[][]; 7 | setCoordinates(coordinates:number[][]):ILinearRingGeometryAccess; 8 | getFillRule():string; // todo determine? 9 | setFillRule(fillRule:string):ILinearRingGeometryAccess; // todo determine? 10 | insert(index:number, coordinates:number):ILinearRingGeometryAccess; 11 | remove(index:number):number[]; 12 | splice(index:number, number:number):number[][]; 13 | getChildGeometry(index:number):IPointGeometryAccess; 14 | getClosest(anchorPosition:number[]):ILinearRingGeometryAccessGetClosestResult; 15 | getLength():number; 16 | } 17 | 18 | interface ILinearRingGeometryAccessGetClosestResult { 19 | position:number[]; 20 | distance:number; 21 | closestPointIndex:number; 22 | nextPointIndex?:number; 23 | prevPointIndex?:number; 24 | } 25 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IMapAction.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IMapAction extends IEventEmitter { 4 | begin(mapActionManager:map.action.Manager):any; 5 | end():any; 6 | } 7 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IMapObjectCollection.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IMapObjectCollection extends ICollection, ICustomizable, IParentOnMap { 4 | 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IMapState.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IMapState { 4 | applyToMap(map:ymaps.Map):vow.Promise; 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IMultiRouteModelJson.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IMultiRouteModelJson { 3 | params:IMultiRouteParams; 4 | referencePoints:IMultiRouteReferencePoint[]; 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IMultiRouteParams.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IMultiRouteParams { 4 | avoidTrafficJams?:boolean; 5 | boundedBy ?:number[][]; 6 | results ?:number; 7 | routingMode ?:"auto"|"masstransit"; 8 | searchCoordOrder?:"longlat"|"latlong"; 9 | strictBounds ?:boolean; 10 | viaIndexes ?:number[]; 11 | } 12 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IMultiRouteReferencePoint.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IMultiRouteReferencePoint { 4 | //todo check constructor 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IMultiTouchEvent.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IMultiTouchEvent { 4 | //todo report about missing docs 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IOptionManager.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | // todo why it does not extends ymaps.interfaces.IDataManager? 4 | // todo @report about extending? 5 | interface IOptionManager extends ymaps.interfaces.IDataManager, IChild, IEventEmitter, IFreezable { 6 | getAll():any; 7 | getNative(key:string):any; 8 | resolve(key:string, name?:string):any; 9 | getName():string; 10 | setName(name:string):any; 11 | getParent():IOptionManager; 12 | // todo @report about type in docs? 13 | // todo maybe it is return ymaps.interfaces.IOptionManager instead of ymaps.interfaces.IChild? 14 | setParent(parent:IOptionManager):IOptionManager; 15 | } 16 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IOverlay.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IOverlay extends ICustomizable, IDomEventEmitter { 4 | getData():any; 5 | getGeometry():IPixelGeometry; 6 | getMap():ymaps.Map; 7 | getShape():IShape; 8 | isEmpty():boolean; 9 | setData(data:any):any; 10 | setGeometry(geometry:IPixelGeometry):any; 11 | setMap(map:ymaps.Map):any; 12 | } 13 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IPane.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IPane extends IEventEmitter { 4 | destroy():any; 5 | getElement():HTMLElement; 6 | getMap():ymaps.Map; 7 | getOverflow():"visible"|"hidden"; 8 | getZIndex():number; 9 | } 10 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IParentOnMap.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IParentOnMap { 3 | getMap():ymaps.Map; 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IPixelCircleGeometry.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IPixelCircleGeometry extends IPixelGeometry { 3 | getCoordinates():number[]; 4 | getRadius():number; 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IPixelGeometry.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IPixelGeometry extends IBaseGeometry { 3 | equals(geometry:IPixelGeometry):boolean; 4 | getMetaData():any; 5 | scale(factor:number):IPixelGeometry; 6 | shift(offset:number[]):IPixelGeometry; 7 | } 8 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IPixelLineStringGeometry.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IPixelLineStringGeometry extends IPixelGeometry { 3 | getClosest(anchorPosition:number[]):IPixelLineStringGeometryGetClosestResult; 4 | getCoordinates():number[][]; 5 | getLength():number; 6 | } 7 | 8 | interface IPixelLineStringGeometryGetClosestResult { 9 | position:number[]; 10 | distance:number; 11 | closestPointIndex:number; 12 | nextPointIndex?:number; 13 | prevPointIndex?:number; 14 | } 15 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IPixelMultiPolygonGeometry.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IPixelMultiPolygonGeometry extends IPixelGeometry { 4 | contains(position:number[]):boolean; 5 | getClosest(anchorPosition:number[]):IPixelMultiPolygonGeometryGetClosestResult; 6 | getCoordinates():number[][][][]; 7 | getFillRule():ymaps.FillRules; 8 | getLength():number; 9 | } 10 | interface IPixelMultiPolygonGeometryGetClosestResult { 11 | position:number[]; 12 | distance:number; 13 | closestPointIndex:number; 14 | nextPointIndex?:number; 15 | prevPointIndex?:number; 16 | pathIndex:number; 17 | } 18 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IPixelPointGeometry.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IPixelPointGeometry extends IPixelGeometry { 3 | getCoordinates():number[]; 4 | getType():string; // todo determine? Point for sure 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IPixelPolygonGeometry.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IPixelPolygonGeometry extends IPixelGeometry { 4 | contains(position:number[]):boolean; 5 | getClosest(anchorPosition:number[]):IPixelPolygonGeometryGetClosestResult; 6 | getCoordinates():number[][][]; 7 | getFillRule():ymaps.FillRules; 8 | getLength():number; 9 | getType():string; // todo determine? Polygon for sure 10 | } 11 | 12 | interface IPixelPolygonGeometryGetClosestResult { 13 | position:number[]; 14 | distance:number; 15 | closestPointIndex:number; 16 | nextPointIndex?:number; 17 | prevPointIndex?:number; 18 | pathIndex:number; 19 | } 20 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IPixelRectangleGeometry.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IPixelRectangleGeometry extends IPixelGeometry { 4 | getClosest(anchorPosition:number[]):IPixelRectangleGeometryGetClosestResult; 5 | getCoordinates():number[][]; 6 | getType():string; // todo determine? Rectangle for sure 7 | } 8 | 9 | interface IPixelRectangleGeometryGetClosestResult { 10 | position:number[]; 11 | distance:number; 12 | closestPointIndex:number; 13 | nextPointIndex?:number; 14 | prevPointIndex?:number; 15 | pathIndex:number; 16 | } 17 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IPointGeometry.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IPointGeometry extends IGeometry, IPointGeometryAccess { 3 | getType():"Point"; 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IPointGeometryAccess.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IPointGeometryAccess { 4 | getCoordinates():number[]; 5 | setCoordinates(coordinates:number[]):IPointGeometryAccess; 6 | } 7 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IPolygonGeometry.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IPolygonGeometry extends IGeometry, IPolygonGeometryAccess { 3 | getType():"Polygon"; 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IPolygonGeometryAccess.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IPolygonGeometryAccess extends IFreezable { 4 | contains(position:number[]):boolean; 5 | get(index:number):number[][]; 6 | getChildGeometry(index:number):ILinearRingGeometryAccess; // todo typo? 7 | getClosest(anchorPosition:number[]):IPolygonGeometryAccessGetClosestResult; 8 | getCoordinates():number[][]; 9 | getFillRule():string; // todo determine? 10 | getLength():number; 11 | insert(index:number, path:number[][]):IPolygonGeometryAccess; 12 | remove(index:number):IPolygonGeometryAccess; 13 | set(index:number, path:number[][]):IPolygonGeometryAccess; 14 | setCoordinates(coordinates:number[][][]):IPolygonGeometryAccess; 15 | setFillRule(fillRule:string):IPolygonGeometryAccess; // todo determine? 16 | splice(index:number, number:number):ILinearRingGeometryAccess[]; 17 | } 18 | 19 | interface IPolygonGeometryAccessGetClosestResult { 20 | position:number[]; 21 | distance:number; 22 | closestPointIndex:number; 23 | nextPointIndex?:number; 24 | prevPointIndex?:number; 25 | pathIndex:number; 26 | pathIndex:number; 27 | } 28 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IPopup.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IPopup extends ICustomizable, IEventEmitter { 4 | close(force?:boolean):vow.Promise; 5 | getData():any; // todo typo? 6 | getOverlay():vow.Promise; 7 | getOverlaySync():IOverlay; 8 | getPosition():any; // todo typo? 9 | isOpen():boolean; 10 | open(position?:number[], data?:string|HTMLElement|any):vow.Promise; 11 | setData(data:string|HTMLElement|any):vow.Promise; 12 | setPosition(position:number[]):vow.Promise; 13 | } 14 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IPopupManager.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface IPopupManager extends IEventEmitter { 3 | close(force?:boolean):vow.Promise; 4 | destroy():any; 5 | getData():any; // todo typo? 6 | getOptions():IOptionManager; 7 | getOverlay():vow.Promise; 8 | getOverlaySync():IOverlay; 9 | getPosition():any; // todo typo? 10 | isOpen():boolean; 11 | open(position?:number[], data?:string|HTMLElement|any, options?:any):vow.Promise; 12 | setData(data:string|HTMLElement|any):vow.Promise; 13 | setOptions(options:any):vow.Promise; 14 | setPosition(position:number[]):vow.Promise; 15 | } 16 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IPositioningContext.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IPositioningContext { 4 | fromClientPixels(clientPixelPoint:number[]):number[]; 5 | getZoom():number; 6 | toClientPixels(globalPixelPoint:number):number[]; 7 | } 8 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IProjection.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IProjection { 4 | getCoordSystem():ICoordSystem; 5 | isCycled():boolean[]; 6 | fromGlobalPixels(globalPixelPoint:number[], zoom:number):number[]; 7 | toGlobalPixels(coordPoint:number[], zoom:number):number[]; 8 | } 9 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IPromiseProvider.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IPromiseProvider { 4 | then(onResolve:Function, onReject:Function):IPromiseProvider; 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IRatioMap.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IRatioMap { 4 | // todo dictionary? 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IRectangleGeometry.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IRectangleGeometry extends IGeometry, IRectangleGeometryAccess { 4 | getType():"Rectangle"; 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IRectangleGeometryAccess.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IRectangleGeometryAccess extends IFreezable { 4 | contains(position:number[]):boolean; 5 | getClosest(anchorPosition:number[]):IRectangleGeometryAccessGetClosestResult; 6 | getCoordinates():number[][]; 7 | setCoordinates(coordinates:number[][]):IRectangleGeometryAccess; 8 | } 9 | 10 | interface IRectangleGeometryAccessGetClosestResult { 11 | position:number[]; 12 | distance:number; 13 | } 14 | } -------------------------------------------------------------------------------- /ymaps/interfaces/ISearchControlLayout.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface ISearchControlLayout extends IExpandableControlLayout { 4 | 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/ISearchProvider.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface ISearchProvider { 4 | search(request:string, options:ISearchProviderSearchOptions):vow.Promise; 5 | suggest(request:string, options:ISearchProviderSuggestOptions):vow.Promise; 6 | } 7 | 8 | interface ISearchProviderSearchOptions { 9 | boundedBy?:number[][]; 10 | results?:number; 11 | skip?:number; 12 | } 13 | interface ISearchProviderSuggestOptions { 14 | boundedBy?:number[][]; 15 | results?:number; 16 | strictBounds?:boolean; 17 | } 18 | } -------------------------------------------------------------------------------- /ymaps/interfaces/ISelectableControl.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | interface ISelectableControl extends IControl { 3 | select():any; 4 | deselect():any; 5 | isSelected():boolean; 6 | enable():any; 7 | disable():any; 8 | isEnabled():boolean; 9 | } 10 | } -------------------------------------------------------------------------------- /ymaps/interfaces/ISelectableControlLayout.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface ISelectableControlLayout extends ILayout { 4 | 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IShape.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IShape { 4 | contains(position:number[]):boolean; 5 | equals(shape:IShape):boolean; 6 | getBounds():number[][]; 7 | getGeometry():IPixelGeometry; 8 | getType():string; // todo determine? 9 | scale(factor:number):IShape; 10 | shift(offset:number[]):IShape; 11 | } 12 | } -------------------------------------------------------------------------------- /ymaps/interfaces/ISuggestProvider.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface ISuggestProvider { 4 | suggest(request:string, options:ISuggestProviderSuggestOptions):vow.Promise; 5 | } 6 | 7 | interface ISuggestProviderSuggestOptions { 8 | boundedBy?:number[][]; 9 | results?:number; 10 | } 11 | } -------------------------------------------------------------------------------- /ymaps/interfaces/ISuggestViewLayout.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface ISuggestViewLayout { // todo check extended 4 | 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/ITrafficControlLayout.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface ITrafficControlLayout extends IExpandableControlLayout { 4 | 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/interfaces/ITrafficProvider.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface ITrafficProvider extends ICustomizable, IEventEmitter { 4 | getMap():ymaps.Map; 5 | setMap(map:ymaps.Map):any; 6 | } 7 | } -------------------------------------------------------------------------------- /ymaps/interfaces/IZoomControlLayout.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.interfaces { 2 | 3 | interface IZoomControlLayout extends ILayout { 4 | 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/layer/storage.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.layer { 2 | declare var storage:util.Storage; 3 | } -------------------------------------------------------------------------------- /ymaps/layer/tile/CanvasTile.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.layer.tile { 2 | 3 | interface CanvasTileStatic extends ymaps.interfaces.ICanvasTileStatic{ 4 | new(url:string, options?:CanvasTileOptions):CanvasTile; 5 | } 6 | interface CanvasTile extends interfaces.ICanvasTile { 7 | } 8 | 9 | interface CanvasTileOptions { 10 | notFoundTile?:string; 11 | tileAnimationDuration?:number; 12 | } 13 | 14 | declare var CanvasTile:CanvasTileStatic; 15 | } -------------------------------------------------------------------------------- /ymaps/layer/tile/DomTile.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.layer.tile { 2 | 3 | interface DomTileStatic extends ymaps.interfaces.IDomTileStatic{ 4 | new(url:string, options?:DomTileOptions):DomTile 5 | } 6 | interface DomTile extends interfaces.IDomTile { 7 | } 8 | 9 | interface DomTileOptions { 10 | notFoundTile?:string; 11 | tileAnimationDuration?:number; 12 | } 13 | 14 | declare var DomTile:DomTileStatic; 15 | } -------------------------------------------------------------------------------- /ymaps/layer/tileContainer/CanvasContainer.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.layer.tileContainer { 2 | 3 | interface CanvasContainerStatic { 4 | new(layer:interfaces.ILayer, options:CanvasContainerOptions = defaultCanvasContainerOptions):CanvasContainer 5 | } 6 | interface CanvasContainer extends interfaces.IChildOnMap { 7 | getMap():Map; 8 | getTile(tileNumber:number[], tileZoom:number, priority:number):interfaces.ICanvasTile; 9 | } 10 | 11 | interface CanvasContainerOptions { 12 | notFoundTile ?:string; 13 | tileClass ?:string|interfaces.ICanvasTile; // todo report about string type missed 14 | tileTransparent?:boolean; 15 | } 16 | 17 | declare var CanvasContainer:CanvasContainerStatic; 18 | declare var defaultCanvasContainerOptions:CanvasContainerOptions = { 19 | tileClass : "default#canvas", 20 | tileTransparent: false 21 | } 22 | } -------------------------------------------------------------------------------- /ymaps/layer/tileContainer/DomContainer.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.layer.tileContainer { 2 | 3 | interface DomContainerStatic { 4 | new(layer:interfaces.ILayer, options:DomContainerOptions = defaultDomContainerOptions):DomContainer 5 | } 6 | interface DomContainer extends interfaces.IChildOnMap { 7 | getMap():Map; 8 | getTile(tileNumber:number[], tileZoom:number, priority:number):interfaces.IDomTile; 9 | } 10 | 11 | interface DomContainerOptions { 12 | notFoundTile ?:string; 13 | tileClass ?:string|interfaces.IDomTile; // todo report about string type missed 14 | tileTransparent?:boolean; 15 | } 16 | 17 | declare var DomContainer:DomContainerStatic; 18 | declare var defaultDomContainerOptions:DomContainerOptions = { 19 | tileClass : "default#dom", 20 | tileTransparent: false, 21 | } 22 | } -------------------------------------------------------------------------------- /ymaps/layout/Image.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.layout { 2 | 3 | interface ImageStatic extends ymaps.interfaces.ILayoutStatic{ 4 | new(data:ImageData):Image; 5 | } 6 | interface Image extends interfaces.ILayout { 7 | } 8 | 9 | // todo wtf is ILayout in docs? 10 | interface ImageData { 11 | options?:ImageDataOptions; 12 | } 13 | // todo wtf is ILayout in docs? 14 | interface ImageDataOptions { 15 | imageClipRect?:number[][]; 16 | imageHref ?:string; 17 | imageOffset ?:number[]; 18 | imageSize ?:number[]; 19 | shape ?:interfaces.IShape|Object; 20 | } 21 | 22 | declare var Image:ImageStatic; 23 | } -------------------------------------------------------------------------------- /ymaps/layout/ImageWithContent.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.layout { 2 | 3 | interface ImageWithContentStatic extends ImageStatic{ 4 | new(data:ImageWithContentData):ImageWithContent; 5 | } 6 | interface ImageWithContent extends Image { 7 | } 8 | 9 | interface ImageWithContentData { 10 | options?:ImageWithContentDataOptions; 11 | } 12 | interface ImageWithContentDataOptions { 13 | contentLayout?:string|Function; // todo ILayout constructor? 14 | contentOffset?:number[]; 15 | contentSize ?:number[]; 16 | } 17 | 18 | declare var ImageWithContent:ImageWithContentStatic; 19 | } -------------------------------------------------------------------------------- /ymaps/layout/storage.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.layout { 2 | declare var storage:util.AsyncStorage; 3 | } -------------------------------------------------------------------------------- /ymaps/layout/templateBased/Base.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.layout.templateBased { 2 | 3 | interface BaseStatic extends ymaps.interfaces.ILayoutStatic{ 4 | new(data:any):Base 5 | } 6 | interface Base extends interfaces.ILayout { 7 | build():void; 8 | clear():void; 9 | getShape():interfaces.IShape|undefined; 10 | rebuild():void; 11 | } 12 | 13 | declare var Base:BaseStatic; 14 | } -------------------------------------------------------------------------------- /ymaps/map/Balloon.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.map { 2 | 3 | interface BalloonStatic { 4 | new(map:Map):Balloon 5 | } 6 | interface Balloon extends ymaps.interfaces.IBalloonManager, ymaps.interfaces.IBalloonSharingManager { 7 | } 8 | 9 | declare var Balloon:BalloonStatic; 10 | } -------------------------------------------------------------------------------- /ymaps/map/Container.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.map { 2 | 3 | interface ContainerStatic { 4 | new(parentElement:string|HTMLElement):Container; 5 | } 6 | interface Container extends interfaces.IDomEventEmitter { 7 | enterFullscreen():any; 8 | exitFullscreen():any; 9 | fitToViewport(preservePixelPosition?:boolean):any; 10 | getElement():HTMLElement; 11 | getOffset():number[]; 12 | getSize():number[]; 13 | isFullscreen():boolean; 14 | } 15 | 16 | declare var Container:ContainerStatic; 17 | } -------------------------------------------------------------------------------- /ymaps/map/Converter.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.map { 2 | 3 | interface ConverterStatic { 4 | new(map:Map):Converter; 5 | } 6 | interface Converter { 7 | globalToPage(globalPixelPoint:number[]):number[]; 8 | pageToGlobal(globalPixelPoint:number[]):number[]; 9 | } 10 | 11 | declare var Converter:ConverterStatic; 12 | } -------------------------------------------------------------------------------- /ymaps/map/Copyrights.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.map { 2 | 3 | interface CopyrightsStatic { 4 | new(map:Map):Copyrights; 5 | } 6 | interface Copyrights { 7 | events:event.Manager; 8 | 9 | add(customCopyrights:string|string[]|HTMLElement|HTMLElement[]):interfaces.ICopyrightsAccessor; 10 | addProvider(provider:interfaces.ICopyrightsProvider):Copyrights; 11 | get(point:number[], zoom:number):vow.Promise; 12 | removeProvider(provider:interfaces.ICopyrightsProvider):Copyrights; 13 | } 14 | 15 | declare var Copyrights:CopyrightsStatic; 16 | } -------------------------------------------------------------------------------- /ymaps/map/GeoObjects.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.map { 2 | 3 | interface GeoObjectsStatic { 4 | new(map:Map, options:GeoObjectsOptions = defaultGeoObjectsOptions):GeoObjects; // todo determine options 5 | } 6 | interface GeoObjects extends interfaces.IGeoObjectCollection { 7 | add(child:interfaces.IGeoObject, index?:number):GeoObjects; 8 | // todo check is it really void 9 | // todo (item?:IGeoObject) => any? 10 | each(callback:Function, context?:any):void; 11 | remove(child:interfaces.IGeoObject):GeoObjects; 12 | removeAll():GeoObjects; 13 | set(index:number, child:interfaces.IGeoObject):GeoObjects; 14 | // todo generics? 15 | // todo check third parameter? 16 | // todo report about ambiguous declaration 17 | splice(index:number, number:number):GeoObjectCollection; 18 | } 19 | 20 | interface GeoObjectsOptions { 21 | 22 | } 23 | 24 | declare var GeoObjects:GeoObjectsStatic; 25 | declare var defaultGeoObjectsOptions:GeoObjectsOptions = {} 26 | } -------------------------------------------------------------------------------- /ymaps/map/Hint.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.map { 2 | 3 | interface HintStatic { 4 | new(map:Map):Hint; 5 | } 6 | interface Hint extends interfaces.IHintManager, interfaces.IHintSharingManager { 7 | } 8 | 9 | declare var Hint:HintStatic; 10 | } -------------------------------------------------------------------------------- /ymaps/map/ZoomRange.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.map { 2 | 3 | interface ZoomRangeStatic { 4 | new(map:Map, constraints:number[]):ZoomRange; 5 | } 6 | interface ZoomRange extends interfaces.IEventEmitter { 7 | get():vow.Promise; // todo generics? number[] 8 | getCurrent():number[]; 9 | } 10 | 11 | declare var ZoomRange:ZoomRangeStatic; 12 | } -------------------------------------------------------------------------------- /ymaps/map/action/Continuous.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.map.action { 2 | 3 | interface Continuous extends interfaces.IMapAction { 4 | isActive():boolean; 5 | tick(tick:ContinuousTickOptions /* = defaultContinuousTickOptions */):Continuous; 6 | } 7 | 8 | interface ContinuousTickOptions { 9 | duration?:number; 10 | globalPixelCenter?:number[]; 11 | pixelOffset?:number[]; 12 | timingFunction?:string; 13 | zoom?:number; 14 | } 15 | 16 | declare var defaultContinuousTickOptions:ContinuousTickOptions = { 17 | duration : 0, 18 | timingFunction: "linear" 19 | } 20 | } -------------------------------------------------------------------------------- /ymaps/map/action/Manager.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.map.action { 2 | 3 | interface ManagerStatic { 4 | new(map:Map):Manager; 5 | } 6 | interface Manager extends interfaces.IEventEmitter { 7 | breakTick():any; 8 | execute(action:interfaces.IMapAction):any; 9 | getCurrentState():ManagerCurrentState; 10 | getMap():Map; 11 | setCorrection(userFunction:Function):any; // todo (tick) => tick ? 12 | stop():any; 13 | } 14 | 15 | interface ManagerCurrentState { 16 | isTicking ?:boolean; 17 | tickProgress ?:number; // todo check 18 | zoom ?:number; 19 | globalPixelCenter?:number[]; 20 | } 21 | 22 | declare var Manager:ManagerStatic; 23 | } -------------------------------------------------------------------------------- /ymaps/map/action/Single.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.map.action { 2 | 3 | interface SingleStatic { 4 | new(tick:SingleTickOptions):Single; 5 | } 6 | interface Single extends interfaces.IMapAction { 7 | isActive():boolean; 8 | } 9 | 10 | interface SingleTickOptions { 11 | callback ?:Function; 12 | center ?:number; 13 | checkZoomRange ?:boolean; 14 | duration ?:number; 15 | globalPixelCenter?:number[]; 16 | timingFunction ?:string; 17 | zoom ?:number; 18 | } 19 | 20 | declare var Single:SingleStatic; 21 | declare var defaultSingleTickOptions:SingleTickOptions = { 22 | checkZoomRange: false, 23 | duration : 0, 24 | timingFunction: "linear", 25 | } 26 | } -------------------------------------------------------------------------------- /ymaps/map/addon/balloon.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.map.addon { 2 | 3 | interface Balloon { 4 | // todo check map parameter? 5 | get():interfaces.IPopupManager; 6 | } 7 | 8 | declare var balloon:Balloon; 9 | } -------------------------------------------------------------------------------- /ymaps/map/addon/hint.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.map.addon { 2 | 3 | interface Hint { 4 | // todo check map parameter? 5 | get():interfaces.IPopupManager; 6 | } 7 | 8 | declare var hint:Hint; 9 | } -------------------------------------------------------------------------------- /ymaps/map/behavior/Manager.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.map.behavior { 2 | 3 | interface ManagerStatic { 4 | // todo determine parameters? 5 | new(map:Map, behaviors:string|string[], options:ManagerOptions = defaultManagerOptions):Manager; 6 | } 7 | interface Manager extends interfaces.ICustomizable, interfaces.IEventEmitter, interfaces.IParentOnMap { 8 | disable(behaviors:string|string[]):Manager; 9 | enable(behaviors:string|string[]):Manager; 10 | get(behaviorName:string):interfaces.IBehavior; 11 | isEnabled(behaviorName:string):boolean; 12 | } 13 | 14 | interface ManagerOptions { 15 | 16 | } 17 | 18 | declare var Manager:ManagerStatic; 19 | declare var defaultManagerOptions:ManagerOptions = {} 20 | } -------------------------------------------------------------------------------- /ymaps/map/layer/Manager.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.map.layer { 2 | 3 | interface ManagerStatic { 4 | new(map:Map, options:ManagerOptions = defaultManagerOptions):Manager; 5 | } 6 | interface Manager extends interfaces.ILayer, interfaces.IMapObjectCollection { 7 | // todo determine callback? 8 | each(callback:Function, context?:any):any; 9 | } 10 | 11 | interface ManagerOptions { 12 | trafficImageZIndex?:number; 13 | trafficInfoZIndex ?:number; 14 | trafficJamZIndex ?:number; 15 | } 16 | 17 | declare var Manager:ManagerStatic; 18 | declare var defaultManagerOptions:ManagerOptions = { 19 | trafficImageZIndex: 201, 20 | trafficInfoZIndex : 1, 21 | trafficJamZIndex : 0, 22 | } 23 | } -------------------------------------------------------------------------------- /ymaps/map/pane/Manager.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.map.pane { 2 | 3 | interface ManagerStatic { 4 | new(map:Map):Manager; 5 | } 6 | interface Manager { 7 | append(key:string, pane:interfaces.IPane):any; 8 | destroy():any; 9 | get(key:string):interfaces.IPane; 10 | getLower():string; 11 | getUpper():string; 12 | insertBefore(key:string, pane:interfaces.IPane, referenceKey:string):any; 13 | remove(pane:interfaces.IPane):any; 14 | } 15 | 16 | declare var Manager:ManagerStatic; 17 | } -------------------------------------------------------------------------------- /ymaps/mapType/storage.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.mapType { 2 | declare var storage:util.Storage; 3 | } -------------------------------------------------------------------------------- /ymaps/meta.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export var meta:{ 3 | coordinatesOrder:"latlong"|"longlat"; 4 | countryCode:string; 5 | languageCode:string; 6 | mode:"release"|"debug"; 7 | ns:any; 8 | version:string; 9 | } 10 | } -------------------------------------------------------------------------------- /ymaps/modules.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export class modules { 3 | static define(module:string, depends:string[], resolveCallback:ModulesResolveCallback, context?:any):modules; 4 | static define(module:string, resolveCallback:ModulesResolveCallback, context?:any):modules; 5 | 6 | static isDefined(module:string):boolean; 7 | 8 | static require(modules:string|string[], successCallback?:(...modules:any[]) => any, errorCallback?:Function, context?:any):vow.Promise; 9 | } 10 | 11 | export interface ModulesResolveCallback{ 12 | (provide:(module:any) => any, ...args:any[]):any; 13 | } 14 | } -------------------------------------------------------------------------------- /ymaps/multiRouter/Editor.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.multiRouter { 2 | 3 | interface EditorStatic { 4 | new(multiRoute:multiRouter.MultiRoute, state:EditorState = defaultEditorState, options:EditorOptions = defaultEditorOptions):Editor; 5 | } 6 | interface Editor extends interfaces.ICustomizable, interfaces.IEventEmitter { 7 | 8 | state:ymaps.data.Manager; 9 | 10 | destroy():any; 11 | getMultiRoute():multiRouter.MultiRoute; 12 | } 13 | 14 | interface EditorOptions { 15 | drawOver ?:boolean; 16 | midPointsType?:"way"|"via"; 17 | } 18 | interface EditorState { 19 | addWayPoints ?:boolean; 20 | dragWayPoints ?:boolean; 21 | removeWayPoints?:boolean; 22 | dragViaPoints ?:boolean; 23 | removeViaPoints?:boolean; 24 | addMidPoints ?:boolean; 25 | } 26 | 27 | declare var Editor:EditorStatic; 28 | declare var defaultEditorOptions:EditorOptions = { 29 | drawOver : true, 30 | midPointsType: "way" 31 | }; 32 | declare var defaultEditorState:EditorState = { 33 | addWayPoints : false, 34 | dragWayPoints : true, 35 | removeWayPoints: false, 36 | dragViaPoints : true, 37 | removeViaPoints: true, 38 | addMidPoints : true 39 | } 40 | 41 | } -------------------------------------------------------------------------------- /ymaps/multiRouter/EditorAddon.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.multiRouter { 2 | 3 | interface EditorAddon extends interfaces.ICustomizable, interfaces.IEventEmitter { 4 | state:data.Manager; 5 | 6 | isActive():boolean; 7 | start(state:any):any; 8 | stop():any; 9 | } 10 | } -------------------------------------------------------------------------------- /ymaps/multiRouter/MultiRoute.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.multiRouter { 2 | 3 | interface MultiRouteStatic { 4 | new(model:multiRouter.MultiRouteModel|interfaces.IMultiRouteModelJson, options:MultiRouteOptions = defaultMultiRouteOptions):MultiRoute; 5 | } 6 | interface MultiRoute extends interfaces.IGeoObject { 7 | 8 | editor:multiRouter.EditorAddon; 9 | model:multiRouter.MultiRouteModel; 10 | 11 | getActiveRoute():multiRouter.driving.Route|multiRouter.masstransit.Route; 12 | getBounds():number[][]; 13 | getPixelBounds():number[][]; 14 | getRoutes():GeoObjectCollection; 15 | getViaPoints():GeoObjectCollection; 16 | setActiveRoute(model:multiRouter.MultiRouteModel|interfaces.IMultiRouteModelJson):any; 17 | } 18 | 19 | interface MultiRouteOptions { 20 | activeRouteAutoSelection?:boolean; 21 | boundsAutoApply ?:boolean; 22 | useMapMargin ?:boolean; 23 | zoomMargin ?:number|number[]; 24 | 25 | // todo options with prefixes 26 | } 27 | 28 | declare var MultiRoute:MultiRouteStatic; 29 | declare var defaultMultiRouteOptions:MultiRouteOptions = { 30 | activeRouteAutoSelection: true, 31 | boundsAutoApply : false, 32 | useMapMargin : true, 33 | zoomMargin : 0 34 | } 35 | } -------------------------------------------------------------------------------- /ymaps/multiRouter/ViaPoint.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.multiRouter { 2 | 3 | interface ViaPoint extends interfaces.IGeoObject { 4 | model:multiRouter.ViaPointModel; 5 | properties:ViaPointPropertiesManager; 6 | } 7 | 8 | interface ViaPointPropertiesManager extends data.Manager { 9 | get(path:"index", defaultValue?:number):number; 10 | get(path:"lodIndex", defaultValue?:number):number; 11 | } 12 | } -------------------------------------------------------------------------------- /ymaps/multiRouter/ViaPointModel.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.multiRouter { 2 | 3 | interface ViaPointModel extends interfaces.IEventEmitter { 4 | geometry:geometry.base.Point; 5 | multiRoute:multiRouter.MultiRouteModel; 6 | properties:ViaPointModelPropertiesManager; 7 | 8 | destroy():any; 9 | getReferencePoint():any; // todo determine? 10 | getReferencePointIndex():number; 11 | setReferencePoint(referencePoint:string|number[]|geometry.Point):any; 12 | update(viaPointJson:any):any; 13 | } 14 | 15 | interface ViaPointModelPropertiesManager extends data.Manager { 16 | get(path:"index", defaultValue?:number):number; 17 | get(path:"lodIndex", defaultValue?:number):number; 18 | } 19 | } -------------------------------------------------------------------------------- /ymaps/multiRouter/WayPoint.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.multiRouter { 2 | 3 | interface WayPoint extends interfaces.IGeoObject { 4 | model:multiRouter.WayPointModel; 5 | properties:WayPointPropertiesManager; 6 | } 7 | 8 | interface WayPointPropertiesManager extends data.Manager { 9 | get(path:"index", defaultValue?:number ):number; 10 | get(path:"request", defaultValue?:string ):string; 11 | get(path:"address", defaultValue?:string ):string; 12 | get(path:"description", defaultValue?:string ):string; 13 | get(path:"name", defaultValue?:string ):string; 14 | get(path:"searchMetaData", defaultValue?:any ):any; // todo determine? 15 | } 16 | } -------------------------------------------------------------------------------- /ymaps/multiRouter/WayPointModel.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.multiRouter { 2 | 3 | interface WayPointModel extends interfaces.IEventEmitter { 4 | geometry:geometry.base.Point; 5 | multiRoute:multiRouter.MultiRouteModel; 6 | properties:WayPointModelPropertiesManager; 7 | 8 | destroy():any; 9 | getReferencePoint():any; // todo determine? 10 | getReferencePointIndex():number; 11 | setReferencePoint(referencePoint:string|number[]|geometry.Point):any; 12 | update(wayPointJson:any):any; 13 | } 14 | 15 | interface WayPointModelPropertiesManager extends data.Manager { 16 | get(path:"index", defaultValue?:number ):number; 17 | get(path:"request", defaultValue?:string ):string; 18 | get(path:"address", defaultValue?:string ):string; 19 | get(path:"description", defaultValue?:string ):string; 20 | get(path:"name", defaultValue?:string ):string; 21 | get(path:"searchMetaData", defaultValue?:any ):any; // todo determine? 22 | } 23 | } -------------------------------------------------------------------------------- /ymaps/multiRouter/driving/Path.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.multiRouter.driving { 2 | 3 | interface Path extends interfaces.IGeoObject { 4 | model:multiRouter.driving.PathModel; 5 | properties:ymaps.data.Manager; 6 | 7 | getSegments():GeoObjectCollection; 8 | } 9 | 10 | // todo maybe this is redundant? 11 | interface PathPropertiesManager extends data.Manager { 12 | get(path:"index", defaultValue?:number ):number; 13 | get(path:"type", defaultValue?:string ):string; // todo determine? 14 | get(path:"distance", defaultValue?:PathPropertiesDistance ):PathPropertiesDistance; 15 | get(path:"duration", defaultValue?:PathPropertiesDuration ):PathPropertiesDuration; 16 | get(path:"durationInTraffic", defaultValue?:PathPropertiesDurationInTraffic):PathPropertiesDurationInTraffic; 17 | get(path:"coordinates", defaultValue?:number[][] ):number[][]; 18 | get(path:"encodedCoordinates", defaultValue?:string ):string; 19 | } 20 | 21 | // todo optional values? 22 | interface PathPropertiesDistance { 23 | text :string; 24 | value:any; // todo determine? 25 | } 26 | interface PathPropertiesDuration { 27 | text :string; 28 | value:any; // todo determine? 29 | } 30 | interface PathPropertiesDurationInTraffic { 31 | text :string; 32 | value:any; // todo determine? 33 | } 34 | } -------------------------------------------------------------------------------- /ymaps/multiRouter/driving/PathModel.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.multiRouter.driving { 2 | 3 | interface PathModel extends interfaces.IEventEmitter { 4 | 5 | properties:PathModelPropertiesManager; 6 | route:multiRouter.driving.RouteModel; 7 | 8 | destroy():any; 9 | getSegments():multiRouter.driving.SegmentModel[]; 10 | getType():string; // todo determine? 11 | update(pathJson:any):any; 12 | } 13 | 14 | interface PathModelPropertiesManager extends data.Manager { 15 | get(path:"index", defaultValue?:number ):number; 16 | get(path:"type", defaultValue?:string ):string; // todo determine? 17 | get(path:"distance", defaultValue?:PathModelPropertiesDistance ):PathModelPropertiesDistance; 18 | get(path:"duration", defaultValue?:PathModelPropertiesDuration ):PathModelPropertiesDuration; 19 | get(path:"durationInTraffic", defaultValue?:PathModelPropertiesDurationInTraffic ):PathModelPropertiesDurationInTraffic; 20 | get(path:"coordinates", defaultValue?:number[][] ):number[][]; 21 | get(path:"encodedCoordinates", defaultValue?:string ):string; 22 | } 23 | 24 | interface PathModelPropertiesDistance { 25 | text :string; 26 | value:any; // todo determine? 27 | } 28 | interface PathModelPropertiesDuration { 29 | text :string; 30 | value:any; // todo determine? 31 | } 32 | interface PathModelPropertiesDurationInTraffic { 33 | text :string; 34 | value:any; // todo determine? 35 | } 36 | } -------------------------------------------------------------------------------- /ymaps/multiRouter/driving/Route.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.multiRouter.driving { 2 | 3 | interface Route extends interfaces.IGeoObject { 4 | model:multiRouter.driving.RouteModel; 5 | properties:RoutePropertiesManager; 6 | 7 | getPaths():GeoObjectCollection; 8 | } 9 | 10 | interface RoutePropertiesManager extends data.Manager { 11 | get(path:"index", defaultValue?:number ):number; 12 | get(path:"type", defaultValue?:string ):string; // todo determine? 13 | get(path:"blocked", defaultValue?:boolean ):boolean; 14 | get(path:"distance", defaultValue?:RoutePropertiesDistance ):RoutePropertiesDistance; 15 | get(path:"duration", defaultValue?:RoutePropertiesDuration ):RoutePropertiesDuration; 16 | get(path:"durationInTraffic", defaultValue?:RoutePropertiesDurationInTraffic):RoutePropertiesDurationInTraffic; 17 | get(path:"boundedBy", defaultValue?:number[][] ):number[][]; 18 | } 19 | 20 | interface RoutePropertiesDistance { 21 | text :string; 22 | value:any; // todo determine? 23 | } 24 | interface RoutePropertiesDuration { 25 | text :string; 26 | value:any; // todo determine? 27 | } 28 | interface RoutePropertiesDurationInTraffic { 29 | text :string; 30 | value:any; // todo determine? 31 | } 32 | } -------------------------------------------------------------------------------- /ymaps/multiRouter/driving/RouteModel.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.multiRouter.driving { 2 | 3 | interface RouteModel extends interfaces.IEventEmitter { 4 | multiRoute:multiRouter.MultiRouteModel; 5 | properties:RouteModelPropertiesManager; 6 | 7 | destroy():any; 8 | getPaths():multiRouter.driving.PathModel[]; 9 | getType():string; // todo determine? 10 | update(routeJson:any):any; 11 | } 12 | 13 | interface RouteModelPropertiesManager extends data.Manager { 14 | get(path:"index", defaultValue?:number ):number; 15 | get(path:"type", defaultValue?:string ):string; // todo determine? 16 | get(path:"blocked", defaultValue?:boolean ):boolean; 17 | get(path:"distance", defaultValue?:RouteModelPropertiesDistance ):RouteModelPropertiesDistance; 18 | get(path:"duration", defaultValue?:RouteModelPropertiesDuration ):RouteModelPropertiesDuration; 19 | get(path:"durationInTraffic", defaultValue?:RouteModelPropertiesDurationInTraffic):RouteModelPropertiesDurationInTraffic; 20 | get(path:"boundedBy", defaultValue?:number[][] ):number[][]; 21 | } 22 | 23 | interface RouteModelPropertiesDistance { 24 | text :string; 25 | value:any; // todo determine? 26 | } 27 | interface RouteModelPropertiesDuration { 28 | text :string; 29 | value:any; // todo determine? 30 | } 31 | interface RouteModelPropertiesDurationInTraffic { 32 | text :string; 33 | value:any; // todo determine? 34 | } 35 | } -------------------------------------------------------------------------------- /ymaps/multiRouter/masstransit/Path.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.multiRouter.masstransit { 2 | 3 | interface Path extends interfaces.IGeoObject { 4 | model:multiRouter.masstransit.PathModel; 5 | properties:PathPropertiesManager; 6 | 7 | getSegmentMarkers():GeoObjectCollection; 8 | getSegments():GeoObjectCollection; 9 | } 10 | 11 | interface PathPropertiesManager extends data.Manager { 12 | get(path:"index", defaultValue?:number ):number; 13 | get(path:"type", defaultValue?:string ):string; // todo determine? 14 | get(path:"distance", defaultValue?:PathPropertiesDistance ):PathPropertiesDistance; 15 | get(path:"duration", defaultValue?:PathPropertiesDuration ):PathPropertiesDuration; 16 | get(path:"coordinates", defaultValue?:number[][] ):number[][]; 17 | get(path:"encodedCoordinates", defaultValue?:string ):string; 18 | } 19 | 20 | interface PathPropertiesDistance { 21 | text :string; 22 | value:any; // todo determine? 23 | } 24 | interface PathPropertiesDuration { 25 | text :string; 26 | value:any; // todo determine? 27 | } 28 | } -------------------------------------------------------------------------------- /ymaps/multiRouter/masstransit/PathModel.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.multiRouter.masstransit { 2 | 3 | interface PathModel extends interfaces.IEventEmitter { 4 | 5 | properties:PathModelPropertiesManager; 6 | route:multiRouter.masstransit.RouteModel; 7 | 8 | destroy():any; 9 | getSegments():SegmentModel[]; // todo report about interface/class missed. Maybe TransferSegmentModel? 10 | getType():string; // todo determine? 11 | update(pathJson:any):any; 12 | } 13 | 14 | interface PathModelPropertiesManager extends data.Manager { 15 | get(path:"index", defaultValue?:number ):number; 16 | get(path:"type", defaultValue?:string ):string; // todo determine? 17 | get(path:"distance", defaultValue?:PathModelPropertiesDistance ):PathModelPropertiesDistance; 18 | get(path:"duration", defaultValue?:PathModelPropertiesDuration ):PathModelPropertiesDuration; 19 | get(path:"coordinates", defaultValue?:number[][] ):number[][]; 20 | get(path:"encodedCoordinates", defaultValue?:string ):string; 21 | } 22 | 23 | interface PathModelPropertiesDistance { 24 | text :string; 25 | value:any; // todo determine? 26 | } 27 | interface PathModelPropertiesDuration { 28 | text :string; 29 | value:any; // todo determine? 30 | } 31 | } -------------------------------------------------------------------------------- /ymaps/multiRouter/masstransit/Route.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.multiRouter.masstransit { 2 | 3 | interface Route extends interfaces.IGeoObject { 4 | model:multiRouter.masstransit.RouteModel; 5 | properties:RoutePropertiesManager; 6 | 7 | getPaths():GeoObjectCollection; 8 | } 9 | 10 | interface RoutePropertiesManager extends data.Manager { 11 | get(path:"index", defaultValue?:number ):number; 12 | get(path:"type", defaultValue?:string ):string; // todo determine? 13 | get(path:"distance", defaultValue?:RoutePropertiesDistance ):RoutePropertiesDistance; 14 | get(path:"duration", defaultValue?:RoutePropertiesDuration ):RoutePropertiesDuration; 15 | get(path:"boundedBy", defaultValue?:number[][] ):number[][]; 16 | } 17 | 18 | interface RoutePropertiesDistance { 19 | text :string; 20 | value:any; // todo determine? 21 | } 22 | interface RoutePropertiesDuration { 23 | text :string; 24 | value:any; // todo determine? 25 | } 26 | } -------------------------------------------------------------------------------- /ymaps/multiRouter/masstransit/RouteModel.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.multiRouter.masstransit { 2 | 3 | interface RouteModel extends interfaces.IEventEmitter { 4 | multiRoute:multiRouter.MultiRouteModel; 5 | properties:RouteModelPropertiesManager; 6 | 7 | getPaths():multiRouter.masstransit.PathModel[]; 8 | getType():string; // todo determine? 9 | update(routeJson:any):any; 10 | } 11 | 12 | interface RouteModelPropertiesManager extends data.Manager { 13 | get(path:"index", defaultValue?:number ):number; 14 | get(path:"type", defaultValue?:string ):string; // todo determine? 15 | get(path:"distance", defaultValue?:RouteModelPropertiesDistance ):RouteModelPropertiesDistance; 16 | get(path:"duration", defaultValue?:RouteModelPropertiesDuration ):RouteModelPropertiesDuration; 17 | get(path:"boundedBy", defaultValue?:number[][] ):number[][]; 18 | } 19 | 20 | interface RouteModelPropertiesDistance { 21 | text :string; 22 | value:any; // todo determine? 23 | } 24 | interface RouteModelPropertiesDuration { 25 | text :string; 26 | value:any; // todo determine? 27 | } 28 | } -------------------------------------------------------------------------------- /ymaps/multiRouter/masstransit/StopModel.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.multiRouter.masstransit { 2 | 3 | interface StopModel extends interfaces.IEventEmitter { 4 | geometry:geometry.base.Point; 5 | properties:StopModelPropertiesManager; 6 | segment:multiRouter.masstransit.TransportSegmentModel; 7 | } 8 | 9 | interface StopModelPropertiesManager extends data.Manager { 10 | get(path:"index", defaultValue?:number):number; 11 | get(path:"id", defaultValue?:string):string; 12 | get(path:"name", defaultValue?:string):string; 13 | get(path:"lodIndex", defaultValue?:number):number; 14 | } 15 | } -------------------------------------------------------------------------------- /ymaps/multiRouter/masstransit/TransferSegment.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.multiRouter.masstransit { 2 | 3 | interface TransferSegment extends interfaces.IGeoObject { 4 | model:multiRouter.masstransit.TransferSegmentModel; 5 | properties:TransferSegmentPropertiesManager; 6 | } 7 | 8 | interface TransferSegmentPropertiesManager extends data.Manager { 9 | get(path:"index", defaultValue?:number ):number; 10 | get(path:"type", defaultValue?:string ):string; // todo determine? 11 | get(path:"text", defaultValue?:string ):string; 12 | get(path:"distance", defaultValue?:TransferSegmentPropertiesDistance ):TransferSegmentPropertiesDistance; 13 | get(path:"duration", defaultValue?:TransferSegmentPropertiesDuration ):TransferSegmentPropertiesDuration; 14 | get(path:"lodIndex", defaultValue?:number ):number; 15 | } 16 | 17 | interface TransferSegmentPropertiesDistance { 18 | text :string; 19 | value:any; // todo determine? 20 | } 21 | interface TransferSegmentPropertiesDuration { 22 | text :string; 23 | value:any; // todo determine? 24 | } 25 | } -------------------------------------------------------------------------------- /ymaps/multiRouter/masstransit/TransferSegmentModel.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.multiRouter.masstransit { 2 | 3 | interface TransferSegmentModel extends interfaces.IGeoObject { 4 | geometry:geometry.base.LineString; // todo report about incompatible override 5 | path:multiRouter.masstransit.PathModel; 6 | properties:TransferSegmentModelPropertiesManager; 7 | 8 | destroy(segmentJson:any):any; 9 | getType():string; 10 | } 11 | 12 | interface TransferSegmentModelPropertiesManager extends data.Manager { 13 | get(path:"index", defaultValue?:number ):number; 14 | get(path:"type", defaultValue?:string ):string; // todo determine? 15 | get(path:"text", defaultValue?:string ):string; 16 | get(path:"distance", defaultValue?:TransferSegmentModelPropertiesDistance ):TransferSegmentModelPropertiesDistance; 17 | get(path:"duration", defaultValue?:TransferSegmentModelPropertiesDuration ):TransferSegmentModelPropertiesDuration; 18 | get(path:"lodIndex", defaultValue?:number ):number; 19 | } 20 | 21 | interface TransferSegmentModelPropertiesDistance { 22 | text :string; 23 | value:any; // todo determine? 24 | } 25 | interface TransferSegmentModelPropertiesDuration { 26 | text :string; 27 | value:any; // todo determine? 28 | } 29 | } -------------------------------------------------------------------------------- /ymaps/multiRouter/masstransit/TransportProperties.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.multiRouter.masstransit { 2 | 3 | interface TransportProperties { 4 | id :string; 5 | name:string; 6 | type:ymaps.Transports; 7 | } 8 | } -------------------------------------------------------------------------------- /ymaps/multiRouter/masstransit/TransportSegment.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.multiRouter.masstransit { 2 | 3 | interface TransportSegment extends interfaces.IGeoObject { 4 | model:multiRouter.masstransit.TransportSegmentModel; 5 | properties:TransportSegmentPropertiesManager; 6 | } 7 | 8 | interface TransportSegmentPropertiesManager extends data.Manager { 9 | get(path:"index", defaultValue?:number ):number; 10 | get(path:"type", defaultValue?:string ):string; // todo determine? 11 | get(path:"text", defaultValue?:string ):string; // todo determine? 12 | get(path:"transports", defaultValue?:TransportProperties[] ):TransportProperties[]; 13 | get(path:"stops", defaultValue?:any ):any; // todo determine GeoJson:FeatureCollection? 14 | get(path:"distance", defaultValue?:TransportSegmentPropertiesDistance ):TransportSegmentPropertiesDistance; 15 | get(path:"duration", defaultValue?:TransportSegmentPropertiesDuration ):TransportSegmentPropertiesDuration; 16 | get(path:"lodIndex", defaultValue?:number ):number; 17 | } 18 | 19 | interface TransportSegmentPropertiesDistance { 20 | text :string; 21 | value:any; // todo determine? 22 | } 23 | interface TransportSegmentPropertiesDuration { 24 | text :string; 25 | value:any; // todo determine? 26 | } 27 | } -------------------------------------------------------------------------------- /ymaps/multiRouter/masstransit/TransportSegmentModel.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.multiRouter.masstransit { 2 | 3 | interface TransportSegmentModel extends interfaces.IEventEmitter { 4 | geometry:geometry.base.LineString; 5 | path:multiRouter.masstransit.PathModel; 6 | properties:TransportSegmentModelPropertiesManager; 7 | 8 | destroy():any; 9 | getStops():multiRouter.masstransit.StopModel[]; 10 | getType():string; // todo determine? 11 | update(segmentJson:any):any; 12 | } 13 | 14 | interface TransportSegmentModelPropertiesManager extends data.Manager { 15 | get(path:"index", defaultValue?:number ):number; 16 | get(path:"type", defaultValue?:string ):string; // todo determine? 17 | get(path:"text", defaultValue?:string ):string; // todo determine? 18 | get(path:"transports", defaultValue?:TransportProperties[] ):TransportProperties[]; 19 | get(path:"stops", defaultValue?:any ):any; // todo determine GeoJson:FeatureCollection? 20 | get(path:"distance", defaultValue?:TransportSegmentModelPropertiesDistance ):TransportSegmentModelPropertiesDistance; 21 | get(path:"duration", defaultValue?:TransportSegmentModelPropertiesDuration ):TransportSegmentModelPropertiesDuration; 22 | get(path:"lodIndex", defaultValue?:number ):number; 23 | } 24 | 25 | interface TransportSegmentModelPropertiesDistance { 26 | text :string; 27 | value:any; // todo determine? 28 | } 29 | interface TransportSegmentModelPropertiesDuration { 30 | text :string; 31 | value:any; // todo determine? 32 | } 33 | } -------------------------------------------------------------------------------- /ymaps/multiRouter/masstransit/WalkSegment.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.multiRouter.masstransit { 2 | 3 | interface WalkSegment extends interfaces.IGeoObject { 4 | model:multiRouter.masstransit.WalkSegmentModel; 5 | properties:WalkSegmentPropertiesManager; 6 | } 7 | 8 | interface WalkSegmentPropertiesManager extends data.Manager { 9 | get(path:"index", defaultValue?:number ):number; 10 | get(path:"type", defaultValue?:string ):string; // todo determine? 11 | get(path:"text", defaultValue?:string ):string; 12 | get(path:"distance", defaultValue?:WalkSegmentPropertiesDistance ):WalkSegmentPropertiesDistance; 13 | get(path:"duration", defaultValue?:WalkSegmentPropertiesDuration ):WalkSegmentPropertiesDuration; 14 | get(path:"lodIndex", defaultValue?:number ):number; 15 | } 16 | 17 | interface WalkSegmentPropertiesDistance { 18 | text :string; 19 | value:any; // todo determine? 20 | } 21 | interface WalkSegmentPropertiesDuration { 22 | text :string; 23 | value:any; // todo determine? 24 | } 25 | } -------------------------------------------------------------------------------- /ymaps/multiRouter/masstransit/WalkSegmentModel.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.multiRouter.masstransit { 2 | 3 | interface WalkSegmentModel extends interfaces.IEventEmitter { 4 | geometry:geometry.base.LineString; 5 | path:multiRouter.masstransit.PathModel; 6 | properties:WalkSegmentModelPropertiesManager; 7 | 8 | destroy():any; 9 | getType():string; // todo determine? 10 | } 11 | 12 | interface WalkSegmentModelPropertiesManager extends data.Manager { 13 | get(path:"index", defaultValue?:number ):number; 14 | get(path:"type", defaultValue?:string ):string; // todo determine? 15 | get(path:"text", defaultValue?:string ):string; 16 | get(path:"distance", defaultValue?:WalkSegmentModelPropertiesDistance ):WalkSegmentModelPropertiesDistance; 17 | get(path:"duration", defaultValue?:WalkSegmentModelPropertiesDuration ):WalkSegmentModelPropertiesDuration; 18 | get(path:"lodIndex", defaultValue?:number ):number; 19 | } 20 | 21 | interface WalkSegmentModelPropertiesDistance { 22 | text :string; 23 | value:any; // todo determine? 24 | } 25 | interface WalkSegmentModelPropertiesDuration { 26 | text :string; 27 | value:any; // todo determine? 28 | } 29 | } -------------------------------------------------------------------------------- /ymaps/objectManager/Balloon.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.objectManager { 2 | 3 | interface BalloonStatic{ 4 | new(collection:interfaces.IReadOnlyCollection):Balloon; // todo report about interface missing 5 | } 6 | interface Balloon extends interfaces.IBalloonManager { 7 | close(force:boolean = false):vow.Promise; // todo generics 8 | getData():any; // todo determine 9 | isOpen(id:any):boolean; // todo determine; todo report about incompatibility? 10 | // todo generics 11 | // todo determine arguments 12 | // todo report about anchorPixelPosition type missed 13 | open(objectId:any, anchorPixelPosition:any):vow.Promise; 14 | // todo generics 15 | // todo check for ObjectManagerFeature and ObjectManagerFeatureCollection and string? 16 | // todo why there is only {Object} type w/o {string}? 17 | setData(objectData:any):vow.Promise; 18 | } 19 | 20 | declare var Balloon:BalloonStatic; 21 | } -------------------------------------------------------------------------------- /ymaps/objectManager/ClusterCollection.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.objectManager { 2 | 3 | interface ClusterCollection extends interfaces.ICustomizable, interfaces.IEventEmitter { 4 | // todo determine collection item as Cluster? 5 | balloon:objectManager.Balloon; 6 | options:ClusterCollectionOptionsManager; 7 | overlays:objectManager.OverlayCollection; 8 | state:data.Manager; // todo what about activeObject? 9 | 10 | // todo report about context is not required 11 | each(callback:Function, context?:any); 12 | getAll():any[]; // todo determine; Cluster[]? 13 | getById(id:string):any; // todo determine; Cluster[]? 14 | getIterator():interfaces.IIterator; 15 | getLength():number; 16 | getObjectManager():ObjectManager; 17 | // todo determine options. ClusterOptions? 18 | // todo check return type carefully - it seems to be ClusterCollection 19 | setClusterOptions(objectId:string, options:any):objectManager.ObjectCollection; 20 | } 21 | 22 | interface ClusterCollectionOptionsManager extends option.Manager { 23 | get(path:"hasBalloon", defaultValue?:boolean ):boolean; 24 | get(path:"hasHint", defaultValue?:boolean ):boolean; 25 | get(path:"hideIconOnBalloonOpen",defaultValue?:boolean ):boolean; 26 | get(path:"openBalloonOnClick", defaultValue?:boolean ):boolean; 27 | get(path:"openHintOnHover", defaultValue?:boolean ):boolean; 28 | } 29 | } -------------------------------------------------------------------------------- /ymaps/objectManager/Hint.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.objectManager { 2 | 3 | interface HintStatic{ 4 | new(collection:interfaces.IReadOnlyCollection):Hint; // todo report about interface missed 5 | } 6 | interface Hint extends interfaces.IHintManager { 7 | close(force:boolean = false):vow.Promise; // todo generics 8 | getData():any; // todo null; todo determine 9 | isOpen(id:any):boolean; // todo determine; todo report about incompatibility? 10 | // todo generics 11 | // todo determine objectId 12 | open(objectId:any, position?:number[]):vow.Promise; 13 | // todo generics 14 | // todo check for ObjectManagerFeature and ObjectManagerFeatureCollection and string? 15 | // todo why there is only {Object} type w/o {string}? 16 | setData(objectData:any):vow.Promise; 17 | } 18 | 19 | declare var Hint:HintStatic; 20 | } -------------------------------------------------------------------------------- /ymaps/objectManager/OverlayCollection.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.objectManager { 2 | 3 | interface OverlayCollection extends interfaces.ICustomizable, interfaces.IEventEmitter { 4 | // todo check for fluid interface 5 | // todo report about context argument not required 6 | // todo determine callback declaration 7 | each(callback:Function, context?:any):any; 8 | // todo determine;? 9 | getAll():any[]; 10 | // todo determine. Why number? 11 | getById(id:number):any; 12 | getId(overlay:interfaces.IOverlay):number; 13 | getIterator():interfaces.IIterator; 14 | getLength():number; 15 | } 16 | } -------------------------------------------------------------------------------- /ymaps/option/Manager.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.option { 2 | 3 | interface ManagerStatic { 4 | new (options?:any, parent?:interfaces.IOptionManager, name?:string):Manager; 5 | } 6 | interface Manager extends interfaces.IOptionManager { 7 | set(hash:Object):Manager; 8 | set(key:string, value:any):Manager; 9 | unset(keys:string|string[]):Manager; 10 | unsetAll():Manager; 11 | } 12 | 13 | declare var Manager:ManagerStatic; 14 | } -------------------------------------------------------------------------------- /ymaps/option/presetStorage.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps.option { 2 | declare var presetStorage:util.Storage; 3 | } -------------------------------------------------------------------------------- /ymaps/overlay/Circle.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module overlay { 3 | export class Circle extends interfaces.IOverlay { 4 | constructor(geometry:interfaces.IPixelCircleGeometry, data?:any, options?:CircleOptions); 5 | } 6 | 7 | export class CircleOptions { 8 | fill:boolean; 9 | fillColor:string; 10 | fillImageHref:string; 11 | fillMethod:"stretch"|"tile" = 'stretch'; 12 | fillOpacity:number; 13 | interactive:boolean = true; 14 | opacity:number; 15 | outline:boolean; 16 | separateContainer:boolean; 17 | strokeColor:string; 18 | strokeOpacity:number; 19 | strokeStyle:number[]|string; 20 | strokeWidth:number; 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /ymaps/overlay/Pin.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module overlay { 3 | export class Pin extends interfaces.IOverlay { 4 | constructor(geometry:interfaces.IPixelPointGeometry, data?:any, options?:PinOptions); 5 | } 6 | 7 | export class PinOptions { 8 | fill:boolean; 9 | fillColor:string; 10 | fillImageHref:string; 11 | fillMethod:"stretch"|"tile" = 'stretch'; 12 | fillOpacity:number; 13 | interactive:boolean = true; 14 | opacity:number; 15 | outline:boolean; 16 | radius:number; 17 | separateContainer:boolean; 18 | strokeColor:string; 19 | strokeOpacity:number; 20 | strokeStyle:number[]|string; 21 | strokeWidth:number; 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /ymaps/overlay/Placemark.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module overlay { 3 | export class Placemark extends interfaces.IOverlay { 4 | constructor(geometry:interfaces.IPixelPointGeometry, data?:any, options?:PlacemarkOptions); 5 | 6 | getElement():HTMLElement; 7 | 8 | getIconElement():HTMLElement; 9 | 10 | getIconLayout():vow.Promise; // todo generics? 11 | getIconLayoutSync():interfaces.ILayout; 12 | getLayout():vow.Promise; // todo generics? 13 | getLayoutSync():interfaces.ILayout; 14 | getShadowElement():HTMLElement; 15 | 16 | getShadowLayout():vow.Promise; // todo generics? 17 | getShadowLayoutSync():interfaces.ILayout; 18 | 19 | } 20 | 21 | export class PlacemarkOptions { 22 | cursor:string; 23 | interactive:boolean = true; 24 | 25 | interactivityModel:"default#opaque"|"default#geoObject"|"default#layer"|"default#transparent"|"default#silent" = "default#geoObject"; 26 | layout:string|Function; // todo determine? 27 | offset:number[] = [0, 0]; // todo report about ambiguous declaration 28 | pane:string = "places"; // todo determine? 29 | shadow:boolean = false; 30 | shadowLayout:string|Function; // todo determine? 31 | shadowOffset:number[] = [0, 0]; // todo report about ambiguous declaration 32 | shadowsPane:string = "shadows"; // todo determine? 33 | zIndex:number; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /ymaps/overlay/Polygon.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module overlay { 3 | export class Polygon extends interfaces.IOverlay { 4 | constructor(geometry:interfaces.IPixelPolygonGeometry, data?:any, options?:PolygonOptions); 5 | } 6 | 7 | export class PolygonOptions { 8 | fill:boolean; 9 | fillColor:string; 10 | fillImageHref:string; 11 | fillMethod:"stretch"|"tile" = 'stretch'; 12 | fillOpacity:number; 13 | interactive:boolean = true; 14 | opacity:number; 15 | outline:boolean; 16 | separateContainer:boolean; 17 | strokeColor:string; 18 | strokeOpacity:number; 19 | strokeStyle:number[]|string; 20 | strokeWidth:number; 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /ymaps/overlay/Polyline.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module overlay { 3 | export class Polyline extends interfaces.IOverlay { 4 | constructor(geometry:interfaces.IPixelLineStringGeometry, data?:any, options?:PolylineOptions); 5 | } 6 | 7 | export class PolylineOptions { 8 | interactive:boolean = true; 9 | opacity:number; 10 | separateContainer:boolean; 11 | strokeColor:string; 12 | strokeOpacity:number; 13 | strokeStyle:number[]|string; 14 | strokeWidth:number; 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /ymaps/overlay/Rectangle.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module overlay { 3 | export class Rectangle extends interfaces.IOverlay { 4 | constructor(geometry:interfaces.IPixelRectangleGeometry, data?:any, options?:RectangleOptions); 5 | } 6 | 7 | export class RectangleOptions { 8 | borderRadius:number; 9 | fill:boolean; 10 | fillColor:string; 11 | fillImageHref:string; 12 | fillMethod:"stretch"|"tile" = 'stretch'; 13 | fillOpacity:number; 14 | interactive:boolean = true; 15 | opacity:number; 16 | outline:boolean; 17 | separateContainer:boolean; 18 | strokeColor:string; 19 | strokeOpacity:number; 20 | strokeStyle:number[]|string; 21 | strokeWidth:number; 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /ymaps/overlay/hotspot/Base.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module overlay { 3 | export module hotspot { 4 | // todo where documentation? report about missing 5 | 6 | //export class Base { 7 | // 8 | //} 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /ymaps/overlay/hotspot/Circle.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module overlay { 3 | export module hotspot { 4 | export class Circle extends overlay.hotspot.Base { 5 | constructor(geometry:interfaces.IPixelCircleGeometry, data?:any, options?:any); // todo determine options? 6 | } 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /ymaps/overlay/hotspot/Placemark.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module overlay { 3 | export module hotspot { 4 | export class Placemark extends overlay.hotspot.Base { 5 | constructor(geometry:interfaces.IPixelPointGeometry, data?:any, options?:any); // todo determine options? 6 | } 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /ymaps/overlay/hotspot/Polygon.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module overlay { 3 | export module hotspot { 4 | export class Polygon extends overlay.hotspot.Base { 5 | constructor(geometry:interfaces.IPixelPolygonGeometry, data?:any, options?:any); // todo determine options? 6 | } 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /ymaps/overlay/hotspot/Polyline.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module overlay { 3 | export module hotspot { 4 | export class Polyline extends overlay.hotspot.Base { 5 | constructor(geometry:interfaces.IPixelLineStringGeometry, data?:any, options?:any); // todo determine options? 6 | } 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /ymaps/overlay/hotspot/Rectangle.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module overlay { 3 | export module hotspot { 4 | export class Polyline extends overlay.hotspot.Base { 5 | constructor(geometry:interfaces.IPixelRectangleGeometry, data?:any, options?:any); // todo determine options? 6 | } 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /ymaps/overlay/html/Balloon.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module overlay { 3 | export module hotspot { 4 | export class Balloon extends interfaces.IOverlay { 5 | constructor(geometry:interfaces.IPixelPointGeometry, data?:any, options?:BalloonOptions); 6 | 7 | getBalloonElement():HTMLElement; 8 | 9 | getBalloonLayout():vow.Promise; // todo generics? 10 | getBalloonLayoutSync():interfaces.ILayout; 11 | 12 | getElement():HTMLElement; 13 | 14 | getLayout():vow.Promise; // todo generics? 15 | getLayoutSync():interfaces.ILayout; 16 | getMode():"panel"|"standard"; 17 | 18 | getShadowElement():HTMLElement; 19 | 20 | getShadowLayout():vow.Promise; // todo generics? 21 | getShadowLayoutSync():interfaces.ILayout; 22 | 23 | isEmpty():boolean; 24 | } 25 | export class BalloonOptions { 26 | cursor:string; 27 | interactivityModel:"default#opaque"|"default#geoObject"|"default#layer"|"default#transparent"|"default#silent" = "default#opaque"; 28 | layout:string|Function; // todo determine 29 | offset:number[] = [0, 0]; // todo report about ambiguous type declaration 30 | pane:string = "balloon"; // todo determine 31 | shadow:boolean = true; 32 | shadowLayout:string|Function; // todo determine 33 | shadowOffset:number[] = [0, 0]; // todo report about ambiguous type declaration 34 | shadowsPane:any = "shadowsPane"; // todo wtf? report about ambiguous type declaration 35 | zIndex:number; 36 | } 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /ymaps/overlay/html/Hint.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module overlay { 3 | export module hotspot { 4 | export class Hint extends interfaces.IOverlay { 5 | constructor(geometry:interfaces.IPixelPointGeometry, data?:any, options?:HintOptions); 6 | 7 | getElement():HTMLElement; 8 | 9 | getLayout():vow.Promise; // todo generics? 10 | getLayoutSync():interfaces.ILayout; 11 | 12 | isEmpty():boolean; 13 | } 14 | export class HintOptions { 15 | cursor:string; 16 | interactivityModel:"default#opaque"|"default#geoObject"|"default#layer"|"default#transparent"|"default#silent" = "default#opaque"; 17 | layout:string|interfaces.ILayout; 18 | pane:string = "outerHint"; // todo determine 19 | zIndex:number; 20 | } 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /ymaps/overlay/html/Placemark.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module overlay { 3 | export module hotspot { 4 | export class Placemark extends interfaces.IOverlay { 5 | constructor(geometry:interfaces.IPixelPointGeometry, data?:any, options?:PlacemarkOptions); 6 | 7 | getElement():HTMLElement; 8 | getIconElement():HTMLElement; 9 | 10 | getIconLayout():vow.Promise; // todo generics? 11 | getIconLayoutSync():interfaces.ILayout; 12 | 13 | getLayout():vow.Promise; // todo generics? 14 | getLayoutSync():interfaces.ILayout; 15 | 16 | getShadowElement():HTMLElement; 17 | 18 | getShadowLayout():vow.Promise; // todo generics? 19 | getShadowLayoutSync():interfaces.ILayout; 20 | 21 | } 22 | export class PlacemarkOptions { 23 | cursor:string; 24 | interactivityModel:"default#opaque"|"default#geoObject"|"default#layer"|"default#transparent"|"default#silent" = "default#geoObject"; 25 | layout:string|Function; // todo determine? 26 | offset:number[] = [0,0]; // todo report about ambiguous declaration 27 | pane:string = "places"; // todo determine 28 | shadow:boolean = false; 29 | shadowLayout:string|Function; // todo determine? 30 | shadowOffset:number[] = [0,0]; // todo report about ambiguous declaration 31 | shadowsPane:string = "shadows"; // todo wtf? report about ambiguous type declaration 32 | zIndex:number; 33 | } 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /ymaps/overlay/html/Rectangle.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module overlay { 3 | export module hotspot { 4 | export class Rectangle extends interfaces.IOverlay { 5 | constructor(geometry:interfaces.IPixelRectangleGeometry, data?:any, options?:RectangleOptions); 6 | 7 | getElement():HTMLElement; 8 | 9 | getLayout():vow.Promise; // todo generics? 10 | getLayoutSync():interfaces.ILayout; 11 | 12 | } 13 | export class RectangleOptions { 14 | cursor:string; 15 | fillColor:string; 16 | fillImageHref:string; 17 | fillMethod:"stretch"|"tile" = "stretch"; 18 | fillOpacity:number; 19 | interactivityModel:"default#opaque"|"default#geoObject"|"default#layer"|"default#transparent"|"default#silent" = "default#geoObject"; 20 | opacity:number; 21 | pane:string = "areas"; // todo determine 22 | strokeColor:string; 23 | strokeStyle:number[]|string; 24 | strokeWidth:number; 25 | zIndex:number; 26 | borderRadius:number; // todo wtf is dataSet? maybe typo? report about wrong docs 27 | } 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /ymaps/overlay/storage.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module overlay { 3 | class StorageAsyncStorage extends util.AsyncStorage{ 4 | // todo determine all keys? 5 | } 6 | export var storage:StorageAsyncStorage; 7 | } 8 | } -------------------------------------------------------------------------------- /ymaps/pane/EventsPane.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module pane { 3 | export class EventsPane extends interfaces.IEventPane { 4 | 5 | // todo check is params really required 6 | constructor(map:Map, params:EventsPaneParameters); 7 | } 8 | 9 | export class EventsPaneParameters { 10 | css:any;// todo maybe string? or dictionary? 11 | zIndex:number = 0; 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /ymaps/pane/MovablePane.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module pane { 3 | export class MovablePane extends interfaces.IContainerPane { 4 | 5 | // todo check is params really required 6 | constructor(map:Map, params:MovablePaneParameters); 7 | } 8 | 9 | export class MovablePaneParameters { 10 | css:any;// todo maybe string? or dictionary? 11 | margin:number = 0; 12 | overflow:"visible"|"hidden" = "hidden"; 13 | zIndex:number = 0; 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /ymaps/pane/StaticPane.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module pane { 3 | export class StaticPane extends interfaces.IContainerPane { 4 | 5 | // todo check is params really required 6 | constructor(map:Map, params:StaticPaneParameters); 7 | } 8 | 9 | export class StaticPaneParameters { 10 | css:any;// todo maybe string? or dictionary? 11 | margin:number = 0; 12 | overflow:"visible"|"hidden" = "hidden"; 13 | zIndex:number = 0; 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /ymaps/projection/Cartesian.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module projection { 3 | export class Cartesian extends interfaces.IProjection { 4 | 5 | // todo check for number[] type for bounds 6 | constructor(bounds:Object[], cycled:boolean[] = [false, false], scale:number|number[] = 1); 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /ymaps/projection/sphericalMercator.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module projection { 3 | export var sphericalMercator:interfaces.IProjection; 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/projection/wgs84Mercator.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module projection { 3 | export var wgs84Mercator:interfaces.IProjection; 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/ready.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export function ready(parameters:ReadyParameters):vow.Promise; 3 | 4 | // todo resolve namespace argument 5 | export function ready(successCallback:(ns?:ymaps) => any, errorCallback?:Function, context?:any):vow.Promise; 6 | 7 | export class ReadyParameters { 8 | require:string[]; 9 | successCallback:(ns?:ymaps) => any; // todo resolve namespace argument 10 | errorCallback:Function; 11 | context:any; 12 | } 13 | } -------------------------------------------------------------------------------- /ymaps/regions/load.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module regions { 3 | export function load(region:string, options?:LoadOptions):vow.Promise; 4 | 5 | export class LoadOptions { 6 | disputedBorders:string; 7 | lang:string; 8 | quality:number = 1; 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /ymaps/route.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export function route(points:Array, params?:RouteParameters):vow.Promise; 3 | 4 | export class RouteParameters { 5 | avoidTrafficJams:boolean = false; 6 | boundedBy:number[][]; 7 | mapStateAutoApply:boolean = false; 8 | multiRoute:boolean = false; 9 | routingMode:"auto"|"masstransit" = "auto"; 10 | searchCoordOrder:string; 11 | strictBounds:boolean = true; 12 | viaIndexes:number[] = []; 13 | } 14 | 15 | export interface RoutePoint { 16 | type:"wayPoint"|"viaPoint"; 17 | point:number[]|string; 18 | } 19 | } -------------------------------------------------------------------------------- /ymaps/router/Editor.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module router { 3 | export class Editor extends interfaces.ICustomizable, interfaces.IEventEmitter { 4 | 5 | state:EditorStateManager; 6 | 7 | start(options?:EditorStartOptions):any; 8 | stop():any; 9 | } 10 | 11 | export class EditorStateManager extends interfaces.IDataManager { 12 | //noinspection SpellCheckingInspection 13 | routeloading:boolean; 14 | //noinspection SpellCheckingInspection 15 | waypointsdrag:boolean; 16 | //noinspection SpellCheckingInspection 17 | viapointsdrag:boolean; 18 | } 19 | 20 | export class EditorStartOptions { 21 | addViaPoints:boolean = true; 22 | addWayPoints:boolean = false; 23 | editViaPoints:boolean = true; 24 | editWayPoints:boolean = true; 25 | removeViaPoints:boolean = true; 26 | removeWayPoints:boolean = false; 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /ymaps/router/Path.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module router { 3 | export class Path extends GeoObject { 4 | 5 | getHumanJamsTime():string; 6 | getHumanLength():string; 7 | getHumanTime():string; 8 | getJamsTime():number; 9 | getLength():number; 10 | getSegments():router.Segment[]; 11 | getTime():number; 12 | 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /ymaps/router/Route.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module router { 3 | // todo check for realization interface instead of inheritance 4 | export class Route extends interfaces.IGeoObject { 5 | 6 | editor:router.Editor; 7 | 8 | getHumanJamsTime():string; 9 | getHumanLength():string; 10 | getHumanTime():string; 11 | getJamsTime():number; 12 | getLength():number; 13 | getPaths():GeoObjectCollection; // todo generics 14 | getTime():number; 15 | getViaPoints():GeoObjectCollection; // todo generics 16 | getWayPoints():GeoObjectCollection; // todo generics 17 | 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /ymaps/router/Segment.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module router { 3 | export class Segment { 4 | 5 | getAction():"left" 6 | |"slight left" 7 | |"hard left" 8 | |"right" 9 | |"slight right" 10 | |"hard right" 11 | |"none" 12 | |"back" 13 | |"enter roundabout" 14 | |"leave roundabout" 15 | //|"leave roundabout 1" 16 | //|"leave roundabout 2" 17 | //|"leave roundabout [N]" 18 | |"merge" 19 | |"board ferry" 20 | |string; // because of "leave roundabout [N]" 21 | 22 | getAngle():number; 23 | getCoordinates():number[][]; 24 | getHumanAction():string; 25 | getHumanJamsTime():string; 26 | getHumanLength():string; 27 | getHumanTime():string; 28 | getIndex():number; 29 | getJamsTime():number; 30 | getLength():number; 31 | getPolylineEndIndex():number; 32 | getPolylineStartIndex():number; 33 | getStreet():string; 34 | getTime():number; 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /ymaps/router/ViaPoint.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module router { 3 | export class ViaPoint extends GeoObject{ 4 | 5 | getPathIndex():number; 6 | getSegmentIndex():number; 7 | 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /ymaps/router/WayPoint.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module router { 3 | export class WayPoint extends GeoObject{ 4 | 5 | properties:data.Manager; // todo determine? 6 | 7 | constructor(feature:WayPointFeature, options?:WayPointOption){ 8 | super(feature, options); 9 | } 10 | } 11 | 12 | export class WayPointFeature extends GeoObjectFeature{ 13 | properties:interfaces.IDataManager|WayPointFeatureProperties; 14 | } 15 | export class WayPointFeatureProperties extends GeoObjectFeatureProperties{} 16 | 17 | export class WayPointOption extends GeoObjectOptions{} 18 | 19 | } 20 | } -------------------------------------------------------------------------------- /ymaps/search.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export function search(request:string|number[], options?:SearchOptions):vow.Promise; 3 | 4 | export class SearchOptions { 5 | boundedBy:number[][]; 6 | json:boolean = false; 7 | provider:interfaces.ISearchProvider|string = "yandex#search"; 8 | results:number = 10; 9 | skip:number = 0; 10 | } 11 | } -------------------------------------------------------------------------------- /ymaps/shape/Circle.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module shape { 3 | export class Circle extends interfaces.IShape { 4 | 5 | constructor(pixelGeometry:interfaces.IPixelCircleGeometry, params?:CircleParameters); 6 | } 7 | 8 | export class CircleParameters{ 9 | fill:boolean = true; 10 | outline:boolean = true; 11 | strokeWidth:number = 0; 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /ymaps/shape/LineString.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module shape { 3 | export class LineString extends interfaces.IShape { 4 | 5 | constructor(pixelGeometry:interfaces.IPixelLineStringGeometry, params?:LineStringParameters); 6 | } 7 | 8 | export class LineStringParameters{ 9 | strokeWidth:number = 1; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /ymaps/shape/MultiPolygon.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module shape { 3 | export class MultiPolygon extends interfaces.IShape { 4 | 5 | constructor(pixelGeometry:interfaces.IPixelMultiPolygonGeometry, params?:MultiPolygonParameters); 6 | } 7 | 8 | export class MultiPolygonParameters{ 9 | fill:boolean = true; 10 | outline:boolean = true; 11 | strokeWidth:number = 0; 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /ymaps/shape/Polygon.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module shape { 3 | export class Polygon extends interfaces.IShape { 4 | 5 | constructor(pixelGeometry:interfaces.IPixelPolygonGeometry, params?:PolygonParameters); 6 | } 7 | 8 | export class PolygonParameters{ 9 | fill:boolean = true; 10 | outline:boolean = true; 11 | strokeWidth:number = 0; 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /ymaps/shape/Rectangle.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module shape { 3 | export class Rectangle extends interfaces.IShape { 4 | 5 | constructor(pixelGeometry:interfaces.IPixelRectangleGeometry, params?:RectangleParameters); 6 | } 7 | 8 | export class RectangleParameters{ 9 | fill:boolean = true; 10 | outline:boolean = true; 11 | strokeWidth:number = 0; 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /ymaps/shape/storage.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module shape { 3 | 4 | export var storage:util.Storage; 5 | 6 | } 7 | } -------------------------------------------------------------------------------- /ymaps/suggest.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | // todo generics 3 | export function suggest(request:string, options?:SuggestOptions):vow.Promise; 4 | 5 | export class SuggestOptions { 6 | boundedBy:number[][]; 7 | provider:interfaces.ISearchProvider|string = "yandex#search"; 8 | results:number; 9 | } 10 | } -------------------------------------------------------------------------------- /ymaps/template/filtersStorage.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module template { 3 | 4 | export var filtersStorage:util.Storage; 5 | 6 | } 7 | } -------------------------------------------------------------------------------- /ymaps/templateLayoutFactory.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | 3 | export var templateLayoutFactory:TemplateLayoutFactory; 4 | 5 | export class TemplateLayoutFactory { 6 | 7 | // todo determine return type 8 | // todo wtf in staticMethods description? report about type missed and docs wrong 9 | createClass(template:string, overrides?:Object, staticMethods?:any):Function; 10 | } 11 | 12 | } -------------------------------------------------------------------------------- /ymaps/traffic/provider/storage.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module traffic { 3 | export module provider { 4 | 5 | export var storage:util.Storage; 6 | 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /ymaps/types.d.ts: -------------------------------------------------------------------------------- 1 | namespace ymaps { 2 | type Dictionary = {[key:string]:T}; 3 | type Float = "left"|"right"|"none"; 4 | type PopupFloat = "left"|"right"; 5 | type Kind = "house"|"street"|"metro"|"district"|"locality"; 6 | type Provider = "yandex#map"|"yandex#publicMap"|"yandex#search"; 7 | type TrafficProvider = "traffic#actual"|"traffic#archive"; 8 | type Size = "auto"|"small"|"medium"|"large"; 9 | type MapTypes = "yandex#map"|"yandex#satellite"|"yandex#hybrid"|"yandex#publicMap"|"yandex#publicMapHybrid"; 10 | type FillRules = "evenOdd"|"nonZero"; 11 | type PixelRenderings = "jumpy"|"static"; 12 | type CoordRenderings = "shortestPath"|"straightPath"; 13 | type Transports = "bus"|"trolleybus"|"tramway"|"minibus"|"underground"|"suburban"; 14 | enum Controls{ 15 | FULLSCREEN_CONTROL = "fullscreenControl", 16 | GEOLOCATION_CONTROL = "geolocationControl", 17 | ROUTE_EDITOR = "routeEditor", 18 | RULER_CONTROL = "rulerControl", 19 | SEARCH_CONTROL = "searchControl", 20 | TRAFFIC_CONTROL = "trafficControl", 21 | TYPE_SELECTOR = "typeSelector", 22 | ZOOM_CONTROL = "zoomControl", 23 | SMALL_MAP_DEFAULT_SET = "smallMapDefaultSet", 24 | MEDIUM_MAP_DEFAULT_SET = "mediumMapDefaultSet", 25 | LARGE_MAP_DEFAULT_SET = "largeMapDefaultSet", 26 | DEFAULT = "default" 27 | } 28 | } -------------------------------------------------------------------------------- /ymaps/util/AsyncStorage.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module util { 3 | export class AsyncStorage extends util.Storage { 4 | 5 | // todo extract resolveCallback 6 | define(key:string, depends?:string[], resolveCallback?:(provide?:(value:any) => any, ...values:any[]) => any, context?:any); 7 | 8 | isDefined(key:string):boolean; 9 | 10 | // todo determine errorCallback argument 11 | require(keys:string|string[], successCallback?:(...values:any[]) => any, errorCallback?:(error?:any) => any, context?:any); 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /ymaps/util/Dragger.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module util { 3 | export class Dragger extends interfaces.IEventEmitter { 4 | 5 | constructor(params?:DraggerParams); 6 | 7 | destroy():any; 8 | isDragging():boolean; 9 | start(event:interfaces.IDomEvent):any; 10 | stop():any; 11 | } 12 | 13 | export class DraggerParams{ 14 | autoStartElement:HTMLElement|interfaces.IDomEventEmitter; 15 | byRightButton:boolean = false; 16 | tremor:number = 3; 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /ymaps/util/Storage.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module util { 3 | export class Storage { 4 | add(key:string, object:any):Storage; 5 | // todo check for Object type. Maybe wrong? 6 | get(key:string|Object):any; 7 | remove(key:string):Storage; 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /ymaps/util/augment.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module util { 3 | export function augment(ChildClass:Function, ParentClass:Function, override:Object):Object; 4 | 5 | // todo wtf string "вуашту"-"define" doing in docs? report? 6 | } 7 | } -------------------------------------------------------------------------------- /ymaps/util/bind.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module util { 3 | export function bind(callback:Function, context:Object):Object; 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/util/cursor/Accessor.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module util { 3 | export module cursor { 4 | export class Accessor { 5 | 6 | constructor(key:string); 7 | getKey():string; 8 | remove():any; 9 | 10 | // todo report about docs wrong 11 | setKey(key:string):any; 12 | } 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /ymaps/util/cursor/Manager.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module util { 3 | export module cursor { 4 | export class Manager { 5 | 6 | events:event.Manager; 7 | 8 | constructor(element:HTMLElement); 9 | 10 | push(key:"arrow"|"crosshair"|"grab"|"grabbing"|"help"|"zoom"|"move"|"pointer"|"inherit"):Accessor; 11 | 12 | } 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /ymaps/util/defineClass.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module util { 3 | export function defineClass(constructor:Function, parentClass?:Function, override?:Object):Object; 4 | } 5 | } -------------------------------------------------------------------------------- /ymaps/util/extend.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module util { 3 | // todo report about return type missed 4 | export function extend(target:Object, source:Object):Object; 5 | } 6 | } -------------------------------------------------------------------------------- /ymaps/util/hd.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module util { 3 | export var hd:HD; 4 | 5 | export class HD{ 6 | getPixelRatio():number; 7 | selectRatio(hash:interfaces.IRatioMap):number; 8 | selectValue(hash:Object|interfaces.IRatioMap):Object; // todo determine; dictionary 9 | } 10 | 11 | export class BoundsGetCenterAndZoomParams { 12 | inscribe:boolean = true; 13 | margin:number|number[] = 0; 14 | preciseZoom:boolean = false; 15 | } 16 | export class CenterAndZoom { 17 | center:number[]; 18 | zoom:number; 19 | } 20 | 21 | } 22 | } -------------------------------------------------------------------------------- /ymaps/util/math/areEqual.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module util { 3 | export module math { 4 | export function areEqual(first:number[], second:number[], diff?:number):boolean; 5 | } 6 | } 7 | } -------------------------------------------------------------------------------- /ymaps/util/math/cycleRestrict.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module util { 3 | export module math { 4 | export function cycleRestrict(value:number, min:number, max:number):number; 5 | } 6 | } 7 | } -------------------------------------------------------------------------------- /ymaps/util/math/restrict.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module util { 3 | export module math { 4 | export function restrict(value:number, min:number, max:number):number; 5 | } 6 | } 7 | } -------------------------------------------------------------------------------- /ymaps/util/pixelBounds.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module util { 3 | export var pixelBounds:PixelBounds; 4 | 5 | export class PixelBounds{ 6 | areIntersecting(bounds1:number[][], bounds2:number[][]):boolean; 7 | containsBounds(outer:number[][], inner:number[][]):boolean; 8 | containsPoint(bounds:number[][], point:number[]):boolean; 9 | fromBounds(sourceBounds:number[][][]):number[][]; 10 | fromPoints(points:number[][]):number[][]; 11 | getCenter(bounds:number[][]):number[]; 12 | getIntersection(bounds1:number[][], bounds2:number[][]):number[][]; 13 | getSize(bounds:number[][]):number[]; 14 | 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /ymaps/util/requireCenterAndZoom.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module util { 3 | // todo generics? 4 | export function requireCenterAndZoom(mapType:string|MapType, bounds:number[][], containerSize:number[], params?:RequireCenterAndZoomParams):vow.Promise; 5 | 6 | export class RequireCenterAndZoomParams { 7 | inscribe:boolean = true; 8 | margin:number = 0; 9 | preciseZoom:boolean = false; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /ymaps/vow/Deferred.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module vow { 3 | export class Deferred { 4 | promise():Promise; 5 | 6 | reject(reason:any):void; 7 | 8 | resolve(value:any):void; 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /ymaps/vow/Promise.d.ts: -------------------------------------------------------------------------------- 1 | module ymaps { 2 | export module vow { 3 | export class Promise { 4 | constructor(resolved?:Function); 5 | 6 | done(onFulfilled?:Function, onRejected?:Function, onProgress?:Function, ctx?:any):void; 7 | 8 | spread(onFulfilled?:Function, onRejected?:Function, ctx?:any):Promise; 9 | 10 | then(onFulfilled?:Function, onRejected?:Function, onProgress?:Function, ctx?:any):Promise; 11 | 12 | valueOf():any; 13 | } 14 | } 15 | } --------------------------------------------------------------------------------