diff --git a/package.json b/package.json index d1cb7fe..350d416 100644 --- a/package.json +++ b/package.json @@ -97,6 +97,9 @@ "type": "git", "url": "https://github.com/antvis/l7-draw" }, + "engines": { + "node": "16" + }, "bugs": { "url": "https://github.com/antvis/l7-draw/issues" } diff --git a/src/control/index.ts b/src/control/index.ts index 2bac2a1..1120b0b 100644 --- a/src/control/index.ts +++ b/src/control/index.ts @@ -1,6 +1,5 @@ import { Control, DOM, Scene } from '@antv/l7'; import { BaseMode } from '../mode'; -import { Container } from 'inversify'; import { BtnType, DrawType, IDrawControlProps } from './types'; import { DrawBtnActiveClassName, @@ -60,7 +59,7 @@ export class DrawControl extends Control { }; } - public addTo(container: Container) { + public addTo(container: any) { super.addTo(container); this.init(); return this;