Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Wynn
purr-data
Commits
b15fd06a
Commit
b15fd06a
authored
Apr 27, 2015
by
user
Browse files
added new stylesheet to the pd console
parent
c3c2f1be
Changes
3
Hide whitespace changes
Inline
Side-by-side
pd/nw/index.html
View file @
b15fd06a
<!DOCTYPE html>
<html>
<head>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
index
.css"
>
<link
id=
"page_style"
rel=
"stylesheet"
type=
"text/css"
href=
"
css/default
.css"
>
</head>
<body
id=
"console_body"
>
<input
style=
"display:none;"
id=
"fileDialog"
type=
"file"
nwworkingdir
multiple
/>
...
...
@@ -22,6 +22,9 @@
pdgui
.
set_pd_window
(
this
);
pdgui
.
set_app_quitfn
(
app_quit
);
// gui preset
pdgui
.
skin
.
apply
(
this
);
// For translations
var
l
=
pdgui
.
get_local_string
;
...
...
pd/nw/pd_canvas.html
View file @
b15fd06a
...
...
@@ -12,6 +12,7 @@
<svg
xmlns=
"http://www.w3.org/2000/svg"
version=
"1.1"
id=
"patchsvg"
height=
"1000"
width=
"1000"
class=
"noselect"
>
<rect
id=
"bbox_rect"
></rect>
</svg>
<script>
'
use strict
'
;
...
...
pd/nw/pdgui.js
View file @
b15fd06a
...
...
@@ -1861,9 +1861,9 @@ function gui_configure_item(cid, tag, attributes) {
// Most of these map either to pd.tk procs, or in some cases Tk canvas subcommands
function
gui_text_create_gobj
(
cid
,
tag
,
type
,
xpos
,
ypos
,
is_toplevel
)
{
gui_post
(
"
creating a gobj
"
);
var
svg
=
get_item
(
cid
,
"
patchsvg
"
);
// "patchsvg" is id for the svg
in the DOM
// Put objects on half-pixels to make them crisp (look in to the
difference between
// this and the object-rendering 'crispEdges' attribute)
var
svg
=
get_item
(
cid
,
"
patchsvg
"
);
// "patchsvg" is id for the svg
element
// Put objects on half-pixels to make them crisp (look in to the
//
difference between
this and the object-rendering 'crispEdges' attribute)
xpos
+=
0.5
;
ypos
+=
0.5
;
var
transform_string
=
'
matrix(1,0,0,1,
'
+
xpos
+
'
,
'
+
ypos
+
'
)
'
;
...
...
Write
Preview
Supports
Markdown
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