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
2fbb26ea
Commit
2fbb26ea
authored
Jun 14, 2015
by
user
Browse files
use shape-rendering: crispEdges on gobj (fix child shapes as needed)
parent
c1a11439
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/pdgui.js
View file @
2fbb26ea
...
...
@@ -1891,7 +1891,7 @@ function gui_text_create_gobj(cid, tag, type, xpos, ypos, is_toplevel) {
id
:
tag
+
'
gobj
'
,
transform
:
transform_string
,
class
:
type
+
(
is_toplevel
!==
0
?
''
:
'
gop
'
),
//
'shape-rendering': 'crispEdges'
'
shape-rendering
'
:
'
crispEdges
'
});
add_gobj_to_svg
(
svg
,
g
);
// var bluh = svg.getBBox();
...
...
@@ -2020,6 +2020,7 @@ function gui_message_drawborder(cid,tag,width,height) {
points
:
p_array
.
join
(),
fill
:
'
none
'
,
stroke
:
'
black
'
,
// 'shape-rendering': 'crispEdges',
// 'stroke-width': 1,
class
:
'
border
'
// id: tag + 'border'
...
...
@@ -2328,9 +2329,10 @@ function gui_hide_selection_rectangle(cid) {
function
gui_create_bng
(
cid
,
tag
,
cx
,
cy
,
radius
)
{
var
g
=
get_gobj
(
cid
,
tag
);
var
circle
=
create_item
(
cid
,
'
circle
'
,
{
cx
:
cx
,
cy
:
cy
,
cx
:
cx
+
0.5
,
cy
:
cy
+
0.5
,
r
:
radius
,
'
shape-rendering
'
:
'
auto
'
,
fill
:
'
none
'
,
stroke
:
'
black
'
,
'
stroke-width
'
:
1
,
...
...
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