Merge branch 'refactorvectors' of github.com:CloudMade/Leaflet into refactorvectors

This commit is contained in:
Vladimir Agafonkin 2012-10-31 14:47:41 +02:00
commit 64f6422a23

View File

@ -1,70 +1,88 @@
#### DONE - Viewport (SVG)
DONE - Viewport (SVG) * calculating viewPort
calculating viewPort * setting up/updating root
setting up/updating root * creating elements
creating elements * zoom animation
zoom animation
DONE - Viewport.VML mixin #### DONE - Viewport.VML mixin
DONE - Viewport.Canvas extends Viewport #### DONE - Viewport.Canvas extends Viewport
Map.Viewport mixin #### Map.Viewport mixin
managing viewports
* managing viewports
Path ---
default style options
update clip on moveend
Polyline extends Path #### Path
project latlngs
clip and simplify polyline points
Polygon extends Polyline * default style options
clip and simplify polygon points * update clip on moveend
Circle extends Path #### Polyline extends Path
project circle latlng / radius
CircleMarker extends Path * project latlngs
* clip and simplify polyline points
#### Polygon extends Polyline
Clip (SVG) * clip and simplify polygon points
set/update svg styles
set up svg events
create/update svg path
Clip.VML mixin #### Circle extends Path
set/update vml styles
set up vml events
create/update vml path
Clip.Polyline extends Clip * project circle latlng / radius
generate polyline path string from points
Clip.Polygon extends Clip #### CircleMarker extends Path
generate polyline path string from points
Clip.Circle extends Clip ---
generate circle path string from circle/radius
#### Clip (SVG)
Clip.Canvas * set/update svg styles
set/update fill/stroke style * set up svg events
draw path from points * create/update svg path
set up click event (depends on path containsPoint)
Clip.Canvas.Polyline extends Clip.Canvas #### Clip.VML mixin
containsPoint
Clip.Canvas.Polygon extends Clip.Canvas * set/update vml styles
containsPoint * set up vml events
* create/update vml path
Clip.Canvas.Circle extends Clip.Canvas #### Clip.Polyline extends Clip
containsPoint
draw arc from point/radius
* generate polyline path string from points
#### Clip.Polygon extends Clip
* generate polyline path string from points
#### Clip.Circle extends Clip
* generate circle path string from circle/radius
---
#### Clip.Canvas
* set/update fill/stroke style
* draw path from points
* set up click event (depends on path containsPoint)
#### Clip.Canvas.Polyline extends Clip.Canvas
* containsPoint
#### Clip.Canvas.Polygon extends Clip.Canvas
* containsPoint
#### Clip.Canvas.Circle extends Clip.Canvas
* containsPoint
* draw arc from point/radius
---
```
vector vector
polyline polyline
Polyline.js Polyline.js
@ -88,3 +106,4 @@ vector
Viewport.VML.js Viewport.VML.js
Viewport.Canvas.js Viewport.Canvas.js
Map.Viewport.js Map.Viewport.js
```