@visactor/vrender-core
Version:
```typescript import { xxx } from '@visactor/vrender-core'; ```
20 lines (15 loc) • 494 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.LayerFactory = void 0;
const layer_1 = require("../core/layer");
class LayerFactory {
constructor(LayerCtor = layer_1.Layer) {
this.LayerCtor = LayerCtor;
}
create({stage: stage, global: global, window: window, params: params}) {
return new this.LayerCtor(stage, global, window, params);
}
}
exports.LayerFactory = LayerFactory;
//# sourceMappingURL=layer-factory.js.map