diagram-js-origin
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -12,6 +12,6 @@ function ConfigureOrigin(canvas) { | ||
// two rectangles that mark the diagram origin | ||
g.rect(w / -2, h / -2, w, h, h / 2).attr(style); | ||
g.rect(h / -2, w / -2, h, w, h / 2).attr(style); | ||
g.rect(w / -2 - 1, h / -2 - 1, w, h, h / 2).attr(style); | ||
g.rect(h / -2 - 1, w / -2 - 1, h, w, h / 2).attr(style); | ||
g.text(10, 20, '(0, 0)').attr(style); | ||
g.text(-40, -10, '(0, 0)').attr(style); | ||
} | ||
@@ -18,0 +18,0 @@ |
{ | ||
"name": "diagram-js-origin", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "A origin crosshair for diagram-js", | ||
@@ -37,7 +37,7 @@ "scripts": { | ||
"karma-chai": "^0.1.0", | ||
"diagram-js": "^0.7.0" | ||
"diagram-js": "^0.8.0" | ||
}, | ||
"peerDependencies": { | ||
"diagram-js": "^0.7.0" | ||
"diagram-js": "^0.8.0" | ||
} | ||
} |
8156