Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
David MacDonald
purr-data
Commits
208199ff
Commit
208199ff
authored
Jan 12, 2018
by
Jonathan Wilkes
Browse files
fix nbx
parent
8d1554c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/pdgui.js
View file @
208199ff
...
...
@@ -1952,7 +1952,7 @@ function gui_gobj_new(cid, tag, type, xpos, ypos, is_toplevel) {
ypos
+=
0.5
,
gui
(
cid
).
get_elem
(
"
patchsvg
"
,
function
(
svg_elem
)
{
var
transform_string
=
"
matrix(1,0,0,1,
"
+
xpos
+
"
,
"
+
ypos
+
"
)
"
;
var
g
=
create_item
(
cid
,
"
g
"
,
{
g
=
create_item
(
cid
,
"
g
"
,
{
id
:
tag
+
"
gobj
"
,
transform
:
transform_string
,
class
:
type
+
(
is_toplevel
!==
0
?
""
:
"
gop
"
)
...
...
@@ -2591,16 +2591,19 @@ function gui_toggle_new(cid, tag, color, width, state, p1,p2,p3,p4,p5,p6,p7,p8,b
}
function
gui_toggle_resize_cross
(
cid
,
tag
,
w
,
p1
,
p2
,
p3
,
p4
,
p5
,
p6
,
p7
,
p8
,
basex
,
basey
)
{
var
points
=
[
p1
-
basex
,
p2
-
basey
,
var
points
1
=
[
p1
-
basex
,
p2
-
basey
,
p3
-
basex
,
p4
-
basey
].
join
(
"
"
),
points_array
=
[
p5
-
basex
,
p6
-
basey
,
p7
-
basex
,
p8
-
basey
].
join
(
"
"
);
gui
(
cid
)
.
get_elem
(
tag
+
"
cross1
"
,
{
points
:
points
,
points
1
:
points
,
"
stroke-width
"
:
w
})
.
get_elem
(
tag
+
"
cross2
"
,
{
points
:
points
,
points
2
:
points
,
"
stroke-width
"
:
w
});
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment