From b8f4bace715879f7d839c31bf1249711c0df7505 Mon Sep 17 00:00:00 2001 From: muerwre Date: Wed, 27 Feb 2019 13:29:12 +0700 Subject: [PATCH] fixed renderer saveAs --- src/modules/InteractivePoly.ts | 1 + src/utils/renderer.ts | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/InteractivePoly.ts b/src/modules/InteractivePoly.ts index c404275..4ac24cc 100644 --- a/src/modules/InteractivePoly.ts +++ b/src/modules/InteractivePoly.ts @@ -103,6 +103,7 @@ export class Component extends Polyline { this._map.addLayer(this.markerLayer); this.fire('allvertexshow'); + console.log(); }; hideAllMarkers = (): void => { diff --git a/src/utils/renderer.ts b/src/utils/renderer.ts index 5c61f14..9cdbd5c 100644 --- a/src/utils/renderer.ts +++ b/src/utils/renderer.ts @@ -1,11 +1,10 @@ import { editor } from '$modules/Editor'; import { COLORS, CLIENT } from '$config/frontend'; -import saveAs from 'file-saver'; +import * as saveAs from 'file-saver'; import { replaceProviderUrl } from '$constants/providers'; -import { IStickerItem, STICKERS } from '$constants/stickers'; +import { STICKERS } from '$constants/stickers'; import { ILatLng } from "$modules/Stickers"; import { IStickerDump } from "$modules/Sticker"; -import { Canvas, Point } from "leaflet"; import { IRootState } from "$redux/user/reducer"; export interface IMapPoint {