mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-10 21:06:15 -08:00
15 lines
357 B
JavaScript
15 lines
357 B
JavaScript
import Component from './utils/component';
|
|
|
|
export default class Layer extends Component {
|
|
constructor(art) {
|
|
super(art);
|
|
this.name = 'layer';
|
|
this.$parent = art.template.$layer;
|
|
art.once('ready', () => {
|
|
art.option.layers.forEach(item => {
|
|
this.add(item);
|
|
});
|
|
});
|
|
}
|
|
}
|