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
Giulio
purr-data
Commits
ff36e03a
Commit
ff36e03a
authored
Apr 18, 2017
by
Jonathan Wilkes
Browse files
add border
parent
37f6c11f
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/pdgui.js
View file @
ff36e03a
...
@@ -3676,6 +3676,7 @@ function gui_scope_draw_bg(cid, tag, fg_color, bg_color, w, h, grid_width, dx, d
...
@@ -3676,6 +3676,7 @@ function gui_scope_draw_bg(cid, tag, fg_color, bg_color, w, h, grid_width, dx, d
path_string
=
""
,
path_string
=
""
,
fg_xy_path
,
// to be used for the foreground lines
fg_xy_path
,
// to be used for the foreground lines
fg_mono_path
,
fg_mono_path
,
border
,
i
,
x
,
y
,
align_x
,
align_y
;
i
,
x
,
y
,
align_x
,
align_y
;
// Path strings for the grid lines
// Path strings for the grid lines
// vertical lines...
// vertical lines...
...
@@ -3709,10 +3710,18 @@ function gui_scope_draw_bg(cid, tag, fg_color, bg_color, w, h, grid_width, dx, d
...
@@ -3709,10 +3710,18 @@ function gui_scope_draw_bg(cid, tag, fg_color, bg_color, w, h, grid_width, dx, d
stroke
:
fg_color
,
stroke
:
fg_color
,
class
:
"
fgmono
"
class
:
"
fgmono
"
});
});
border
=
create_item
(
cid
,
"
rect
"
,
{
style
:
"
fill: none;
"
,
width
:
w
,
height
:
h
,
class
:
"
border
"
,
"
stroke-width
"
:
grid_width
});
g
.
appendChild
(
bg
);
g
.
appendChild
(
bg
);
g
.
appendChild
(
path
);
g
.
appendChild
(
path
);
g
.
appendChild
(
fg_xy_path
);
g
.
appendChild
(
fg_xy_path
);
g
.
appendChild
(
fg_mono_path
);
g
.
appendChild
(
fg_mono_path
);
g
.
appendChild
(
border
);
}
}
function
scope_configure_fg
(
cid
,
tag
,
type
,
data_array
)
{
function
scope_configure_fg
(
cid
,
tag
,
type
,
data_array
)
{
...
@@ -3766,6 +3775,12 @@ function gui_scope_clear_fg(cid, tag) {
...
@@ -3766,6 +3775,12 @@ function gui_scope_clear_fg(cid, tag) {
scope_configure_fg
(
cid
,
tag
,
"
.fgmono
"
,
[]);
scope_configure_fg
(
cid
,
tag
,
"
.fgmono
"
,
[]);
}
}
function
gui_scope_erase_innards
(
cid
,
tag
)
{
var
g
=
get_gobj
(
cid
,
tag
);
// Nuke it
g
.
innerHTML
=
''
;
}
// unauthorized/grid
// unauthorized/grid
function
get_grid_data
(
w
,
h
,
x_l
,
y_l
)
{
function
get_grid_data
(
w
,
h
,
x_l
,
y_l
)
{
...
...
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