UNPKG

@gouvfr/dsfr-nexus

Version:

Le module `dsfr-nexus` est l'interface de ligne de commande (CLI) centrale du Système de Design de l’État - DSFR. Il offre des outils pour gérer et compiler les ressources du DSFR

42 lines (33 loc) 757 B
import { PageNode } from '../page-node.js'; class ImageReferenceNode extends PageNode { constructor (data, state) { super(data, state); this._identifier = data.identifier; this._label = data.label; this._referenceType = data.referenceType; this._alt = data.alt; } get identifier () { return this._identifier; } get label () { return this._label; } get referenceType () { return this._referenceType; } get alt () { return this._alt; } get data () { return { ...super.data, identifier: this.identifier, label: this.label, referenceType: this.referenceType, alt: this.alt }; } } ImageReferenceNode.TYPE = 'imageReference'; export { ImageReferenceNode };