@datarailsshared/dr_renderer 1.2.39 → 1.2.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.
package/package.json
CHANGED
|
@@ -2541,7 +2541,13 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
2541
2541
|
style = {};
|
|
2542
2542
|
}
|
|
2543
2543
|
}
|
|
2544
|
+
|
|
2545
|
+
if(typeof style !== 'object' || style === null){
|
|
2546
|
+
style = {};
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2544
2549
|
style.fontWeight = useNewUx ? 'normal' : 'bold';
|
|
2550
|
+
|
|
2545
2551
|
return style;
|
|
2546
2552
|
}
|
|
2547
2553
|
|
|
@@ -4162,7 +4168,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
4162
4168
|
options.chartOptions.legends_position = { value: 'none' };
|
|
4163
4169
|
delete options.chartOptions.chart.hideLegends;
|
|
4164
4170
|
}
|
|
4165
|
-
if (['pie-chart', 'pie-chart-drilldown']
|
|
4171
|
+
if (lodash.includes(['pie-chart', 'pie-chart-drilldown'], type)) {
|
|
4166
4172
|
if (options.chartOptions && options.chartOptions.label) {
|
|
4167
4173
|
if (options.chartOptions.label.only_value) {
|
|
4168
4174
|
options.chartOptions.label.show_percentage_in_labels = false;
|
|
@@ -15,9 +15,9 @@ let getPublishedItemsRenderer = function (publishedItemsRenderer) {
|
|
|
15
15
|
|
|
16
16
|
publishedItemsRenderer.resizeTable = function (options, window) {
|
|
17
17
|
options.alreadySetTimeout = null;
|
|
18
|
-
const publish_item_image = document.getElementById('publish_item_image');
|
|
19
|
-
const table = document.getElementsByTagName("table")[0];
|
|
20
|
-
const body = document.getElementsByTagName("body")[0];
|
|
18
|
+
const publish_item_image = window.document.getElementById('publish_item_image');
|
|
19
|
+
const table = window.document.getElementsByTagName("table")[0];
|
|
20
|
+
const body = window.document.getElementsByTagName("body")[0];
|
|
21
21
|
let body_zoom = body.style.zoom;
|
|
22
22
|
body_zoom = parseFloat(body_zoom);
|
|
23
23
|
|