Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
visb-visualisation-examples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
visb-visualisation-examples
Commits
8dca3172
Commit
8dca3172
authored
4 years ago
by
Michael Leuschel
Browse files
Options
Downloads
Patches
Plain Diff
use more features in the button example
parent
a5286649
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Button/button.json
+9
-4
9 additions, 4 deletions
Button/button.json
Button/button.mch
+3
-0
3 additions, 0 deletions
Button/button.mch
Button/button.svg
+1
-1
1 addition, 1 deletion
Button/button.svg
with
13 additions
and
5 deletions
Button/button.json
+
9
−
4
View file @
8dca3172
...
...
@@ -9,7 +9,8 @@
{
"id"
:
"button"
,
"attr"
:
"stroke-width"
,
"value"
:
"IF ENABLED(
\"
press_button
\"
) THEN 6 ELSE 1 END"
"value"
:
"IF ENABLED(
\"
press_button
\"
) THEN 6 ELSE 1 END"
,
"ignore"
:
"is now used in hover below"
},
{
"id"
:
"button_%0"
,
...
...
@@ -21,15 +22,19 @@
"events"
:
[
{
"id"
:
"button"
,
"event"
:
"toggle_button"
"event"
:
"toggle_button"
,
"hover"
:
{
"attr"
:
"stroke-width"
,
"enter"
:
"6"
,
"leave"
:
"1"
}
},
{
"id"
:
"button_TRUE"
,
"event"
:
"toggle_button"
"event"
:
"toggle_button"
,
"hover"
:
{
"attr"
:
"stroke-width"
,
"enter"
:
"3"
,
"leave"
:
"1"
,
"id"
:
"button"
}
},
{
"id"
:
"button_FALSE"
,
"event"
:
"press_button"
"event"
:
"set_button"
,
"predicates"
:
[
"newVal = bool(%shiftKey=FALSE)"
],
"hover"
:
{
"attr"
:
"stroke-width"
,
"enter"
:
"5"
,
"leave"
:
"1"
,
"id"
:
"button"
}
}
]
}
This diff is collapsed.
Click to expand it.
Button/button.mch
+
3
−
0
View file @
8dca3172
...
...
@@ -12,5 +12,8 @@ OPERATIONS
END;
toggle_button = BEGIN
button:= bool(button=FALSE)
END;
set_button(newVal) = PRE newVal:BOOL THEN
button := bool(newVal=TRUE)
END
END
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Button/button.svg
+
1
−
1
View file @
8dca3172
<svg
height=
"2
3
0"
width=
"200"
>
<svg
height=
"2
4
0"
width=
"200"
>
<circle
id=
"button"
cx=
"100"
cy=
"100"
r=
"80"
stroke=
"black"
stroke-width=
"3"
fill=
"green"
/>
<text
text-align=
"left"
x=
"50"
y=
"190"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment