UNPKG

cione-comp-lib

Version:

`$ yarn add cione-comp-lib` 或者 `$ npm i cione-comp-lib -S`

29 lines (28 loc) 631 B
import { each, bind } from "../../../zrender/lib/core/util.mjs"; var availableMethods = [ "getDom", "getZr", "getWidth", "getHeight", "getDevicePixelRatio", "dispatchAction", "isSSR", "isDisposed", "on", "off", "getDataURL", "getConnectedDataURL", "getOption", "getId", "updateLabelLayout" ]; var ExtensionAPI = function() { function ExtensionAPI2(ecInstance) { each(availableMethods, function(methodName) { this[methodName] = bind(ecInstance[methodName], ecInstance); }, this); } return ExtensionAPI2; }(); var ExtensionAPI$1 = ExtensionAPI; export { ExtensionAPI$1 as default };