pace-chart-lib 1.0.40 → 1.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -91,5 +91,5 @@ export declare function responsiveXaxisLabelForNumericValue(xMax: number, xMin:
|
|
|
91
91
|
};
|
|
92
92
|
export declare function initYaxis(gTag: any, formatOptions: TDefaultChartFormatOptionsType, dataTableHeight: number, yLabel: number, yAxisLeft: any, innerHeight: number): void;
|
|
93
93
|
export declare function initXaxis(gTag: any, formatOptions: TDefaultChartFormatOptionsType, dataTableHeight: number, xLabel: number, xAxis: any, innerHeight: number, innerWidth: number, margins: TChartMargins, yScale: any): void;
|
|
94
|
-
export declare function pieFamilyAnnotation(d3Annotation: any, chartData: any, formatOptions: any, getPiePosition: any, chartType: any, width: any, height: any, svg: any, radius: any): void;
|
|
94
|
+
export declare function pieFamilyAnnotation(d3Annotation: any, chartData: any, formatOptions: any, getPiePosition: any, chartType: any, width: any, height: any, svg: any, radius: any, isReportEditable: any): void;
|
|
95
95
|
export declare const setnumberOfBubbles: (svg: d3.Selection<SVGSVGElement, unknown, null, undefined>, legendPosition: string, chartFormatOptions: TDefaultChartFormatOptionsType, height: number, width: number, margins: TChartMargins, innnerHeight: number, xTitleHeight: number, XLabelHeight: number, bubbleCount: number) => void;
|
|
@@ -20926,11 +20926,11 @@ function initXaxis(gTag, formatOptions, dataTableHeight, xLabel, xAxis, innerHei
|
|
|
20926
20926
|
logError$1(fileName$a, "initXaxis", error);
|
|
20927
20927
|
}
|
|
20928
20928
|
}
|
|
20929
|
-
function pieFamilyAnnotation(d3Annotation2, chartData, formatOptions, getPiePosition, chartType, width, height, svg, radius) {
|
|
20929
|
+
function pieFamilyAnnotation(d3Annotation2, chartData, formatOptions, getPiePosition, chartType, width, height, svg, radius, isReportEditable) {
|
|
20930
20930
|
try {
|
|
20931
20931
|
if (!formatOptions.annotation.annotationVisibility) return;
|
|
20932
20932
|
const AnnotationType = formatOptions.plotArea.annotationType ?? "1";
|
|
20933
|
-
const Disable = [AnnotationType ===
|
|
20933
|
+
const Disable = [AnnotationType === 1 ? "connector" : ""];
|
|
20934
20934
|
const ConnectorType = formatOptions.plotArea.connectorType?.toLowerCase() ?? "none";
|
|
20935
20935
|
const rotationAngle = formatOptions.plotArea.rotation ?? 0;
|
|
20936
20936
|
const multiplicationFactor = chartType === chartTypes.PieChart ? 1.06 : 1.1;
|
|
@@ -21017,7 +21017,7 @@ function pieFamilyAnnotation(d3Annotation2, chartData, formatOptions, getPiePosi
|
|
|
21017
21017
|
match.connector.points = oldA.connector?.points;
|
|
21018
21018
|
}
|
|
21019
21019
|
});
|
|
21020
|
-
makeAnnotations.editMode(formatOptions.plotArea.annotationDraggable).accessors({
|
|
21020
|
+
makeAnnotations.editMode(formatOptions.plotArea.annotationDraggable && isReportEditable).accessors({
|
|
21021
21021
|
x(d) {
|
|
21022
21022
|
const r = radius;
|
|
21023
21023
|
const a2 = d.midAngle + rotationAngle * Math.PI / 180;
|
|
@@ -27948,7 +27948,7 @@ const drawTotalValue = (chartFormatOptions, totalValue, chartTitleHeight, chartA
|
|
|
27948
27948
|
}
|
|
27949
27949
|
};
|
|
27950
27950
|
const fileName$8 = "PieChart.tsx";
|
|
27951
|
-
const PieChart = ({ data, formatOptions, chartId }) => {
|
|
27951
|
+
const PieChart = ({ data, formatOptions, chartId, isReportEditable }) => {
|
|
27952
27952
|
const svgRef = useRef();
|
|
27953
27953
|
const seriesData = generalizedChartData(data.ChartData);
|
|
27954
27954
|
let chartFormatOptions;
|
|
@@ -28015,7 +28015,8 @@ const PieChart = ({ data, formatOptions, chartId }) => {
|
|
|
28015
28015
|
width,
|
|
28016
28016
|
height,
|
|
28017
28017
|
chartAreaTagG,
|
|
28018
|
-
Math.min(innerHeight2 * 0.5, innerWidth2 * 0.5)
|
|
28018
|
+
Math.min(innerHeight2 * 0.5, innerWidth2 * 0.5),
|
|
28019
|
+
isReportEditable
|
|
28019
28020
|
);
|
|
28020
28021
|
} else {
|
|
28021
28022
|
drawPieDataLabels();
|
|
@@ -28355,7 +28356,8 @@ const fileName$7 = "DonutChart.tsx";
|
|
|
28355
28356
|
const DonutChart = ({
|
|
28356
28357
|
data,
|
|
28357
28358
|
formatOptions,
|
|
28358
|
-
chartId
|
|
28359
|
+
chartId,
|
|
28360
|
+
isReportEditable
|
|
28359
28361
|
}) => {
|
|
28360
28362
|
const svgRef = useRef();
|
|
28361
28363
|
const seriesData = generalizedChartData(data.ChartData);
|
|
@@ -28425,7 +28427,8 @@ const DonutChart = ({
|
|
|
28425
28427
|
width,
|
|
28426
28428
|
height,
|
|
28427
28429
|
chartAreaTagG,
|
|
28428
|
-
Math.min(innerHeight2 * 0.5, innerWidth2 * 0.5)
|
|
28430
|
+
Math.min(innerHeight2 * 0.5, innerWidth2 * 0.5),
|
|
28431
|
+
isReportEditable
|
|
28429
28432
|
);
|
|
28430
28433
|
} else {
|
|
28431
28434
|
drawDonutDataLabels();
|
|
@@ -20929,11 +20929,11 @@
|
|
|
20929
20929
|
logError$1(fileName$a, "initXaxis", error);
|
|
20930
20930
|
}
|
|
20931
20931
|
}
|
|
20932
|
-
function pieFamilyAnnotation(d3Annotation2, chartData, formatOptions, getPiePosition, chartType, width, height, svg, radius) {
|
|
20932
|
+
function pieFamilyAnnotation(d3Annotation2, chartData, formatOptions, getPiePosition, chartType, width, height, svg, radius, isReportEditable) {
|
|
20933
20933
|
try {
|
|
20934
20934
|
if (!formatOptions.annotation.annotationVisibility) return;
|
|
20935
20935
|
const AnnotationType = formatOptions.plotArea.annotationType ?? "1";
|
|
20936
|
-
const Disable = [AnnotationType ===
|
|
20936
|
+
const Disable = [AnnotationType === 1 ? "connector" : ""];
|
|
20937
20937
|
const ConnectorType = formatOptions.plotArea.connectorType?.toLowerCase() ?? "none";
|
|
20938
20938
|
const rotationAngle = formatOptions.plotArea.rotation ?? 0;
|
|
20939
20939
|
const multiplicationFactor = chartType === chartTypes.PieChart ? 1.06 : 1.1;
|
|
@@ -21020,7 +21020,7 @@
|
|
|
21020
21020
|
match.connector.points = oldA.connector?.points;
|
|
21021
21021
|
}
|
|
21022
21022
|
});
|
|
21023
|
-
makeAnnotations.editMode(formatOptions.plotArea.annotationDraggable).accessors({
|
|
21023
|
+
makeAnnotations.editMode(formatOptions.plotArea.annotationDraggable && isReportEditable).accessors({
|
|
21024
21024
|
x(d) {
|
|
21025
21025
|
const r = radius;
|
|
21026
21026
|
const a2 = d.midAngle + rotationAngle * Math.PI / 180;
|
|
@@ -27951,7 +27951,7 @@
|
|
|
27951
27951
|
}
|
|
27952
27952
|
};
|
|
27953
27953
|
const fileName$8 = "PieChart.tsx";
|
|
27954
|
-
const PieChart = ({ data, formatOptions, chartId }) => {
|
|
27954
|
+
const PieChart = ({ data, formatOptions, chartId, isReportEditable }) => {
|
|
27955
27955
|
const svgRef = require$$0$1.useRef();
|
|
27956
27956
|
const seriesData = generalizedChartData(data.ChartData);
|
|
27957
27957
|
let chartFormatOptions;
|
|
@@ -28018,7 +28018,8 @@
|
|
|
28018
28018
|
width,
|
|
28019
28019
|
height,
|
|
28020
28020
|
chartAreaTagG,
|
|
28021
|
-
Math.min(innerHeight2 * 0.5, innerWidth2 * 0.5)
|
|
28021
|
+
Math.min(innerHeight2 * 0.5, innerWidth2 * 0.5),
|
|
28022
|
+
isReportEditable
|
|
28022
28023
|
);
|
|
28023
28024
|
} else {
|
|
28024
28025
|
drawPieDataLabels();
|
|
@@ -28358,7 +28359,8 @@
|
|
|
28358
28359
|
const DonutChart = ({
|
|
28359
28360
|
data,
|
|
28360
28361
|
formatOptions,
|
|
28361
|
-
chartId
|
|
28362
|
+
chartId,
|
|
28363
|
+
isReportEditable
|
|
28362
28364
|
}) => {
|
|
28363
28365
|
const svgRef = require$$0$1.useRef();
|
|
28364
28366
|
const seriesData = generalizedChartData(data.ChartData);
|
|
@@ -28428,7 +28430,8 @@
|
|
|
28428
28430
|
width,
|
|
28429
28431
|
height,
|
|
28430
28432
|
chartAreaTagG,
|
|
28431
|
-
Math.min(innerHeight2 * 0.5, innerWidth2 * 0.5)
|
|
28433
|
+
Math.min(innerHeight2 * 0.5, innerWidth2 * 0.5),
|
|
28434
|
+
isReportEditable
|
|
28432
28435
|
);
|
|
28433
28436
|
} else {
|
|
28434
28437
|
drawDonutDataLabels();
|