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
Shuvam Sanati
purr-data
Commits
b6509195
Commit
b6509195
authored
Nov 01, 2020
by
Jonathan Wilkes
Browse files
fix weird rendering bug with svg background when zoomed-in
parent
f75d0f26
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/pdgui.js
View file @
b6509195
...
...
@@ -1418,7 +1418,7 @@ var create_editmode_background = function(grid, size) {
cell_data_str
=
[
'
"
'
,
"
M
"
,
size
,
0
,
"
L
"
,
0
,
0
,
0
,
size
,
'
"
'
].
join
(
"
"
);
head
=
[
'
<svg xmlns="http://www.w3.org/2000/svg"
'
,
'
width="100
%
" height="100
%
"
'
,
'
width="100" height="100"
'
,
'
opacity=
'
,
opacity_str
,
'
>
'
]
.
join
(
""
);
body
=
[
'
<defs>
'
,
...
...
@@ -1434,7 +1434,7 @@ var create_editmode_background = function(grid, size) {
'
d="M 100 0 L 0 0 0 100"/>
'
,
'
</pattern>
'
,
'
</defs>
'
,
'
<rect width="100
%
" height="100
%
" fill="url(#grid)" />
'
'
<rect width="100" height="100" fill="url(#grid)" />
'
].
join
(
""
);
tail
=
'
</svg>
'
;
return
"
url('data:image/svg+xml;utf8,
"
+
head
+
body
+
tail
+
"
')
"
;
...
...
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