lib/atome/helpers/essentials.rb in atome-0.5.4.1.9 vs lib/atome/helpers/essentials.rb in atome-0.5.5.6.4
- old
+ new
@@ -9,40 +9,36 @@
</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
+ STR
+
@default_params = {
# Warning : type must be define first
- render_engines: [:browser],
- # collector: { type: :element, attach: [:black_matter] },
- image: { type: :image, attach: [:view] },
- web: { type: :web, attach: [:view] },
- video: { type: :video, attach: [:view] },
- animation: { type: :animation, attach: [:black_matter] },
- element: { type: :element, renderers: [], attach: [:black_matter] },
- matrix: { type: :shape, width: 99, height: 99,
- attached: :matrix_color,
- left: 100, top: 100, clones: [], preset: :matrix, attach: [:view] },
+ render_engines: [:html],
+ image: { type: :image },
+ # FIXME : look at build_atome FIXME to resolve default parent attachment problem
+ video: { type: :video },
+ animation: { type: :animation, attach: :black_matter },
+ element: { type: :element, renderers: [], attach: :black_matter },
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 , definition: corp},
+ apply: [:box_color],
+ left: 100, top: 100, preset: :box },
+ vector: { type: :vector, width: 99, height: 99,
+ left: 100, top: 100, 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 },
+ apply: [:circle_color],
+ left: 100, top: 100, preset: :circle },
shape: { type: :shape, width: 99, height: 99,
- attached: :shape_color, attach: [:view],
- left: 100, top: 100, clones: [] },
- text: { type: :text, visual: { size: 25 },
- attached: :text_color, attach: [:view],
- data: 'this is a text sample', width: 199, height: 33, clones: [] },
- drm: { type: :drm, attach: [:black_matter] },
- shadow: { type: :shadow, attach: [:black_matter] },
- color: { type: :color,attach: [:black_matter], red: 0, green: 0, blue: 0, alpha: 1 }
+ apply: [:shape_color],
+ left: 100, top: 100 },
+ text: { type: :text, component: { size: 18 },
+ apply: [:text_color],
+ width: :auto, height: :auto },
+ drm: { type: :drm, attach: :black_matter },
+ shadow: { type: :shadow, red: 0, green: 0, blue: 0, alpha: 0 },
+ color: { type: :color, red: 0, green: 0, blue: 0, alpha: 1}
}
def self.default_params
@default_params
end