4 Commits

Author SHA1 Message Date
Nyall Dawson
bbb4334c4b Update references to compositions in expression function help 2021-01-10 12:42:14 +10:00
Harrissou Sant-anna
43a20fed2b Updates on expression functions help
fix examples and description
add/update examples to "cross-link" functions
2020-08-10 08:32:18 +10:00
SrNetoChan
d097adeacd Add groups to function_help files 2020-07-02 15:03:16 +10:00
Nyall Dawson
f2032ea268 [FEATURE] item_variables expression function inside compositions
This adds a new item_variables expression function when expressions
are used inside a composition context.

The function takes a single argument, the id for an item inside
the composition, and returns a map of variable name to value
for that item.

This allows you to do things like insert text in a label fetching
properties of another item in the composition, eg

Insert scale of map into a label:

map_get( item_variables( 'map'),'map_scale')

Insert x coordinate of map center into a label:

x(map_get( item_variables( 'map'),'map_extent_center'))
2017-01-11 12:26:32 +10:00