Sha256: 1190d4404257a5df2c96b91cefa43b7d31d4a9f4d6cf3564d31c83c0e8f2cb41
Contents?: true
Size: 655 Bytes
Versions: 6
Compression:
Stored size: 655 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 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