brinley / jSignature

jQuery plugin for adding web signature functionality
http://www.unbolt.net/jSignature
696 stars 529 forks source link

Svg Stroke Color #43

Closed jclarke-independentreach-com closed 8 years ago

jclarke-independentreach-com commented 11 years ago

$("#signature").jSignature({color:"#000080"}); --> signature shows in lovely navy color ajax({ff:"writeSignature",d:$("#signature").jSignature("getData","svgbase64")[1]}); -->data upload, decoded, written to svg file great, but: ...<path fill="none" stroke="#000000"... ->stroke color not navy!!!

brinley commented 10 years ago

Sorry for the super late response, but I tested this and was not able to replicate this.

I suspect your decoder process is causing the issue when decoding svgbase64

$("#signature").jSignature("getData","svg")[1] "<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">"