Bryan Housel
33fab5580b
Before calling init() make sure the assetPath is set
...
init kicks off building the ui, which can fetch spritesheets for the <defs>
The assetPath needs to be set otherwise these files will not be found
2021-08-16 22:06:42 -04:00
Quincy Morgan
c893147e15
Convert some element ids to classes to avoid collisions when embedding iD
2020-03-20 13:53:17 -07:00
Bryan Housel
e19bcb77d5
Require init() call before coreContext starts doing things
...
(closes #7304 )
2020-01-29 19:27:12 -05:00
Bryan Housel
2e2b037e36
Move a bunch of commonly used vector and projection math functions into geo
...
- geoVecAdd
- geoVecSubtract
- geoVecScale
- geoZoomToScale
- geoScaleToZoom
2017-12-18 15:05:42 -05:00
Bryan Housel
b9e48d1682
WIP: Move layer-hit to layer-points with explict sublayers, update tests
...
This is more work to further isolate the layers that entities draw to.
It makes it easier to debug what is going on, and can eventually lead to
deferred drawing, if each draw function is in its own place and not dependant
on anything else.
I've started to replace the vertex-hover with an explicit layer for touch
targets.
Also had to change a lot of the svg tests, which are really brittle.
Things would happen like - the surface would be created, it would kick of a
deferred redraw, which would notice that the zoom was 0 and call
editOff, which would remove the osm layers that were just created and
that the tests were trying to draw to. These tests need proper zoom and
projection otherwise nothing works.
2017-12-14 17:38:43 -05:00
Bryan Housel
d07d20cba7
Drop custom "classed" chai assertation and just use d3
2017-04-24 10:27:29 -04:00
Bryan Housel
f800e5afbc
Remove unnecessary window parameter to Context
2016-11-10 15:19:03 -05:00
Bryan Housel
87950fd472
Fix lib export, flatten names in tests and docs
2016-10-04 21:56:09 -04:00
Bryan Housel
273407da3d
Fix svg layer selections, fix and add tests..
2016-09-09 14:19:13 -04:00
Bryan Housel
7ca6d06254
Replace iD global with iD.Context() module ( #3254 )
2016-07-19 10:15:32 -04:00
Kushan Joshi
1db442b9e8
Remove linting errors fromspec/svg
2016-06-15 18:26:11 +05:30
Bryan Housel
e22bd1eceb
Pass projection to iD.svg.Layers in tests
2016-06-10 13:06:28 -04:00
Bryan Housel
45e4e730a8
iD.svg.Surface -> iD.svg.Layers
2016-02-24 15:41:22 -05:00
Bryan Housel
f37a809001
Make point draw function more consistent with other draw functions
2016-02-22 16:52:49 -05:00
John Firebaugh
dd0e08b244
Write presets and imagery to standalone files
2014-10-23 15:52:29 -07:00
John Firebaugh
67d95595ba
Points always need full re-render ( #569 )
2013-05-20 12:05:31 -07:00
John Firebaugh
77ce20c8c1
Add configurable image path
2013-04-16 17:20:21 -07:00
John Firebaugh
da902061d6
Fix tests
2013-03-08 20:37:19 -08:00
John Firebaugh
8564279926
Use identity projection in tests
2013-01-17 11:57:29 -08:00
John Firebaugh
9f1506af5e
Always use rounded projection
2013-01-17 11:57:29 -08:00
John Firebaugh
acaaab5dc9
Extract iD.svg.Surface
2013-01-11 16:01:39 -08:00
John Firebaugh
e95d163dbc
Apply tag classes to vertices and points
...
While here, introduce a `classed` matcher for Chai.
2013-01-11 12:22:23 -08:00