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

@devexpress/dx-chart-core

Package Overview
Dependencies
Maintainers
12
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devexpress/dx-chart-core - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

79

dist/dx-chart-core.es.js
/**
* Bundle of @devexpress/dx-chart-core
* Generated: 2019-08-16
* Version: 2.0.3
* Generated: 2019-09-02
* Version: 2.0.4
* License: https://js.devexpress.com/Licensing

@@ -38,2 +38,14 @@ */

function __rest(s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
}
function __read(o, n) {

@@ -495,32 +507,29 @@ var m = typeof Symbol === "function" && o[Symbol.iterator];

};
var createTickFilter = function (isHor, size) { return (isHor
? function (tick) { return tick.x1 >= 0 && tick.x1 <= size; }
: function (tick) { return tick.y1 >= 0 && tick.y1 <= size; }); };
/** @internal */
var axisCoordinates = function (_a) {
var scaleName = _a.scaleName, scale = _a.scale, position = _a.position, tickSize = _a.tickSize, tickFormat = _a.tickFormat, indentFromAxis = _a.indentFromAxis, paneSize = _a.paneSize, rotated = _a.rotated;
var isHor = isHorizontal(scaleName, rotated);
var tickCoordinatesGetter = function (_a) {
var isHor = _a.isHor, scale = _a.scale, tickCount = _a.tickCount, tickFormat = _a.tickFormat, position = _a.position, tickSize = _a.tickSize, indentFromAxis = _a.indentFromAxis;
var formatTick = getFormat(scale, tickCount, tickFormat);
var options = (isHor ? createHorizontalOptions : createVerticalOptions)(position, tickSize, indentFromAxis);
var tickCount = getTickCount(scale.range(), paneSize[1 - Number(isHor)]);
var formatTick = getFormat(scale, tickCount, tickFormat);
var ticks = createTicks(scale, tickCount, function (coordinates, key, tick) { return (__assign({ key: key, x1: coordinates, x2: coordinates, y1: coordinates, y2: coordinates, xText: coordinates, yText: coordinates, text: formatTick(tick) }, options)); });
return {
ticks: ticks,
sides: [Number(isHor), Number(!isHor)],
};
return function (coordinates, key, tick) { return (__assign({ key: key, x1: coordinates, x2: coordinates, y1: coordinates, y2: coordinates, xText: coordinates, yText: coordinates, text: formatTick(tick) }, options)); };
};
// It is a part of a temporary walkaround. See note in Axis plugin.
/** @internal */
var createTickFilter = function (_a) {
var _b = __read(_a, 2), width = _b[0], height = _b[1];
return (width > 0
? function (tick) { return tick.x1 >= 0 && tick.x1 <= width; }
: function (tick) { return tick.y1 >= 0 && tick.y1 <= height; });
var gridCoordinatesGetter = function (_a) {
var isHor = _a.isHor;
var options = isHor ? { y1: 0 } : { x1: 0 };
return function (coordinates, key) { return (__assign({ key: key, x1: coordinates, y1: coordinates }, options)); };
};
var horizontalGridOptions = { y: 0, dy: 1 };
var verticalGridOptions = { x: 0, dx: 1 };
/** @internal */
var getGridCoordinates = function (_a) {
var scaleName = _a.scaleName, scale = _a.scale, paneSize = _a.paneSize, rotated = _a.rotated;
var getTickCoordinates = function (_a) {
var scaleName = _a.scaleName, scale = _a.scale, paneSize = _a.paneSize, rotated = _a.rotated, callback = _a.callback, restProps = __rest(_a, ["scaleName", "scale", "paneSize", "rotated", "callback"]);
var isHor = isHorizontal(scaleName, rotated);
var tickCount = getTickCount(scale.range(), paneSize[1 - Number(isHor)]);
var options = isHor ? horizontalGridOptions : verticalGridOptions;
return createTicks(scale, tickCount, function (coordinates, key) { return (__assign({ key: key, x: coordinates, y: coordinates, dx: 0, dy: 0 }, options)); });
var ticks = createTicks(scale, tickCount, callback(__assign({ isHor: isHor, scale: scale, tickCount: tickCount }, restProps)));
var visibleTicks = ticks.filter(createTickFilter(isHor, paneSize[1 - Number(isHor)]));
return {
ticks: visibleTicks,
sides: [Number(isHor), Number(!isHor)],
};
};

@@ -726,2 +735,22 @@

var scaleSeriesPoints = function (series, scales, rotated) { return series.map(function (seriesItem) { return scalePoints(seriesItem, scales, rotated); }); };
/** @internal */
var getVisibility = function (pane, centerX, centerY, width, height) {
return (centerX - width / 2 < 0 && centerX + width / 2 < 0)
|| (centerX - width / 2 > pane.width && centerX + width / 2 > pane.width)
|| (centerY - height / 2 < 0 && centerY + height / 2 < 0)
|| (centerY - height / 2 > pane.height && centerY + height / 2 > pane.height) ?
'hidden' : 'visible';
};
/** @internal */
var adjustBarSize = function (bar, _a) {
var width = _a.width, height = _a.height;
var x = Math.max(0, bar.x);
var y = Math.max(0, bar.y);
return {
x: x,
y: y,
width: Math.min(width, bar.x + bar.width) - x,
height: Math.min(height, bar.y + bar.height) - y,
};
};

@@ -1455,3 +1484,3 @@ // "Stack" plugin relies on "data" and "series" getters and

export { ARGUMENT_DOMAIN, BAND, BOTTOM, END, HORIZONTAL, HOVERED, LEFT, LINEAR, MIDDLE, RIGHT, SELECTED, START, TOP, VALUE_DOMAIN, VERTICAL, addDomain, addSeries, adjustLayout, attachEvents, axisCoordinates, bBoxes, buildAnimatedStyleGetter, buildEventHandlers, buildScales, changeSeriesState, createAreaHitTester, createBarHitTester, createLineHitTester, createPieHitTester, createReference, createScatterHitTester, createSplineHitTester, createTickFilter, dArea, dBar, dLine, dPie, dRotateArea, dRotateLine, dRotateSpline, dSpline, dSymbol, defaultDomains, detachEvents, extendDomains, findSeriesByName, getAreaAnimationStyle, getAreaPointTransformer, getBarPointTransformer, getDeltaForTouches, getEventCoords, getGridCoordinates, getLegendItems, getLinePointTransformer, getOffset, getParameters, getPieAnimationStyle, getPiePointTransformer, getRanges, getRect$1 as getRect, getRotatedPosition, getScatterAnimationStyle, getScatterPointTransformer, getStackedDomains, getStackedSeries, getValueDomainName, getViewport, getWheelDelta, getWidth, growBounds, invertBoundsRange, isHorizontal, isKeyPressed, isMultiTouch, isValidPosition, makeScale, moveBounds, processHandleTooltip, processPointerMove, rangesEqual, scaleBand, scaleBounds, scaleLinear, scaleSeriesPoints, setCursorType, updateDomainItems };
export { ARGUMENT_DOMAIN, BAND, BOTTOM, END, HORIZONTAL, HOVERED, LEFT, LINEAR, MIDDLE, RIGHT, SELECTED, START, TOP, VALUE_DOMAIN, VERTICAL, addDomain, addSeries, adjustBarSize, adjustLayout, attachEvents, bBoxes, buildAnimatedStyleGetter, buildEventHandlers, buildScales, changeSeriesState, createAreaHitTester, createBarHitTester, createLineHitTester, createPieHitTester, createReference, createScatterHitTester, createSplineHitTester, dArea, dBar, dLine, dPie, dRotateArea, dRotateLine, dRotateSpline, dSpline, dSymbol, defaultDomains, detachEvents, extendDomains, findSeriesByName, getAreaAnimationStyle, getAreaPointTransformer, getBarPointTransformer, getDeltaForTouches, getEventCoords, getLegendItems, getLinePointTransformer, getOffset, getParameters, getPieAnimationStyle, getPiePointTransformer, getRanges, getRect$1 as getRect, getRotatedPosition, getScatterAnimationStyle, getScatterPointTransformer, getStackedDomains, getStackedSeries, getTickCoordinates, getValueDomainName, getViewport, getVisibility, getWheelDelta, getWidth, gridCoordinatesGetter, growBounds, invertBoundsRange, isHorizontal, isKeyPressed, isMultiTouch, isValidPosition, makeScale, moveBounds, processHandleTooltip, processPointerMove, rangesEqual, scaleBand, scaleBounds, scaleLinear, scaleSeriesPoints, setCursorType, tickCoordinatesGetter, updateDomainItems };
//# sourceMappingURL=dx-chart-core.es.js.map
{
"name": "@devexpress/dx-chart-core",
"version": "2.0.3",
"version": "2.0.4",
"description": "Core library for the DevExtreme Reactive Chart component",

@@ -46,19 +46,19 @@ "author": {

"core-js": "^3.2.1",
"jest": "^24.8.0",
"rollup": "^1.19.4",
"rollup-plugin-license": "^0.12.0",
"jest": "^24.9.0",
"rollup": "^1.20.3",
"rollup-plugin-license": "^0.12.1",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-typescript2": "^0.22.1",
"rollup-plugin-typescript2": "^0.24.0",
"ts-jest": "^24.0.2",
"tslint": "^5.18.0",
"tslint": "^5.19.0",
"tslint-config-airbnb": "^5.11.1",
"typescript": "^3.5.3"
"typescript": "3.5.3"
},
"dependencies": {
"d3-array": "^2.2.0",
"d3-array": "^2.3.1",
"d3-scale": "^3.0.1",
"d3-shape": "^1.3.5"
},
"gitHead": "1790d3c1f2654a09c2fddba300d26bd713512301"
"gitHead": "7faeea645c9df41556a06e7a47e3e8662fc7228e"
}

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

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