Skip to content

Commit ca0d395

Browse files
committed
remove mini-svg-data-uri
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
1 parent 51239f5 commit ca0d395

3 files changed

Lines changed: 1 addition & 13 deletions

File tree

src/utils/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
"mapbox-gl": "^1.13.1",
5757
"maplibre-gl": "^3.6.2",
5858
"maplibregl-mapbox-request-transformer": "^0.0.2",
59-
"mini-svg-data-uri": "^1.0.3",
6059
"moment": "^2.10.6",
6160
"moment-timezone": "^0.5.35",
6261
"react": "^18.2.0",

src/utils/src/dom-to-image.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import Window from 'global/window';
1010
import document from 'global/document';
1111
import Console from 'global/console';
12-
import svgToMiniDataURI from 'mini-svg-data-uri';
1312
import {IMAGE_EXPORT_ERRORS} from '@kepler.gl/constants';
1413

1514
import {
@@ -246,7 +245,7 @@ function makeSvgDataUri(node, width, height, escapeXhtmlForWebpack = true) {
246245
const foreignObject = `<foreignObject x="0" y="0" width="100%" height="100%">${xhtml}</foreignObject>`;
247246
const svgStr = `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height}">${foreignObject}</svg>`;
248247

249-
// Use base64 encoding instead of svgToMiniDataURI
248+
// Use base64 encoding
250249
// This avoids issues with URL encoding and works better with Electron's security restrictions
251250
const base64Svg =
252251
typeof Buffer !== 'undefined' && Buffer.from

yarn.lock

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5372,7 +5372,6 @@ __metadata:
53725372
mapbox-gl: "npm:^1.13.1"
53735373
maplibre-gl: "npm:^3.6.2"
53745374
maplibregl-mapbox-request-transformer: "npm:^0.0.2"
5375-
mini-svg-data-uri: "npm:^1.0.3"
53765375
moment: "npm:^2.10.6"
53775376
moment-timezone: "npm:^0.5.35"
53785377
react: "npm:^18.2.0"
@@ -22938,15 +22937,6 @@ __metadata:
2293822937
languageName: node
2293922938
linkType: hard
2294022939

22941-
"mini-svg-data-uri@npm:^1.0.3":
22942-
version: 1.4.4
22943-
resolution: "mini-svg-data-uri@npm:1.4.4"
22944-
bin:
22945-
mini-svg-data-uri: cli.js
22946-
checksum: 10c0/24545fa30b5a45449241bf19c25b8bc37594b63ec06401b3d563bd1c2e8a6abb7c18741f8b354e0064baa63c291be214154bf3a66f201ae71dfab3cc1a5e3191
22947-
languageName: node
22948-
linkType: hard
22949-
2295022940
"minimalistic-assert@npm:^1.0.0, minimalistic-assert@npm:^1.0.1":
2295122941
version: 1.0.1
2295222942
resolution: "minimalistic-assert@npm:1.0.1"

0 commit comments

Comments
 (0)