@settings reference
In the Advanced Editor, the @settings
block can be used to tweak default settings and add all kinds of powerful features to your view.
The @settings
block supports all decoration properties listed in the property reference, as long as you prefix each property with one of the following:
*-
if you want to apply the rule to all itemselement-
to apply the rule to elements onlyconnection-
to apply the rule to connections onlyloop-
to apply the rule to loops only
But, @settings
also supports its own list of exclusive properties. The table below lists all properties that can be used exclusively inside an @settings
block, describes their effect on the view, and lists valid values for each property (when there are multiple valid values, we've listed them as separate snippets of inline code
).
There are just few more things you should know about the valid values listed below:
Where you see... | You can use... |
---|---|
| Any selector |
| Any CSS web color or hex color code |
| Any number |
| The name of any of your fields, wrapped in single or double quotes |
| Any text/string value |
All values are unitless.
Supported properties
Property | Description | Possible values |
---|---|---|
attenuation | Determines whether elements and connections maintain their size relative to the background map (available for the Geo template only) |
|
background-color | Sets the canvas' background color |
|
background-opacity | Sets the opacity of items outside of a showcased selection |
|
bridge | Activates bridging. See the bridge guide for more information. |
|
cluster | Activates clustering. See the cluster guide for more information. |
|
culling | Determines whether elements and connections are hidden when the reader zooms in very close |
|
focus | Activates focus. See the focus guide for more information. |
|
font-cutoff | Sets the minimum font size at which labels will display when the map is zoomed out. Set to |
|
foreground-opacity | Sets the opacity of showcased items |
|
geo-location | Sets the field that will be used to geo-locate elements |
|
geo-style | Sets the style of the geo map |
|
ignore | Ignores a selection. See the filter guide for more information. |
|
ignore-orphans | Hides any orphans (elements that have no connections). See the filter guide for more information. |
|
include | Includes a selection. See the filter guide for more information. |
|
layout | Sets the layout type |
|
layout-bounds-xmax | Sets a maximum x coordinate that grid and guide lines can extend to |
|
layout-bounds-xmin | Sets a minimum x coordinate that grid and guide lines can extend to |
|
layout-bounds-ymax | Sets a maximum y coordinate that grid and guide lines can extend to |
|
layout-bounds-ymin | Sets a minimum y coordinate that grid and guide lines can extend to |
|
layout-gravity | Sets the gravity for the force-directed layout |
|
layout-grid | Determines whether a grid will be shown |
|
layout-grid-color | Sets the color of the grid |
|
layout-grid-offset | Sets the space between grid lines |
|
layout-grid-width | Sets the thickness of grid lines |
|
layout-guide-color | Sets the color of guide lines |
|
layout-guide-width | Sets the thickness of guide lines |
|
layout-guides | Sets the x or y coordinate for each guide line, or the origin and radius of a circle |
|
layout-particle-charge | Sets the particle charge for the force-directed layout |
|
layout-preset | Chooses a preset version of the force-directed layout |
|
layout-spring-length | Sets the spring length for the force-directed layout |
|
layout-spring-strength | Sets the spring strength for the force-directed layout |
|
layout-x | Sets the field used to determine elements' x coordinate in the scatter layout |
|
layout-x-multiplier | Sets a number that will be multiplied by each elements |
|
layout-y | Sets the field used to determine elements' x coordinate in the scatter layout |
|
layout-y-multiplier | Sets a number that will be multiplied by each elements |
|
notification-color | Sets the color of asterisks created by Issues |
|
profile | Controls whether or not profiles can be opened |
|
quality | Sets the render quality |
|
radar | Determines whether a radar will be shown |
|
radar-axes | Sets the labels for radar axes |
|
radar-font-color | Sets the color of radar labels |
|
radar-font-family | Sets the font family of radar labels |
|
radar-font-size | Sets the font size for radar labels |
|
radar-ring-color | Sets the color between radar rings |
|
radar-ring-opacity | Sets the opacity of radar rings |
|
radar-ring-size | Sets the distance between radar rings |
|
radar-ring-size-inner | Sets the radius of the inner radar ring |
|
radar-rings | Sets the labels for radar rings |
|
renderer | Chooses which rendered will be used |
|
scale-max | Sets the maximum allowed zoom level |
|
scale-min | Sets the minimum allowed zoom level |
|
selection-color | Sets the color of the ring that appears around selected elements |
|
showcase | Activates showcase. See the showcase guide for more information. |
|
template | Chooses a template |
|
theme | Sets the view's overall theme |
|
Last updated