Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 21.3 KB

property-reference.md

File metadata and controls

36 lines (26 loc) · 21.3 KB

Property reference

Beneath views, Kumu uses a powerful CSS-based language to control the appearance of your maps.

If you're familiar with CSS, the advanced view editor will quickly become your best friend. The view builder only exposes a small set of the available properties. Being able to write views by hand is the only way to harness the full power of Kumu.

Note: We've adopted standard CSS properties and values wherever possible, straying where conventional values were irrelevant or misleading (eg display: map vs display: block), and adding properties specific to Kumu (such as bullseye-color).

There are just few more things you should know about the valid values listed below:

Where you see... You can use...
color Any CSS web color or hex color code
colorPalette The name of one of our color palettes
'Field name' The name of any of your fields, wrapped in single or double quotes
number or [number] Any number
number number Any two numbers separated by a space, e.g. 5 10
0 Only the number 0
0..1 Any number between 0 and 1
generic-family The name of any CSS web safe font family
family-name The name of any font family. freight-text-pro and proxima nova will always work, but other non-web-sage font families will only work if your reader has the font installed on their device.
icon-name The name of any icon from the Font Awesome collection.
icon-style solid or regular
https://... Any URL. URLs starting with https are safest and will work best within Kumu.
string template Any combination of letters, numbers, supported markdown (including raw HTML), or names of your fields wrapped in double curly brackets {{}}. Wrap the entire thing in double quotes. See our label templates guide for examples.
auto, background, bold, bottom, center, circle, clip, contain, cover, dashed, gradient, hidden, inherit, italic, manual, map, none, normal, off, rectangle, solid, square, url, visible, or wrap That exact keyword

All values are unitless.

Supported Properties

The table below lists all of the properties recognized by elements, connections, and loops. Hover over the information icon at the far right of the table rows to see additional details and valid values for each property (when there are multiple valid values, we've listed them as separate snippets of inline code).

If you find a property or a value that's not documented here, let us know!

PropertyDescriptionValuesElementsConnectionsLoops
arrow-colorOverride the arrow color for a connection.colorfalsetruefalse
arrow-heightUsed in combination with arrow-min-height to set arrow height.numberfalsetruefalse
arrow-min-heightUsed in combination with arrow-height to set arrow height.0falsetruefalse
arrow-min-widthUsed in combination with arrow-width to set arrow width.0falsetruefalse
arrow-visibilityControls arrow visibility for directed connections.visible hiddenfalsetruefalse
arrow-widthUsed in combination with arrow-min-width to set arrow width.numberfalsetruefalse
border-colorControls border color.colortruetruefalse
border-opacityControls border opacity.0..1truetruefalse
border-widthControls border width.numbertruetruefalse
bullseye-colorControls bullseye color.colortruefalsefalse
bullseye-opacityControls bullseye opacity.0..1truefalsefalse
bullseye-sizeControls bullseye size.0..1truefalsefalse
bullseye-visibilityControls bullseye visibility.visible hiddentruefalsefalse
colorControls shapes' color. (gradient only available for connections)

color

or

gradient(color, color)

truetruefalse
curvatureControls line curvature.0..1falsetruefalse
dashControls the length of connection dashes (first number) and the distance between them (second number).number numberfalsetruefalse
delay-colorControls color of delay markings.color inheritfalsetruefalse
delay-heightControls height of delay markings.numberfalsetruefalse
delay-positionControls delay markings' position along the connection.0..1falsetruefalse
delay-stroke-widthControls width of delay markings.numberfalsetruefalse
delay-visibilityControls visibility of delay markings.visible hiddenfalsetruefalse
delay-widthControls space between delay markings.numberfalsetruefalse
displayControls inclusion in the map. Hidden objects will be fully removed from the map.map nonetruetruefalse
flagDefines field and color scale for flags.'Field name' with colorPalettetruefalsefalse
flag-offsetControls space between flags and their elements.numbertruefalsefalse
flag-sizeControls thickness of flags.numbertruefalsefalse
font-colorControls label font color.colortruetruefalse
font-familyControls label font family.family-name generic-familytruetruefalse
font-sizeControls label font size.numbertruetruefalse
font-styleControls label style.normal italictruetruefalse
font-weightControls label font weight.normal boldtruetruefalse
heightControls height of elements that are squares and/or rectangles.auto numbertruefalsefalse
iconAdds an icon as the item's image.icon-name icon-name icon-style offtruefalsefalse
icon-colorControls the icon color.colortruefalsefalse
image-sizeControls image size.cover containtruefalsefalse
image-urlProvides source url of image.url(http://...)truefalsefalse
image-visibilityControls image visibilityvisible hiddentruefalsefalse
labelReplaces the default label with a label template.none string templatetruetruetrue
label-visibilityControls label visibility for all types.visible hiddentruetruefalse
layerControls whether an item is in the foreground or background.auto backgroundtruetruefalse
lengthControls connection resting length.numberfalsetruefalse
marginControls amount of space between the border of an element and its connections.number nonetruefalsefalse
opacityControls loop label opacity and element opacity.Number between 0..1truetruetrue
outline-colorControls the color of selected elements' outlines.colortruefalsefalse
outline-offsetControls the distance between selected elements and their outlines.numbertruefalsefalse
outline-opacityControls the opacity of selected elements' outlines.0..1truefalsefalse
outline-widthControls the width of selected elements' outlines.numbertruefalsefalse
paddingControls amount of space between the border of an element and its contents (image or bullseye).numbertruefalsefalse
path-opacityControls connection opacity.0..1falsetruefalse
patternControls connection pattern. Equivalent of style.solid dashedfalsetruefalse
pointer-eventsControls whether or not an item can be clicked.auto nonetruetruetrue
popoverSets the popover contentnone string templatetruetruetrue
prepost-insetControls the inset of pre-labels and post-labels.numberfalsetruefalse
prepost-offsetControls the offset of pre-labels and post-labels.numberfalsetruefalse
profileControls whether or not the profile can be openedtrue falsetruetruetrue
scaleControls element and connection scale (multiple of base size).numbertruetruefalse
shadow-colorControls shadow color.colortruefalsefalse
shadow-opacityControls shadow opacity.0..1truefalsefalse
shadow-sizeControls shadow size.1..5truefalsefalse
shadow-visibilityControls shadow visibilityvisible hiddentruefalsefalse
shapeControls shape.circle square rectangletruefalsefalse
sizeControls base size.numbertruetruefalse
strengthControls connection strength.0..1falsetruefalse
styleControls connection style. Equivalent of pattern.solid dashedfalsetruefalse
text-alignControls alignment of element labels.bottom centertruefalsefalse
text-overflowControls text wrapping and truncating.off auto auto [number] manual wrap wrap [number] clip clip [number] nonetruetruetrue
visibilityControls visibility. Hidden objects will still affect layout and metrics.visible hiddentruetruefalse
widthControls width of elements that are squares and/or rectangles.auto numbertruefalsefalse