This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-web/src/shader/DoricSlideItemNode.ts

16 lines
440 B
TypeScript
Raw Normal View History

2021-04-20 18:03:26 +08:00
import { DoricContext } from "../DoricContext";
import { DoricStackNode } from "./DoricStackNode";
export class DoricSlideItemNode extends DoricStackNode {
constructor(context: DoricContext) {
super(context)
this.reusable = true
}
build() {
const ret = super.build()
ret.style.display = "inline-block"
ret.style.width = "100%"
ret.style.height = "100%"
return ret
}
}