@syncfusion/ej2-circulargauge
Advanced tools
Comparing version 24.2.3 to 25.1.35
@@ -7,28 +7,2 @@ <!-- markdownlint-disable MD004 --> | ||
## 24.1.43 (2023-12-27) | ||
### CircularGauge | ||
#### Bug Fixes | ||
- `#I532350` - When there are more than ten ranges in the Circular Gauge, the range tooltip content for those ranges is now appropriately displayed. | ||
## 24.1.41 (2023-12-18) | ||
### CircularGauge | ||
#### New Features | ||
- Circular Gauge elements such as the axis line, ranges, pointers, and annotations can now be animated one by one to create a smooth appearance when rendered initially. | ||
## 23.1.38 (2023-09-26) | ||
### CircularGauge | ||
#### New Features | ||
- When the `allowRangePreRender` property is set to **false**, the axis line will be rendered first. | ||
## 23.1.36 (2023-09-15) | ||
### Circular Gauge | ||
@@ -35,0 +9,0 @@ |
/*! | ||
* filename: index.d.ts | ||
* version : 24.2.3 | ||
* version : 25.1.35 | ||
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved. | ||
@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license. |
{ | ||
"_from": "@syncfusion/ej2-circulargauge@*", | ||
"_id": "@syncfusion/ej2-circulargauge@24.1.43", | ||
"_id": "@syncfusion/ej2-circulargauge@16.42.4", | ||
"_inBundle": false, | ||
"_integrity": "sha512-XdCtWYpgbWGQlJaDJZPTvfwsVWVX58Hz1Inh/xapb40GDhTKgKCD2Hh55FN6YHztIs65UeI0b1qr1+aSQ3x28g==", | ||
"_integrity": "sha512-JCBjQFKDlBsLi09e0KmhijDIscsiZLTJUFQujH0dX45u0smhbb4zqBSmO7UJLCOToAE+wRng0AwPq+zgG90HgQ==", | ||
"_location": "/@syncfusion/ej2-circulargauge", | ||
@@ -26,6 +26,6 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-circulargauge/-/ej2-circulargauge-24.1.43.tgz", | ||
"_shasum": "96e403c267cf5f6f1a7a92ead272271a8b9c4ad9", | ||
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-release/@syncfusion/ej2-circulargauge/-/ej2-circulargauge-16.42.4.tgz", | ||
"_shasum": "ac54692149158612a93f7cb7415ec980433a9b12", | ||
"_spec": "@syncfusion/ej2-circulargauge@*", | ||
"_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included", | ||
"_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included", | ||
"author": { | ||
@@ -39,5 +39,5 @@ "name": "Syncfusion Inc." | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~24.2.3", | ||
"@syncfusion/ej2-pdf-export": "~24.2.3", | ||
"@syncfusion/ej2-svg-base": "~24.2.3" | ||
"@syncfusion/ej2-base": "~25.1.35", | ||
"@syncfusion/ej2-pdf-export": "~25.1.35", | ||
"@syncfusion/ej2-svg-base": "~25.1.35" | ||
}, | ||
@@ -85,4 +85,4 @@ "deprecated": false, | ||
"typings": "index.d.ts", | ||
"version": "24.2.3", | ||
"version": "25.1.35", | ||
"sideEffects": false | ||
} |
@@ -145,2 +145,3 @@ import { getTemplateFunction, getElement, stringToNumber, getFontStyle, getLocationFromAngle, removeElement } from '../utils/helper-common'; | ||
element.setAttribute('aria-label', annotation.description || 'Annotation'); | ||
element.setAttribute('role', 'region'); | ||
}; | ||
@@ -147,0 +148,0 @@ /** |
@@ -835,2 +835,8 @@ import { createElement, isNullOrUndefined, Animation, animationMode } from '@syncfusion/ej2-base'; | ||
this.pointerRenderer = null; | ||
this.axisOption = null; | ||
this.prevAnimatedMajorTickValue = null; | ||
this.prevAnimatedMajorTickIndex = null; | ||
this.prevAnimatedMinorTickIndex = null; | ||
this.prevAnimatedMinorTickValue = null; | ||
this.allowAxisCount = null; | ||
}; | ||
@@ -837,0 +843,0 @@ return AxisLayoutPanel; |
@@ -179,3 +179,5 @@ import { stringToNumber, toPixel, textElement, appendPath, getAngleFromValue, getLocationFromAngle, getPathArc, getRoundedPathArc, getDegree, isCompleteAngle, PathOption, TextOption } from '../utils/helper-common'; | ||
&& (i === 0)) ? '' : label.text; | ||
textElement(new TextOption(gauge.element.id + '_Axis_' + index + '_Label_' + i, location.x, location.y, anchor, label.text, style.autoAngle ? 'rotate(' + (angle + 90) + ',' + (location.x) + ',' + location.y + ')' : '', 'auto'), textFont, style.useRangeColor ? getRangeColor(label.value, axis.ranges, color) : color, labelElement, 'pointer-events:none;'); | ||
var labelTextElement = textElement(new TextOption(gauge.element.id + '_Axis_' + index + '_Label_' + i, location.x, location.y, anchor, label.text, style.autoAngle ? 'rotate(' + (angle + 90) + ',' + (location.x) + ',' + location.y + ')' : '', 'auto'), textFont, style.useRangeColor ? getRangeColor(label.value, axis.ranges, color) : color, labelElement, 'pointer-events:none;'); | ||
labelTextElement.setAttribute('aria-label', label.text); | ||
labelTextElement.setAttribute('role', 'region'); | ||
if (axis.hideIntersectingLabel) { | ||
@@ -182,0 +184,0 @@ textWidth = label.size.width; |
@@ -664,2 +664,3 @@ /** | ||
destroy(): void; | ||
private isGradientVisible; | ||
/** | ||
@@ -666,0 +667,0 @@ * To provide the array of modules needed for control rendering |
@@ -256,10 +256,2 @@ import { CircularGauge } from '../circular-gauge'; | ||
/** | ||
* To show or hide trimmed text tooltip for legend. | ||
* | ||
* @param {Event} event - Specifies the event. | ||
* @returns {void} | ||
* @private | ||
*/ | ||
move(event: Event): void; | ||
/** | ||
* Get module name. | ||
@@ -266,0 +258,0 @@ * |
@@ -1,3 +0,3 @@ | ||
import { removeElement, getElement, stringToNumber, measureText, textElement, appendPath, calculateShapes, PathOption, RectOption, Size, GaugeLocation, Rect, TextOption } from '../utils/helper-common'; | ||
import { textTrim, showTooltip } from '../utils/helper-legend'; | ||
import { getElement, stringToNumber, measureText, textElement, appendPath, calculateShapes, PathOption, RectOption, Size, GaugeLocation, Rect, TextOption } from '../utils/helper-common'; | ||
import { textTrim } from '../utils/helper-legend'; | ||
import { isNullOrUndefined } from '@syncfusion/ej2-base'; | ||
@@ -301,3 +301,5 @@ /* | ||
textOptions.y = legendOption.location.y + this.maxItemHeight / 4; | ||
textElement(textOptions, legend.textStyle, fontcolor, group, ''); | ||
var legendTextElement = textElement(textOptions, legend.textStyle, fontcolor, group, ''); | ||
legendTextElement.setAttribute('aria-label', textOptions.text); | ||
legendTextElement.setAttribute('role', 'region'); | ||
}; | ||
@@ -739,29 +741,2 @@ /** | ||
/** | ||
* To show or hide trimmed text tooltip for legend. | ||
* | ||
* @param {Event} event - Specifies the event. | ||
* @returns {void} | ||
* @private | ||
*/ | ||
Legend.prototype.move = function (event) { | ||
var x = this.gauge.mouseX; | ||
var y = this.gauge.mouseY; | ||
var targetId = event.target.id; | ||
if (event.target.textContent.indexOf('...') > -1 && targetId.indexOf('_gauge_legend_') > -1) { | ||
var axisIndex = parseInt(targetId.split(this.gauge.element.id + '_gauge_legend_Axis_')[1].split('_text_')[0], 10); | ||
var rangeIndex = parseInt(targetId.split(this.gauge.element.id + '_gauge_legend_Axis_')[1].split('_text_')[1], 10); | ||
var text = ''; | ||
for (var _i = 0, _a = this.legendCollection; _i < _a.length; _i++) { | ||
var legends = _a[_i]; | ||
if (legends.rangeIndex === rangeIndex && legends.axisIndex === axisIndex) { | ||
text = legends.originalText; | ||
} | ||
} | ||
showTooltip(text, x, y, this.gauge, 'LegendText'); | ||
} | ||
else { | ||
removeElement(this.gauge.element.id + '_EJ2_Legend_Tooltip'); | ||
} | ||
}; | ||
/** | ||
* Get module name. | ||
@@ -768,0 +743,0 @@ * |
import { Tooltip } from '@syncfusion/ej2-svg-base'; | ||
import { stringToNumber, getAngleFromValue, getLocationFromAngle, getPointer, getLabelFormat, Rect } from '../utils/helper-common'; | ||
import { getMousePosition, getElementSize } from '../utils/helper-tooltip'; | ||
import { Browser, createElement, remove, SanitizeHtmlHelper } from '@syncfusion/ej2-base'; | ||
import { Browser, createElement, isNullOrUndefined, remove, SanitizeHtmlHelper } from '@syncfusion/ej2-base'; | ||
import { tooltipRender } from '../model/constants'; | ||
@@ -532,2 +532,5 @@ import { titleTooltip } from '../utils/helper-legend'; | ||
this.borderStyle = null; | ||
if (!isNullOrUndefined(this.svgTooltip)) { | ||
this.svgTooltip.destroy(); | ||
} | ||
this.svgTooltip = null; | ||
@@ -534,0 +537,0 @@ this.tooltipRect = null; |
@@ -82,2 +82,3 @@ /** | ||
var targetId = event.target.id; | ||
var elementArray = document.getElementsByClassName('EJ2-CircularGauge-Tooltip'); | ||
if ((targetId === (gauge.element.id + '_CircularGaugeTitle')) && (event.target.textContent.indexOf('...') > -1)) { | ||
@@ -99,3 +100,4 @@ showTooltip(gauge.title, x, y, gauge, "Title"); | ||
} | ||
else { | ||
else if (elementArray.length > 0 && (elementArray[0].id.indexOf("Title_Tooltip") > -1 || | ||
elementArray[0].id.indexOf("Legend_Tooltip") > -1)) { | ||
removeTooltip(); | ||
@@ -102,0 +104,0 @@ } |
Sorry, the diff of this file is too big to display
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 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 too big to display
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
4393723
31642
81
+ Added@syncfusion/ej2-base@25.1.35(transitive)
+ Added@syncfusion/ej2-compression@25.1.35(transitive)
+ Added@syncfusion/ej2-file-utils@25.1.35(transitive)
+ Added@syncfusion/ej2-icons@25.1.35(transitive)
+ Added@syncfusion/ej2-pdf-export@25.1.38(transitive)
+ Added@syncfusion/ej2-svg-base@25.1.37(transitive)
- Removed@syncfusion/ej2-base@24.2.8(transitive)
- Removed@syncfusion/ej2-compression@24.2.3(transitive)
- Removed@syncfusion/ej2-file-utils@24.2.3(transitive)
- Removed@syncfusion/ej2-icons@24.2.3(transitive)
- Removed@syncfusion/ej2-pdf-export@24.2.3(transitive)
- Removed@syncfusion/ej2-svg-base@24.2.3(transitive)