@sapui5/sap.viz 1.96.41 → 1.96.42
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
package/src/sap/viz/.library
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<vendor>SAP SE</vendor>
|
|
6
6
|
<copyright>SAPUI5
|
|
7
7
|
* (c) Copyright 2009-2021 SAP SE. All rights reserved.</copyright>
|
|
8
|
-
<version>1.96.
|
|
8
|
+
<version>1.96.42</version>
|
|
9
9
|
|
|
10
10
|
<documentation>Chart controls based on the SAP BI CVOM charting library</documentation>
|
|
11
11
|
|
package/src/sap/viz/library.js
CHANGED
|
@@ -1034,11 +1034,22 @@ sap.ui.define([
|
|
|
1034
1034
|
Log.info("Failed to create worker via Blob (strict CSP?), falling back to separate script", null, "sap.viz.ui5.controls.VizFrame");
|
|
1035
1035
|
worker = new Worker(require.toUrl("./WorkerCode.js"));
|
|
1036
1036
|
}
|
|
1037
|
-
worker
|
|
1037
|
+
function workerHandler(worker) {
|
|
1038
|
+
worker.postMessage({applicationSet:applicationSet, allPropDefs :allPropDefs, allChartNames:Constants.CORE_CHART_TYPES, generalProps: DefaultPropertiesHelper._general,
|
|
1038
1039
|
specificProps: DefaultPropertiesHelper._specified, defaultFioriProps: DefaultPropertiesHelper.DEFAULT_FIORI_PROPS,
|
|
1039
1040
|
dualFioriProps: DefaultPropertiesHelper.FIORI_DUAL_PROPS, allUi5Theme:allUi5Theme, cvomTemplate:cvomTemplate, extraProp:extraProp, defaultFormatString: defaultFormatString});
|
|
1040
|
-
|
|
1041
|
-
|
|
1041
|
+
worker.onmessage = function (event) {
|
|
1042
|
+
resolve(event.data);
|
|
1043
|
+
};
|
|
1044
|
+
}
|
|
1045
|
+
workerHandler(worker);
|
|
1046
|
+
worker.onerror = function (event) {
|
|
1047
|
+
// For browser Firefox, the strict content security policy would forbid to read the content in the resource of blob: URLs.
|
|
1048
|
+
// But the error couldn't be catched by Firefox. Use the onerror function to check.
|
|
1049
|
+
// a strict content security policy might forbid the use of blob: URLs, use fallback
|
|
1050
|
+
Log.info("Failed to create worker via Blob (strict CSP?), falling back to separate script", null, "sap.viz.ui5.controls.VizFrame");
|
|
1051
|
+
worker = new Worker(require.toUrl("./WorkerCode.js"));
|
|
1052
|
+
workerHandler(worker);
|
|
1042
1053
|
};
|
|
1043
1054
|
});
|
|
1044
1055
|
}
|