Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hpcc-js/common

Package Overview
Dependencies
Maintainers
1
Versions
192
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hpcc-js/common - npm Package Compare versions

Comparing version 0.0.41 to 0.0.42

8

lib-es6/HTMLWidget.js

@@ -75,6 +75,6 @@ import * as tslib_1 from "tslib";

return {
x: (round ? Math.round(this._boundingBox.x) : this._boundingBox.x) * this._scale,
y: (round ? Math.round(this._boundingBox.y) : this._boundingBox.y) * this._scale,
width: (round ? Math.round(this._boundingBox.width) : this._boundingBox.width) * this._scale,
height: (round ? Math.round(this._boundingBox.height) : this._boundingBox.height) * this._scale
x: (round ? Math.round(this._boundingBox.x) : this._boundingBox.x) * this._widgetScale,
y: (round ? Math.round(this._boundingBox.y) : this._boundingBox.y) * this._widgetScale,
width: (round ? Math.round(this._boundingBox.width) : this._boundingBox.width) * this._widgetScale,
height: (round ? Math.round(this._boundingBox.height) : this._boundingBox.height) * this._widgetScale
};

@@ -81,0 +81,0 @@ };

@@ -189,6 +189,6 @@ import * as tslib_1 from "tslib";

if (this._drawStartPos === "origin" && this._target instanceof SVGElement) {
this._element.attr("transform", "translate(" + (this._pos.x - this._size.width / 2) + "," + (this._pos.y - this._size.height / 2) + ")scale(" + this._scale + ")");
this._element.attr("transform", "translate(" + (this._pos.x - this._size.width / 2) + "," + (this._pos.y - this._size.height / 2) + ")scale(" + this._widgetScale + ")");
}
else {
this._element.attr("transform", "translate(" + this._pos.x + "," + this._pos.y + ")scale(" + this._scale + ")");
this._element.attr("transform", "translate(" + this._pos.x + "," + this._pos.y + ")scale(" + this._widgetScale + ")");
}

@@ -232,6 +232,6 @@ };

return {
x: (round ? Math.round(this._boundingBox.x) : this._boundingBox.x) * this._scale,
y: (round ? Math.round(this._boundingBox.y) : this._boundingBox.y) * this._scale,
width: (round ? Math.round(this._boundingBox.width) : this._boundingBox.width) * this._scale,
height: (round ? Math.round(this._boundingBox.height) : this._boundingBox.height) * this._scale
x: (round ? Math.round(this._boundingBox.x) : this._boundingBox.x) * this._widgetScale,
y: (round ? Math.round(this._boundingBox.y) : this._boundingBox.y) * this._widgetScale,
width: (round ? Math.round(this._boundingBox.width) : this._boundingBox.width) * this._widgetScale,
height: (round ? Math.round(this._boundingBox.height) : this._boundingBox.height) * this._widgetScale
};

@@ -238,0 +238,0 @@ };

@@ -28,3 +28,3 @@ import { Selection as d3Selection } from "d3-selection";

protected _size: any;
protected _scale: any;
protected _widgetScale: any;
protected _visible: any;

@@ -31,0 +31,0 @@ protected _display: any;

@@ -24,3 +24,3 @@ import * as tslib_1 from "tslib";

_this._size = { width: 0, height: 0 };
_this._scale = 1;
_this._widgetScale = 1;
_this._visible = true;

@@ -150,3 +150,3 @@ _this._target = null;

this._overlayElement
.attr("transform", "translate(" + _.x + "," + _.y + ")scale(" + this._scale + ")");
.attr("transform", "translate(" + _.x + "," + _.y + ")scale(" + this._widgetScale + ")");
}

@@ -211,7 +211,7 @@ return this;

if (!arguments.length)
return this._scale;
this._scale = _;
return this._widgetScale;
this._widgetScale = _;
if (this._overlayElement) {
this._overlayElement
.attr("transform", "translate(" + _.x + "," + _.y + ")scale(" + this._scale + ")");
.attr("transform", "translate(" + _.x + "," + _.y + ")scale(" + this._widgetScale + ")");
}

@@ -218,0 +218,0 @@ return this;

@@ -86,6 +86,6 @@ (function (factory) {

return {
x: (round ? Math.round(this._boundingBox.x) : this._boundingBox.x) * this._scale,
y: (round ? Math.round(this._boundingBox.y) : this._boundingBox.y) * this._scale,
width: (round ? Math.round(this._boundingBox.width) : this._boundingBox.width) * this._scale,
height: (round ? Math.round(this._boundingBox.height) : this._boundingBox.height) * this._scale
x: (round ? Math.round(this._boundingBox.x) : this._boundingBox.x) * this._widgetScale,
y: (round ? Math.round(this._boundingBox.y) : this._boundingBox.y) * this._widgetScale,
width: (round ? Math.round(this._boundingBox.width) : this._boundingBox.width) * this._widgetScale,
height: (round ? Math.round(this._boundingBox.height) : this._boundingBox.height) * this._widgetScale
};

@@ -92,0 +92,0 @@ };

@@ -200,6 +200,6 @@ (function (factory) {

if (this._drawStartPos === "origin" && this._target instanceof SVGElement) {
this._element.attr("transform", "translate(" + (this._pos.x - this._size.width / 2) + "," + (this._pos.y - this._size.height / 2) + ")scale(" + this._scale + ")");
this._element.attr("transform", "translate(" + (this._pos.x - this._size.width / 2) + "," + (this._pos.y - this._size.height / 2) + ")scale(" + this._widgetScale + ")");
}
else {
this._element.attr("transform", "translate(" + this._pos.x + "," + this._pos.y + ")scale(" + this._scale + ")");
this._element.attr("transform", "translate(" + this._pos.x + "," + this._pos.y + ")scale(" + this._widgetScale + ")");
}

@@ -243,6 +243,6 @@ };

return {
x: (round ? Math.round(this._boundingBox.x) : this._boundingBox.x) * this._scale,
y: (round ? Math.round(this._boundingBox.y) : this._boundingBox.y) * this._scale,
width: (round ? Math.round(this._boundingBox.width) : this._boundingBox.width) * this._scale,
height: (round ? Math.round(this._boundingBox.height) : this._boundingBox.height) * this._scale
x: (round ? Math.round(this._boundingBox.x) : this._boundingBox.x) * this._widgetScale,
y: (round ? Math.round(this._boundingBox.y) : this._boundingBox.y) * this._widgetScale,
width: (round ? Math.round(this._boundingBox.width) : this._boundingBox.width) * this._widgetScale,
height: (round ? Math.round(this._boundingBox.height) : this._boundingBox.height) * this._widgetScale
};

@@ -249,0 +249,0 @@ };

@@ -28,3 +28,3 @@ import { Selection as d3Selection } from "d3-selection";

protected _size: any;
protected _scale: any;
protected _widgetScale: any;
protected _visible: any;

@@ -31,0 +31,0 @@ protected _display: any;

@@ -35,3 +35,3 @@ (function (factory) {

_this._size = { width: 0, height: 0 };
_this._scale = 1;
_this._widgetScale = 1;
_this._visible = true;

@@ -161,3 +161,3 @@ _this._target = null;

this._overlayElement
.attr("transform", "translate(" + _.x + "," + _.y + ")scale(" + this._scale + ")");
.attr("transform", "translate(" + _.x + "," + _.y + ")scale(" + this._widgetScale + ")");
}

@@ -222,7 +222,7 @@ return this;

if (!arguments.length)
return this._scale;
this._scale = _;
return this._widgetScale;
this._widgetScale = _;
if (this._overlayElement) {
this._overlayElement
.attr("transform", "translate(" + _.x + "," + _.y + ")scale(" + this._scale + ")");
.attr("transform", "translate(" + _.x + "," + _.y + ")scale(" + this._widgetScale + ")");
}

@@ -229,0 +229,0 @@ return this;

{
"name": "@hpcc-js/common",
"version": "0.0.41",
"version": "0.0.42",
"description": "hpcc-js - Viz Common",

@@ -24,24 +24,24 @@ "main": "lib/index.js",

"dependencies": {
"colorbrewer": "^1.0.0",
"d3-array": "^1.2.0",
"d3-brush": "^1.0.4",
"d3-collection": "^1.0.4",
"d3-dispatch": "^1.0.3",
"d3-drag": "^1.1.0",
"d3-dsv": "^1.0.5",
"d3-format": "^1.2.0",
"d3-interpolate": "^1.1.5",
"d3-scale": "^1.0.6",
"d3-selection": "^1.1.0",
"d3-zoom": "^1.3.0",
"es6-promise": "^4.1.1",
"font-awesome": "^4.7.0",
"tslib": "^1.7.1"
"colorbrewer": "1.0.0",
"d3-array": "1.2.0",
"d3-brush": "1.0.4",
"d3-collection": "1.0.4",
"d3-dispatch": "1.0.3",
"d3-drag": "1.1.0",
"d3-dsv": "1.0.5",
"d3-format": "1.2.0",
"d3-interpolate": "1.1.5",
"d3-scale": "1.0.6",
"d3-selection": "1.1.0",
"d3-zoom": "1.3.0",
"es6-promise": "4.1.1",
"font-awesome": "4.7.0",
"tslib": "1.7.1"
},
"devDependencies": {
"@hpcc-js/bundle": "^0.0.12",
"cpx": "^1.5.0",
"rimraf": "^2.6.1",
"typedoc": "^0.7.1",
"typescript": "^2.5.2"
"@hpcc-js/bundle": "^0.0.13",
"cpx": "1.5.0",
"rimraf": "2.6.1",
"typedoc": "0.7.1",
"typescript": "2.5.2"
},

@@ -48,0 +48,0 @@ "repository": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc