Sha256: e926bf65222b4cfc2ab01594f21f4ccce5bd809b4db3b7f8a4ec611dec34393c
Contents?: true
Size: 571 Bytes
Versions: 31
Compression:
Stored size: 571 Bytes
Contents
# frozen_string_literal: true module DrawioDsl module Schema # Provides an anchor point on the page for elements to hang from class Anchor < Node def initialize(page, **args) args[:classification] = :anchor super(page, **args) end # xml.mxCell(id: "#{page.id}-A") # xml.mxCell(id: "#{page.id}-B", parent: "#{page.id}-A") def as_xml(xml) if parent xml.mxCell(id: id, parent: parent.id) else xml.mxCell(id: id) end nodes.as_xml(xml) end end end end
Version data entries
31 entries across 31 versions & 1 rubygems