@devexpress/dx-chart-core
Advanced tools
Comparing version 2.0.4 to 2.0.5
/** | ||
* Bundle of @devexpress/dx-chart-core | ||
* Generated: 2019-09-02 | ||
* Version: 2.0.4 | ||
* Generated: 2019-09-16 | ||
* Version: 2.0.5 | ||
* License: https://js.devexpress.com/Licensing | ||
@@ -369,3 +369,3 @@ */ | ||
var _a; | ||
return (__assign({}, domains, (_a = {}, _a[name] = makeDomain(options), _a))); | ||
return (__assign(__assign({}, domains), (_a = {}, _a[name] = makeDomain(options), _a))); | ||
}; | ||
@@ -389,3 +389,3 @@ var mergeContinuousDomains = function (domain, items) { | ||
var factory = guessFactory(series.points, getItem); | ||
return __assign({}, domain, { factory: factory, isDiscrete: isDiscrete(factory) }); | ||
return __assign(__assign({}, domain), { factory: factory, isDiscrete: isDiscrete(factory) }); | ||
}; | ||
@@ -396,3 +396,3 @@ /** @internal */ | ||
var merged = merge(domain.domain, items); | ||
return merged === domain.domain ? domain : __assign({}, domain, { domain: domain.modifyDomain ? domain.modifyDomain(merged) : merged }); | ||
return merged === domain.domain ? domain : __assign(__assign({}, domain), { domain: domain.modifyDomain ? domain.modifyDomain(merged) : merged }); | ||
}; | ||
@@ -417,3 +417,3 @@ var getArgumentDomainItems = function (series) { return series.points.map(getArgument); }; | ||
} | ||
return Object.keys(changes).length ? __assign({}, domains, changes) : domains; | ||
return Object.keys(changes).length ? __assign(__assign({}, domains), changes) : domains; | ||
}; | ||
@@ -440,3 +440,3 @@ /** @internal */ | ||
return prevBBoxes; | ||
return __assign({}, prevBBoxes, (_b = {}, _b[placeholder] = bBox, _b)); | ||
return __assign(__assign({}, prevBBoxes), (_b = {}, _b[placeholder] = bBox, _b)); | ||
}; | ||
@@ -600,3 +600,3 @@ /** @internal */ | ||
var _a = pieData[point.index], startAngle = _a.startAngle, endAngle = _a.endAngle; | ||
return __assign({}, point, { arg: x, val: y, startAngle: startAngle, | ||
return __assign(__assign({}, point), { arg: x, val: y, startAngle: startAngle, | ||
endAngle: endAngle, | ||
@@ -609,3 +609,3 @@ maxRadius: maxRadius }); | ||
var argumentScale = _a.argumentScale, valueScale = _a.valueScale; | ||
return function (point) { return (__assign({}, point, { arg: argumentScale(point.argument), val: valueScale(point.value) })); }; | ||
return function (point) { return (__assign(__assign({}, point), { arg: argumentScale(point.argument), val: valueScale(point.value) })); }; | ||
}; | ||
@@ -628,3 +628,3 @@ // Though transformations for line and scatter are the same, | ||
var ret = transform(point); | ||
return __assign({}, ret, { startVal: startVal }); | ||
return __assign(__assign({}, ret), { startVal: startVal }); | ||
}; | ||
@@ -638,3 +638,3 @@ }; | ||
var startVal = valueScale(0); | ||
return function (point) { return (__assign({}, point, { arg: argumentScale(point.argument), val: valueScale(point.value), startVal: startVal, maxBarWidth: getWidth(argumentScale) })); }; | ||
return function (point) { return (__assign(__assign({}, point), { arg: argumentScale(point.argument), val: valueScale(point.value), startVal: startVal, maxBarWidth: getWidth(argumentScale) })); }; | ||
}; | ||
@@ -717,5 +717,5 @@ // Used for domain calculation and stacking. | ||
if (argument !== undefined && value !== undefined) { | ||
points.push(__assign({ argument: argument, | ||
points.push(__assign(__assign({ argument: argument, | ||
value: value, | ||
index: index }, props, { color: getPointTransformer.getPointColor | ||
index: index }, props), { color: getPointTransformer.getPointColor | ||
? getPointTransformer.getPointColor(palette, index) : props.color })); | ||
@@ -732,3 +732,3 @@ } | ||
var seriesColor = props.color || palette[index % palette.length]; | ||
return __spread(series, [__assign({}, props, { index: index, name: getUniqueName(series, props.name), points: createPoints(props, data, __assign({}, restProps, { color: seriesColor }), palette), color: seriesColor })]); | ||
return __spread(series, [__assign(__assign({}, props), { index: index, name: getUniqueName(series, props.name), points: createPoints(props, data, __assign(__assign({}, restProps), { color: seriesColor }), palette), color: seriesColor })]); | ||
}; | ||
@@ -738,4 +738,4 @@ // TODO: Memoization is much needed here by the same reason as in "createPoints". | ||
var scalePoints = function (series, scales, rotated) { | ||
var transform = series.getPointTransformer(__assign({}, series, { argumentScale: scales[ARGUMENT_DOMAIN], valueScale: scales[getValueDomainName(series.scaleName)] })); | ||
var ret = __assign({}, series, { rotated: rotated, points: series.points.map(function (point) { return (__assign({}, transform(point), { rotated: rotated })); }) }); | ||
var transform = series.getPointTransformer(__assign(__assign({}, series), { argumentScale: scales[ARGUMENT_DOMAIN], valueScale: scales[getValueDomainName(series.scaleName)] })); | ||
var ret = __assign(__assign({}, series), { rotated: rotated, points: series.points.map(function (point) { return (__assign(__assign({}, transform(point)), { rotated: rotated })); }) }); | ||
return ret; | ||
@@ -784,3 +784,3 @@ }; | ||
var ret = transform(point); | ||
return __assign({}, ret, { startVal: valueScale(point.value0) }); | ||
return __assign(__assign({}, ret), { startVal: valueScale(point.value0) }); | ||
}; | ||
@@ -824,5 +824,5 @@ }; | ||
var _a = __read(dataItems[point.index], 2), value0 = _a[0], value = _a[1]; | ||
return __assign({}, point, { value: value, value0: value0 }); | ||
return __assign(__assign({}, point), { value: value, value0: value0 }); | ||
}); | ||
var stackedSeries = __assign({}, series, { points: points, isStacked: true }); | ||
var stackedSeries = __assign(__assign({}, series), { points: points, isStacked: true }); | ||
if (series.getPointTransformer.isStartedFromZero) { | ||
@@ -862,3 +862,3 @@ stackedSeries.getPointTransformer = getStackedPointTransformer(series.getPointTransformer); | ||
var arg = (original.arg - original.maxBarWidth * (0.5 - 0.5 * widthCoeff - groupOffset * widthCoeff)); | ||
var result = __assign({}, original, { arg: arg, maxBarWidth: original.maxBarWidth / groupCount }); | ||
var result = __assign(__assign({}, original), { arg: arg, maxBarWidth: original.maxBarWidth / groupCount }); | ||
return result; | ||
@@ -888,3 +888,3 @@ }; | ||
var getPointTransformer = getGroupedPointTransformer(seriesItem.getPointTransformer, groups.size, scale(getGroupName(seriesItem, i, seriesToStackMap))); | ||
return __assign({}, seriesItem, { getPointTransformer: getPointTransformer }); | ||
return __assign(__assign({}, seriesItem), { getPointTransformer: getPointTransformer }); | ||
}); | ||
@@ -903,3 +903,3 @@ }; | ||
Object.keys(domains).forEach(function (key) { | ||
result[key] = __assign({}, domains[key], { domain: [] }); | ||
result[key] = __assign(__assign({}, domains[key]), { domain: [] }); | ||
}); | ||
@@ -913,3 +913,3 @@ return result; | ||
var domain = updateDomainItems(domains[key], items); | ||
return domain !== domains[key] ? __assign({}, domains, (_a = {}, _a[key] = domain, _a)) : domains; | ||
return domain !== domains[key] ? __assign(__assign({}, domains), (_a = {}, _a[key] = domain, _a)) : domains; | ||
}; | ||
@@ -999,3 +999,3 @@ // Stacking changes data - so computed domains have to be discarded | ||
var animationStyle = getAnimationStyle(rotated, scales, point); | ||
return __assign({}, animationStyle, style); | ||
return __assign(__assign({}, animationStyle), style); | ||
}; }; | ||
@@ -1128,3 +1128,3 @@ | ||
} | ||
return Object.keys(changes).length ? __assign({}, ranges, changes) : ranges; | ||
return Object.keys(changes).length ? __assign(__assign({}, ranges), changes) : ranges; | ||
}; | ||
@@ -1163,3 +1163,3 @@ var boundsForScale = function (name, scales, currentBounds, interaction, type, delta, anchor, range) { | ||
if (Object.keys(changes).length) { | ||
var newViewport = __assign({}, viewport, changes); | ||
var newViewport = __assign(__assign({}, viewport), changes); | ||
if (onViewportChange) { | ||
@@ -1413,5 +1413,5 @@ onViewportChange(newViewport); | ||
if (set.size) { | ||
props.points = seriesItem.points.map(function (point) { return (set.has(point.index) ? __assign({}, point, { state: state }) : point); }); | ||
props.points = seriesItem.points.map(function (point) { return (set.has(point.index) ? __assign(__assign({}, point), { state: state }) : point); }); | ||
} | ||
return __assign({}, seriesItem, props); | ||
return __assign(__assign({}, seriesItem), props); | ||
}); | ||
@@ -1418,0 +1418,0 @@ // This is to prevent false rerenders. |
{ | ||
"name": "@devexpress/dx-chart-core", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "Core library for the DevExtreme Reactive Chart component", | ||
@@ -47,18 +47,18 @@ "author": { | ||
"jest": "^24.9.0", | ||
"rollup": "^1.20.3", | ||
"rollup": "^1.21.4", | ||
"rollup-plugin-license": "^0.12.1", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-replace": "^2.2.0", | ||
"rollup-plugin-typescript2": "^0.24.0", | ||
"ts-jest": "^24.0.2", | ||
"tslint": "^5.19.0", | ||
"rollup-plugin-typescript2": "^0.24.2", | ||
"ts-jest": "^24.1.0", | ||
"tslint": "^5.20.0", | ||
"tslint-config-airbnb": "^5.11.1", | ||
"typescript": "3.5.3" | ||
"typescript": "3.6.3" | ||
}, | ||
"dependencies": { | ||
"d3-array": "^2.3.1", | ||
"d3-scale": "^3.0.1", | ||
"d3-scale": "^3.1.0", | ||
"d3-shape": "^1.3.5" | ||
}, | ||
"gitHead": "7faeea645c9df41556a06e7a47e3e8662fc7228e" | ||
"gitHead": "4bb5d7c320246b191befa21436ee6443d3fe5ac7" | ||
} |
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
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
383740
Updatedd3-scale@^3.1.0