# frozen_string_literal: true new({ method: :left, type: :integer, renderer: :html }) do |params| unit = @unit[:left] || :px if params.is_a? Numeric js[:style][:left] = "#{params}#{unit}" end new({ method: :top, type: :integer, renderer: :html }) do |params| unit = @unit[:top] || :px if params.is_a? Numeric js[:style][:top] = "#{params}#{unit}" end new({ method: :bottom, type: :integer, renderer: :html }) do |params| unit = @unit[:bottom] || :px if params.is_a? Numeric js[:style][:bottom] = "#{params}#{unit}" end new({ method: :right, type: :integer, renderer: :html }) do |params| unit = @unit[:right] || :px if params.is_a? Numeric js[:style][:right] = "#{params}#{unit}" end new({ method: :top, type: :integer, renderer: :html, specific: :shadow }) do # now we refresh if needed for dynamic refresh od affected atomes affect(affect) end new({ method: :left, type: :integer, specific: :color, renderer: :html }) new({ method: :left, type: :integer, renderer: :html, specific: :shadow }) do # now we refresh if needed for dynamic refresh od affected atomes affect(affect) end new({ method: :top, type: :integer, specific: :color, renderer: :html }) new({ method: :rotate, type: :integer, renderer: :html }) do |params| html.transform(:rotate, params) end new({ method: :rotate, type: :integer, renderer: :html, specific: :paint }) new({ renderer: :html, method: :position }) do |params| html.style("position", params) end new({ renderer: :html, method: :depth }) do |params| html.style("z-index", params) end new({ method: :organise, renderer: :html }) do |params| html.style(:gridTemplateColumns, params) end new({ method: :spacing, renderer: :html }) do |params| html.style(:gap, "#{params}px") end new({ method: :display, renderer: :html }) do |params| html.style(:display, params) end new({ renderer: :html, method: :center }) do |params| html.center(params, attach) end new({ method: :map, renderer: :html, type: :int }) do |params, _user_proc| #TODO : missing zoom params if params== :auto params={longitude: :auto, latitude: :auto} end latitude_found=@latitude longitude_found=@longitude location_hash={longitude: longitude_found, latitude: latitude_found}.merge(params) html.location(location_hash) end new({ method: :map_zoom, renderer: :html, type: :int }) do |params, _user_proc| html.map_zoom(params) end new({ method: :map_pan, renderer: :html, type: :int }) do |params, _user_proc| html.map_pan(params) end