New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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.1.0

docs/origin.png

8

lib/configure-origin.js
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",