# frozen_string_literal: true # for browser rendering module BrowserHelper def self.browser_document # Work because of the patched version of opal-browser(0.39) Browser.window end def self.browser_attach_(_parents, _html_object, _atome) # dummy methods to catch atomes that do not need to be attached to any particular visual atime end def self.browser_attach_div(parents, html_object, _atome) html_object.append_to(browser_document[parents]) end def self.add_class_to_vector(vector_id, color_id) # TODO : Create a class instead of modifying the vector # get the content the