Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nerrons
purr-data
Commits
c5803cf2
Commit
c5803cf2
authored
Aug 27, 2017
by
Jonathan Wilkes
Browse files
Merge branch 'fix-preset-node'
parents
ab84354e
9c53c8fe
Changes
1
Show whitespace changes
Inline
Side-by-side
pd/nw/pdgui.js
View file @
c5803cf2
...
...
@@ -2123,12 +2123,20 @@ function gui_canvas_update_line(cid, tag, x1, y1, x2, y2, yoff) {
var
halfx
=
parseInt
((
x2
-
x1
)
/
2
),
halfy
=
parseInt
((
y2
-
y1
)
/
2
),
cord
=
get_item
(
cid
,
tag
),
// see comment in gui_canvas_line about xoff
xoff
=
cord
.
classList
.
contains
(
"
signal
"
)
?
0
:
0.5
,
xoff
,
// see comment in gui_canvas_line about xoff
d_array
;
// We have to check for existence here for the special case of
// preset_node which hides a wire that feeds back from the downstream
// object to its inlet. Pd refrains from drawing this hidden wire at all.
// It should also suppress a call here to update that line, but it
// currently doesn't. So we check for existence.
if
(
cord
)
{
xoff
=
cord
.
classList
.
contains
(
"
signal
"
)
?
0
:
0.5
;
d_array
=
[
"
M
"
,
x1
+
xoff
,
y1
+
xoff
,
"
Q
"
,
x1
+
xoff
,
y1
+
yoff
+
xoff
,
x1
+
halfx
+
xoff
,
y1
+
halfy
+
xoff
,
"
Q
"
,
x2
+
xoff
,
y2
-
yoff
+
xoff
,
x2
+
xoff
,
y2
+
xoff
];
configure_item
(
cord
,
{
d
:
d_array
.
join
(
"
"
)
});
}
}
function
text_line_height_kludge
(
fontsize
,
fontsize_type
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment