| | |
| | | var is_ready = false; |
| | | curConfig = { |
| | | canvas_expansion: 1, |
| | | dimensions: [580,400], |
| | | dimensions: [200,200], |
| | | initFill: {color: 'fff', opacity: 1}, |
| | | initStroke: {width: 1.5, color: '000', opacity: 1}, |
| | | initOpacity: 1, |
| | |
| | | "noteTheseIssues": "Also note the following issues: ", |
| | | "unsavedChanges": "There are unsaved changes.", |
| | | "enterNewLinkURL": "Enter the new hyperlink URL", |
| | | "errorLoadingSVG": "Error: Unable to load SVG data", |
| | | "errorLoadingSVG": "错误: 无法读取SVG数据", |
| | | "URLloadFail": "Unable to load from URL", |
| | | "retrieving": 'Retrieving "%s" ...' |
| | | } |
| | |
| | | is_ready = true; |
| | | var data = window.parent.document.getElementById("svgContentId").value |
| | | svgCanvas.clear() |
| | | window.methodDraw.loadSvgString(data) |
| | | window.methodDraw.updateCanvas() |
| | | if(data){ |
| | | window.methodDraw.loadSvgString(data) |
| | | window.methodDraw.updateCanvas() |
| | | } |
| | | // alert(data+'inputValue') |
| | | }; |
| | | |