Skip to content

Commit

Permalink
fixed import cache paths, removed svgpoint dev from client, verovio t…
Browse files Browse the repository at this point in the history
…ests
  • Loading branch information
ramagottfried committed Oct 3, 2019
1 parent c1c3f86 commit 9fe61ed
Show file tree
Hide file tree
Showing 14 changed files with 25,960 additions and 5,139 deletions.
1 change: 0 additions & 1 deletion code/node/drawsocket-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,6 @@ class ClientState
}


// might be a good idea to do this via node rather than loading via max, but maybe it doesn't matter... not sure
loadCache(filename, prefix, _proc)
{
fs.readFile(filename, (err, data) =>{
Expand Down
6 changes: 3 additions & 3 deletions code/node/drawsocket-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,16 +286,16 @@ if (cluster.isMaster)
cache_proc.send({
key: 'write',
url: prefix,
val: filename //usr_root_path+
val: usr_root_path+filename
});
});

Max.addHandler("importcache", (filename, prefix) => {
// Max.post("attempting to import", userpath[0]+filename, prefix);
// Max.post("attempting to import", userpath[0]+filename, prefix);
cache_proc.send({
key: 'read',
url: prefix,
val: filename //usr_root_path+
val: usr_root_path+filename
});
});

Expand Down
10 changes: 8 additions & 2 deletions code/node/lib/drawsocket-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -659,11 +659,11 @@ var drawsocket = (function(){

el.style(cssprop, cssnode[cssprop]);
}
}
}/*
else if( prop === "points" )
{
el.attr('d', SVGPoints.toPath(node.points) );
}
}*/
else if( prop === "child" || prop === "children" || prop === "text" || prop === "html")
{
// case of child node
Expand Down Expand Up @@ -2128,6 +2128,12 @@ var drawsocket = (function(){
Array.prototype.forEach.call(elm.attributes, (attr) => {
if( attr.specified )
{
/*
if( obj.type === 'path' && attr.name === 'd' ){
obj.points = SVGPoints.toPoints({ type: "path", d: attr.value });
}
*/

obj[attr.name] = attr.value;
}
});
Expand Down
Binary file added dev/pdf-export-test/file.pdf
Binary file not shown.
59 changes: 59 additions & 0 deletions dev/pdf-export-test/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9fe61ed

Please sign in to comment.