File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
resources/function_help/json Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 3
3
"type": "function",
4
4
"description": "Returns if a feature is selected. If called with no parameters checks the current feature.",
5
5
"arguments": [
6
- {"arg":"feature","description":"The feature which should be checked for selection"},
7
- {"arg":"layer","description":"The layer (or its id or name) on which the selection will be checked"}
6
+ {
7
+ "arg":"feature",
8
+ "optional": true,
9
+ "default": "current feature",
10
+ "description":"The feature which should be checked for selection."
11
+ },
12
+ {
13
+ "arg": "layer",
14
+ "optional": true,
15
+ "default": "current layer",
16
+ "description": "The layer (or its id or name) on which the selection will be checked."
17
+ }
8
18
],
9
19
"examples": [
10
20
{ "expression":"is_selected()", "returns" : "True if the current feature is selected."},
Original file line number Diff line number Diff line change 3
3
"type": "function",
4
4
"description": "Returns the number of selected features on a given layer. By default works on the layer on which the expression is evaluated.",
5
5
"arguments": [
6
- {"arg":"layer","description":"The layer (or its id or name) on which the selection will be checked"}
6
+ {
7
+ "arg": "layer",
8
+ "optional": true,
9
+ "default": "current layer",
10
+ "description": "The layer (or its id or name) on which the selection will be checked."
11
+ }
7
12
],
8
13
"examples": [
9
14
{ "expression":"num_selected()", "returns":"The number of selected features on the current layer."},
You can’t perform that action at this time.
0 commit comments