@superset-ui/dimension
Advanced tools
Comparing version 0.12.12 to 0.12.13
@@ -1,10 +0,2 @@ | ||
function mergeOneSide(operation, a, b) { | ||
if (a === void 0) { | ||
a = 0; | ||
} | ||
if (b === void 0) { | ||
b = 0; | ||
} | ||
function mergeOneSide(operation, a = 0, b = 0) { | ||
if (Number.isNaN(a) || a === null) return b; | ||
@@ -15,15 +7,3 @@ if (Number.isNaN(b) || b === null) return a; | ||
export default function mergeMargin(margin1, margin2, mode) { | ||
if (margin1 === void 0) { | ||
margin1 = {}; | ||
} | ||
if (margin2 === void 0) { | ||
margin2 = {}; | ||
} | ||
if (mode === void 0) { | ||
mode = 'expand'; | ||
} | ||
export default function mergeMargin(margin1 = {}, margin2 = {}, mode = 'expand') { | ||
const { | ||
@@ -30,0 +10,0 @@ top, |
@@ -5,7 +5,3 @@ const DEFAULT_DIMENSION = { | ||
}; | ||
export default function getBBoxCeil(node, defaultDimension) { | ||
if (defaultDimension === void 0) { | ||
defaultDimension = DEFAULT_DIMENSION; | ||
} | ||
export default function getBBoxCeil(node, defaultDimension = DEFAULT_DIMENSION) { | ||
const { | ||
@@ -12,0 +8,0 @@ width, |
@@ -12,7 +12,3 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
createInContainer(container) { | ||
if (container === void 0) { | ||
container = document.body; | ||
} | ||
createInContainer(container = document.body) { | ||
if (this.activeNodes.has(container)) { | ||
@@ -33,7 +29,3 @@ const entry = this.activeNodes.get(container); | ||
removeFromContainer(container) { | ||
if (container === void 0) { | ||
container = document.body; | ||
} | ||
removeFromContainer(container = document.body) { | ||
if (this.activeNodes.has(container)) { | ||
@@ -40,0 +32,0 @@ const entry = this.activeNodes.get(container); |
const STYLE_FIELDS = ['font', 'fontWeight', 'fontStyle', 'fontSize', 'fontFamily', 'letterSpacing']; | ||
export default function updateTextNode(node, _temp) { | ||
let { | ||
className, | ||
style = {}, | ||
text | ||
} = _temp === void 0 ? {} : _temp; | ||
export default function updateTextNode(node, { | ||
className, | ||
style = {}, | ||
text | ||
} = {}) { | ||
const textNode = node; | ||
@@ -9,0 +8,0 @@ |
@@ -6,11 +6,3 @@ "use strict"; | ||
function mergeOneSide(operation, a, b) { | ||
if (a === void 0) { | ||
a = 0; | ||
} | ||
if (b === void 0) { | ||
b = 0; | ||
} | ||
function mergeOneSide(operation, a = 0, b = 0) { | ||
if (Number.isNaN(a) || a === null) return b; | ||
@@ -21,15 +13,3 @@ if (Number.isNaN(b) || b === null) return a; | ||
function mergeMargin(margin1, margin2, mode) { | ||
if (margin1 === void 0) { | ||
margin1 = {}; | ||
} | ||
if (margin2 === void 0) { | ||
margin2 = {}; | ||
} | ||
if (mode === void 0) { | ||
mode = 'expand'; | ||
} | ||
function mergeMargin(margin1 = {}, margin2 = {}, mode = 'expand') { | ||
const { | ||
@@ -36,0 +16,0 @@ top, |
@@ -10,7 +10,3 @@ "use strict"; | ||
function getBBoxCeil(node, defaultDimension) { | ||
if (defaultDimension === void 0) { | ||
defaultDimension = DEFAULT_DIMENSION; | ||
} | ||
function getBBoxCeil(node, defaultDimension = DEFAULT_DIMENSION) { | ||
const { | ||
@@ -17,0 +13,0 @@ width, |
@@ -17,7 +17,3 @@ "use strict"; | ||
createInContainer(container) { | ||
if (container === void 0) { | ||
container = document.body; | ||
} | ||
createInContainer(container = document.body) { | ||
if (this.activeNodes.has(container)) { | ||
@@ -38,7 +34,3 @@ const entry = this.activeNodes.get(container); | ||
removeFromContainer(container) { | ||
if (container === void 0) { | ||
container = document.body; | ||
} | ||
removeFromContainer(container = document.body) { | ||
if (this.activeNodes.has(container)) { | ||
@@ -45,0 +37,0 @@ const entry = this.activeNodes.get(container); |
@@ -7,8 +7,7 @@ "use strict"; | ||
function updateTextNode(node, _temp) { | ||
let { | ||
className, | ||
style = {}, | ||
text | ||
} = _temp === void 0 ? {} : _temp; | ||
function updateTextNode(node, { | ||
className, | ||
style = {}, | ||
text | ||
} = {}) { | ||
const textNode = node; | ||
@@ -15,0 +14,0 @@ |
{ | ||
"name": "@superset-ui/dimension", | ||
"version": "0.12.12", | ||
"version": "0.12.13", | ||
"description": "Superset UI dimension", | ||
@@ -28,3 +28,3 @@ "sideEffects": false, | ||
}, | ||
"gitHead": "6854fd7cfbfde1df2702c2579a71989eefccd721" | ||
"gitHead": "308f2abebca860cdabd1b3138b4237c81ef3296d" | ||
} |
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
42933
681