/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { SemanticNamespaceElement } from "../elements/index.js"; import { SemanticTagModel } from "../index.js"; import { Model } from "./Model.js"; export class SemanticNamespaceModel extends Model implements SemanticNamespaceElement { override tag: SemanticNamespaceElement.Tag = SemanticNamespaceElement.Tag; mfgCode?: number; get tags() { return this.children; } static Tag = SemanticNamespaceElement.Tag; constructor( definition: Model.Definition, ...children: Model.ChildDefinition[] ) { super(definition, ...children); this.mfgCode = definition.mfgCode; } override toElement(omitResources = false, extra?: Record) { return super.toElement(omitResources, { mfgCode: this.mfgCode, ...extra, }); } } SemanticNamespaceModel.register();