Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time
import { Container } from "../Container";
import { VugelStage } from "../../../wrapper";
import { Texture as Tree2dTexture } from "tree2d";
export type TextureFactory = (stage: VugelStage) => Tree2dTexture | undefined;
export class Texture extends Container {
get texture() {
return this.el.texture;
set texture(v: Tree2dTexture | undefined) {
this.el.texture = v;
set ["texture-factory"](v: TextureFactory) {
this.texture = v(this.stage);