@hpcc-js/common
Advanced tools
Comparing version 0.0.41 to 0.0.42
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4548867
27803
+ Addedcolorbrewer@1.0.0(transitive)
+ Addedd3-array@1.2.0(transitive)
+ Addedd3-brush@1.0.4(transitive)
+ Addedd3-collection@1.0.4(transitive)
+ Addedd3-dispatch@1.0.3(transitive)
+ Addedd3-drag@1.1.0(transitive)
+ Addedd3-dsv@1.0.5(transitive)
+ Addedd3-format@1.2.0(transitive)
+ Addedd3-interpolate@1.1.5(transitive)
+ Addedd3-scale@1.0.6(transitive)
+ Addedd3-selection@1.1.0(transitive)
+ Addedd3-zoom@1.3.0(transitive)
+ Addedes6-promise@4.1.1(transitive)
+ Addedtslib@1.7.1(transitive)
- Removedcolorbrewer@1.5.9(transitive)
- Removedd3-array@1.2.4(transitive)
- Removedd3-brush@1.1.6(transitive)
- Removedd3-collection@1.0.7(transitive)
- Removedd3-dispatch@1.0.6(transitive)
- Removedd3-drag@1.2.5(transitive)
- Removedd3-dsv@1.2.0(transitive)
- Removedd3-format@1.4.5(transitive)
- Removedd3-interpolate@1.4.0(transitive)
- Removedd3-scale@1.0.7(transitive)
- Removedd3-selection@1.4.2(transitive)
- Removedd3-zoom@1.8.3(transitive)
- Removedes6-promise@4.2.8(transitive)
- Removedtslib@1.14.1(transitive)
Updatedcolorbrewer@1.0.0
Updatedd3-array@1.2.0
Updatedd3-brush@1.0.4
Updatedd3-collection@1.0.4
Updatedd3-dispatch@1.0.3
Updatedd3-drag@1.1.0
Updatedd3-dsv@1.0.5
Updatedd3-format@1.2.0
Updatedd3-interpolate@1.1.5
Updatedd3-scale@1.0.6
Updatedd3-selection@1.1.0
Updatedd3-zoom@1.3.0
Updatedes6-promise@4.1.1
Updatedfont-awesome@4.7.0
Updatedtslib@1.7.1