diagram-js-origin
Advanced tools
Comparing version
function ConfigureOrigin(canvas) { | ||
var base = canvas.getLayer('bg'); | ||
var base = canvas.getLayer(); | ||
var g = base.group(), | ||
w = 60, h = 2, | ||
w = 30, h = 2, | ||
style = { | ||
'fill': '#ccc', | ||
'fill': '#EEE', | ||
'pointer-events': 'none' | ||
@@ -14,2 +14,4 @@ }; | ||
g.rect(h / -2, w / -2, h, w, h / 2).attr(style); | ||
g.text(10, 20, '(0, 0)').attr(style); | ||
} | ||
@@ -16,0 +18,0 @@ |
{ | ||
"name": "diagram-js-origin", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "A origin crosshair for diagram-js", | ||
@@ -30,3 +30,3 @@ "scripts": { | ||
"karma-firefox-launcher": "~0.1.3", | ||
"karma-bro": "~0.6.0", | ||
"karma-browserify": "^1.0.0", | ||
"brfs": "^1.2.0", | ||
@@ -33,0 +33,0 @@ "jsondiffpatch": "^0.1.8", |
8138
86.99%11
22.22%97
1.04%8
700%