Sha256: b7536c02429e867fbf102f22774516ebcf26e459337c6993be2feb159bb7b7f9
Contents?: true
Size: 775 Bytes
Versions: 6
Compression:
Stored size: 775 Bytes
Contents
# frozen_string_literal: true module DrawioDsl module Schema # Text represents text shapes such as h1, h2, p, etc. class Text < Shape class << self def configure_as(key) configure_shape(key, :text) end end # def initialize(page, **args) # args[:classification] = :text # super(page, **args) # end def apply_defaults(args) super(args) @fill_color = args[:fill_color] @stroke_color = args[:stroke_color] @gradient = args[:gradient] @font_color = args[:font_color] || page.bg_theme_palette.font_color end def default_configuration KConfig.configuration.drawio.shape.default_text end end end end
Version data entries
6 entries across 6 versions & 1 rubygems