app/views/pageflow/linkmap_page/areas/_div.html.erb in pageflow-linkmap-page-0.2.0 vs app/views/pageflow/linkmap_page/areas/_div.html.erb in pageflow-linkmap-page-1.0.0

- old
+ new

@@ -1,21 +1,18 @@ -<%= content_tag(:div, class: "linkmap_areas") do %> +<%= content_tag(:div, class: "linkmap_areas", data: data_attributes) do %> <% (configuration['linkmap_areas'].presence || []).each_with_index do |attributes, index| %> - <%= linkmap_area(entry, attributes, index) do %> - <%= background_image_div_with_size(configuration, 'visited_image', class: 'visited_image', style_group: :panorama) %> + <%= linkmap_area(entry, attributes, index, configuration['background_type']) do %> + <canvas class="visited_image"></canvas> <% if configuration['background_type'] == 'hover_video' && !Pageflow::ImageFile.find_by_id(configuration['hover_image_id']) %> <%= background_image_div_with_size(configuration, 'panorama_video', file_type: 'video_file', class: 'hover_image') %> <% else %> - <%= background_image_div_with_size(configuration, - 'hover_image', - class: 'hover_image', - style_group: :panorama) %> + <canvas class="hover_image"></canvas> <% end %> <div class="linkmap_marker <%= attributes['marker'] %>"> <div class="inline_loading_spinner"> <div class="circle_inner">