lib/atome/helpers/essentials.rb in atome-0.5.4.1.3 vs lib/atome/helpers/essentials.rb in atome-0.5.4.1.7

- old
+ new

@@ -1,9 +1,19 @@ # frozen_string_literal: true # use to sanitize and secure user input module Essentials + corp = <<~STR + <g transform="matrix(0.0267056,0,0,0.0267056,18.6376,20.2376)"> + <g id="shapePath1" transform="matrix(4.16667,0,0,4.16667,-377.307,105.632)"> + <path d="M629.175,81.832C740.508,190.188 742.921,368.28 634.565,479.613C526.209,590.945 348.116,593.358 236.784,485.002C125.451,376.646 123.038,198.554 231.394,87.221C339.75,-24.111 517.843,-26.524 629.175,81.832Z" style="fill:rgb(201,12,125);"/> + </g> + <g id="shapePath2" transform="matrix(4.16667,0,0,4.16667,-377.307,105.632)"> + <path d="M1679.33,410.731C1503.98,413.882 1402.52,565.418 1402.72,691.803C1402.91,818.107 1486.13,846.234 1498.35,1056.78C1501.76,1313.32 1173.12,1490.47 987.025,1492.89C257.861,1502.39 73.275,904.061 71.639,735.381C70.841,653.675 1.164,647.648 2.788,737.449C12.787,1291.4 456.109,1712.79 989.247,1706.24C1570.67,1699.09 1982.31,1234 1965.76,683.236C1961.3,534.95 1835.31,407.931 1679.33,410.731Z" style="fill:rgb(201,12,125);"/> + </g> + </g> +STR @default_params = { # Warning : type must be define first render_engines: [:browser], # collector: { type: :element, attach: [:black_matter] }, image: { type: :image, attach: [:view] }, @@ -17,10 +27,10 @@ box: { type: :shape, width: 99, height: 99, attached: :box_color, attach: [:view], left: 100, top: 100, clones: [], preset: :box }, vector: { type: :shape, width: 99, height: 99, attach: [:view], - left: 100, top: 100, clones: [], preset: :vector }, + left: 100, top: 100, clones: [], preset: :vector , definition: corp}, circle: { type: :shape, width: 99, height: 99, smooth: '100%', attached: :circle_color, attach: [:view], left: 100, top: 100, clones: [], preset: :circle }, shape: { type: :shape, width: 99, height: 99, attached: :shape_color, attach: [:view],