lib/atome/helpers/essentials.rb in atome-0.5.2.8 vs lib/atome/helpers/essentials.rb in atome-0.5.3.2
- old
+ new
@@ -2,25 +2,34 @@
# use to sanitize and secure user input
module Essentials
@default_params = {
render_engines: [:browser],
- animation: { type: :animation },
- element: { type: :element, renderers: [] },
- box: { renderers: '', id: '', type: :shape, parents: [], children: [], width: 99, height: 99,
- color: { left: 0, top: 0, red: 0.1, green: 0.9, blue: 0.9, alpha: 1, diffusion: :linear },
- left: 100, top: 100 },
- circle: { renderers: '', id: '', type: :shape, parents: [], children: [], width: 99, height: 99,
- color: { left: 0, top: 0, red: 0.1, green: 0.9, blue: 0.9, alpha: 1, diffusion: :linear },
- left: 100, top: 100, smooth: '100%' },
- shape: { renderers: '', id: '', width: 100, type: :shape, height: 100, left: 100, top: 100,
- color: { left: 0, top: 0, red: 0.1, green: 0.9, blue: 0.9, alpha: 1, diffusion: :linear },
- generator: :manual },
- text: { renderers: '', id: '',type: :text, parents: [:view], children: [], visual: { size: 25 },
- color: { left: 0, top: 0, red: 0.3, green: 0.3, blue: 0.3, alpha: 1, diffusion: :linear },
- data: 'this is a text sample', width: 199, height: 33 },
+ animation: { type: :animation, children: [] },
+ element: { type: :element, renderers: [], children: [] },
+ matrix: { renderers: [], id: '', type: :shape, parents: [], width: 99, height: 99,
+ attached: [:matrix_color], children: [],
+ # color: { left: 0, top: 0, red: 0.1, green: 0.9, blue: 0.9, alpha: 1, diffusion: :linear },
+ left: 100, top: 100, clones: [], preset: :matrix },
+ box: { renderers: [], id: '', type: :shape, parents: [], width: 99, height: 99,
+ attached: [:box_color], children: [],
+ # color: { left: 0, top: 0, red: 1, green: 0.3, blue: 0.3, alpha: 1, diffusion: :linear },
+ left: 100, top: 100, clones: [], preset: :box },
+ circle: { renderers: [], id: '', type: :shape, parents: [], width: 99, height: 99, smooth: '100%',
+ # color: { left: 0, top: 0, red: 0.3, green: 0.9, blue: 0.9, alpha: 1, diffusion: :linear },
+ attached: [:circle_color], children: [],
+ left: 100, top: 100, clones: [], preset: :circle },
+ shape: { renderers: [], id: '', type: :shape, parents: [], width: 99, height: 99,
+ attached: [:view_color], children: [],
+ # color: { left: 0, top: 0, red: 0.6, green: 0.9, blue: 0.9, alpha: 1, diffusion: :linear },
+ left: 100, top: 100, clones: [] },
+ text: { renderers: [], id: '', type: :text, parents: [:view], visual: { size: 25 },
+ attached: [:text_color], children: [],
+ # color: { left: 0, top: 0, red: 0.3, green: 0.3, blue: 0.3, alpha: 1, diffusion: :linear },
+ data: 'this is a text sample', width: 199, height: 33, clones: [] },
drm: { type: :drm },
- shadow: {}
+ shadow: {},
+ color: {}
}
def self.default_params
@default_params
end