🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

diagram-js-origin

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diagram-js-origin - npm Package Compare versions

Comparing version

to
0.3.0

6

lib/configure-origin.js

@@ -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"
}
}