Skip to content

Commit a70baaa

Browse files
Merge pull request #8 from monfera/master
Tick diffing to check all properties that impact the rendered result
2 parents 4b3287f + 0c34f02 commit a70baaa

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

lib/ticks.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,15 @@ function ticksEqual(ticksA, ticksB) {
6363
for(var j=0; j<ticksA[i].length; ++j) {
6464
var a = ticksA[i][j]
6565
var b = ticksB[i][j]
66-
if(a.x !== b.x || a.text !== b.text) {
66+
if(
67+
a.x !== b.x ||
68+
a.text !== b.text ||
69+
a.font !== b.font ||
70+
a.fontColor !== b.fontColor ||
71+
a.fontSize !== b.fontSize ||
72+
a.dx !== b.dx ||
73+
a.dy !== b.dy
74+
) {
6775
return false
6876
}
6977
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gl-axes3d",
3-
"version": "1.2.4",
3+
"version": "1.2.5",
44
"description": "3D axes for WebGL",
55
"main": "axes.js",
66
"directories": {

0 commit comments

Comments
 (0)