@gemx-dev/clarity-visualize 0.8.60 → 0.8.62

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.
@@ -415,6 +415,7 @@ function createParentWindowCanvas(iframeDoc, portalCanvasId) {
415
415
  if (canvas_1 === null) {
416
416
  canvas_1 = parentDoc.createElement('canvas');
417
417
  canvas_1.id = canvasId;
418
+ canvas_1.classList.add("clarity-heatmap-canvas" /* Constant.HeatmapCanvas */);
418
419
  canvas_1.width = 0;
419
420
  canvas_1.height = 0;
420
421
  canvas_1.style.position = "absolute" /* Constant.Absolute */;
@@ -804,6 +805,7 @@ var HeatmapHelper = /** @class */ (function () {
804
805
  if (canvas === null) {
805
806
  canvas = doc.createElement("CANVAS" /* Constant.Canvas */);
806
807
  canvas.id = "clarity-heatmap-canvas" /* Constant.HeatmapCanvas */;
808
+ canvas.classList.add("clarity-heatmap-canvas" /* Constant.HeatmapCanvas */);
807
809
  canvas.width = 0;
808
810
  canvas.height = 0;
809
811
  canvas.style.position = "absolute" /* Constant.Absolute */;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gemx-dev/clarity-visualize",
3
- "version": "0.8.60",
3
+ "version": "0.8.62",
4
4
  "description": "Clarity visualize",
5
5
  "author": "Microsoft Corp.",
6
6
  "license": "MIT",
@@ -9,7 +9,7 @@
9
9
  "unpkg": "build/clarity.visualize.min.js",
10
10
  "types": "types/index.d.ts",
11
11
  "dependencies": {
12
- "@gemx-dev/clarity-decode": "^0.8.60"
12
+ "@gemx-dev/clarity-decode": "^0.8.62"
13
13
  },
14
14
  "devDependencies": {
15
15
  "@rollup/plugin-commonjs": "^24.0.0",
@@ -35,7 +35,6 @@ export function createParentWindowCanvas(
35
35
  throw new Error('Not in iframe: ' + iframeDoc.defaultView);
36
36
  }
37
37
 
38
-
39
38
  try {
40
39
  const parentWindow = iframeDoc.defaultView?.parent;
41
40
  const parentDoc = parentWindow?.document;
@@ -55,6 +54,7 @@ export function createParentWindowCanvas(
55
54
  if (canvas === null) {
56
55
  canvas = parentDoc.createElement('canvas');
57
56
  canvas.id = canvasId;
57
+ canvas.classList.add(Constant.HeatmapCanvas);
58
58
  canvas.width = 0;
59
59
  canvas.height = 0;
60
60
  canvas.style.position = Constant.Absolute;
package/src/heatmap.ts CHANGED
@@ -198,6 +198,7 @@ export class HeatmapHelper {
198
198
  if (canvas === null) {
199
199
  canvas = doc.createElement(Constant.Canvas) as HTMLCanvasElement;
200
200
  canvas.id = Constant.HeatmapCanvas;
201
+ canvas.classList.add(Constant.HeatmapCanvas);
201
202
  canvas.width = 0;
202
203
  canvas.height = 0;
203
204
  canvas.style.position = Constant.Absolute;