Commit 208199ff authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix nbx

parent 8d1554c9
......@@ -1952,7 +1952,7 @@ function gui_gobj_new(cid, tag, type, xpos, ypos, is_toplevel) {
ypos += 0.5,
gui(cid).get_elem("patchsvg", function(svg_elem) {
var transform_string = "matrix(1,0,0,1," + xpos + "," + ypos + ")";
var g = create_item(cid, "g", {
g = create_item(cid, "g", {
id: tag + "gobj",
transform: transform_string,
class: type + (is_toplevel !== 0 ? "" : " gop")
......@@ -2591,16 +2591,19 @@ function gui_toggle_new(cid, tag, color, width, state, p1,p2,p3,p4,p5,p6,p7,p8,b
}
function gui_toggle_resize_cross(cid,tag,w,p1,p2,p3,p4,p5,p6,p7,p8,basex,basey) {
var points = [p1 - basex, p2 - basey,
var points1 = [p1 - basex, p2 - basey,
p3 - basex, p4 - basey
].join(" "),
points_array = [p5 - basex, p6 - basey,
p7 - basex, p8 - basey
].join(" ");
gui(cid)
.get_elem(tag + "cross1", {
points: points,
points1: points,
"stroke-width": w
})
.get_elem(tag + "cross2", {
points: points,
points2: points,
"stroke-width": w
});
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment