UNPKG

@yuebai008/cli

Version:

Command line interface for rapid qg-minigame development

1 lines 412 B
import*as TextUtils from"../../models/text_utils/text_utils.js";import{CSSQuery}from"./CSSQuery.js";export class CSSLayer extends CSSQuery{static parseLayerPayload(e,t){return t.map((t=>new CSSLayer(e,t)))}constructor(e,t){super(e),this.reinitialize(t)}reinitialize(e){this.text=e.text,this.range=e.range?TextUtils.TextRange.TextRange.fromObject(e.range):null,this.styleSheetId=e.styleSheetId}active(){return!0}}