Style
Defined In: | style.js |
Class: | Style |
Extends: |
Property | Defined By | |
---|---|---|
styles : Object (GSS) (Wiki Page)
Storage for loaded styles...
Storage for loaded styles
|
Style Style | |
styles_changed : Boolean (Wiki Page)
Whether any dynamic styles have been recalculated. Triggers draw....
Whether any dynamic styles have been recalculated. Triggers draw.
|
Style Style |
Method | Defined By | |
---|---|---|
apply_gss( String gss_string, Boolean force_update ) : void (Wiki Page)
Copies each style from a gss string into the Styles.styles object,
which is the master 'merged' style storage for the m...
Copies each style from a gss string into the Styles.styles object,
which is the master 'merged' style storage for the map
Parameters:
|
Style Style | |
cascade( Object old_styles, Object new_styles ) : void (Wiki Page)
Cascades a set of styles over another set. More or less merges the two....
Cascades a set of styles over another set. More or less merges the two.
Parameters:
|
Style Style | |
create_refresher( Feature feature, String property, Function generator, Number interval ) : void (Wiki Page)
Creates a periodical executer that updates a property...
Creates a periodical executer that updates a property
Parameters:
|
Style Style | |
extend_value( old_val, new_val ) : void (Wiki Page)
If old_val and new_val are arrays, returns the two arrays, merged. Else, returns
new_val....
If old_val and new_val are arrays, returns the two arrays, merged. Else, returns
new_val.
Parameters:
|
Style Style | |
load_styles( String stylesheet_url ) : void (Wiki Page)
Loads a remove stylesheet....
Loads a remove stylesheet.
Parameters:
|
Style Style | |
parse_styles( Object feature, Object selector ) : void (Wiki Page)
Take styles from GSS and set appropriate properties of a feature...
Take styles from GSS and set appropriate properties of a feature
Parameters:
|
Style Style | |
refresh_style( Feature feature, String property ) : void (Wiki Page)
Refreshes a property from its generator...
Refreshes a property from its generator
Parameters:
|
Style Style | |
style_body( ) : void (Wiki Page)
Applies the global "body" styles...
Applies the global "body" styles
Parameters:
|
Style Style |
This class has no events
Event | Defined By |
---|