diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-25 13:04:42 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-25 13:04:42 +0100 |
commit | 059058fbac867a270ceef34970f5ac04f58ec913 (patch) | |
tree | 9606dc5d7ba661890dfacd7e8cf5f879d638fc15 /spec | |
parent | 0a357dd3063bcb18ccf7de446f206e8598bea9a1 (diff) | |
download | svg.js-059058fbac867a270ceef34970f5ac04f58ec913.tar.gz svg.js-059058fbac867a270ceef34970f5ac04f58ec913.zip |
fix Morphable so that it works with color spaces. It prefers the `to` space over the `from` space
- _d is initialized to 0 so toArray does not give you undefined
- fix tests
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec/morphing.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/spec/morphing.js b/spec/spec/morphing.js index 7fc0c06..50d0ccb 100644 --- a/spec/spec/morphing.js +++ b/spec/spec/morphing.js @@ -44,7 +44,7 @@ describe('Morphing', function () { expect(morpher instanceof SVG.Morphable).toBe(true) expect(morpher.type()).toBe(SVG.Color) expect(morpher.at(0.5) instanceof SVG.Color).toBe(true) - expect(morpher.at(0.5).toHex()).toBe('#808080') + expect(morpher.at(0.5).hex()).toBe('#808080') }) it(`Creates a morphable out of an SVG.Box`, function () { |