- Linting (HTML): Use double-quotes for attributes, remove redundant type=text/css,
indent/lbs, consistent non-use of HTML namespace, consistent indents, consistent charset
casing
- Linting (Markdown): Add `.remarkrc`, use proper hierarchical headings, use consistent
heading format, trailing spaces
- `composer.json`: consistent property spacing
- License: Add `.txt` extension, update copyright date, and reflect type (MIT) in file name
- Credits: Add self
- npm: Add `package.json` (version 3.0.0-alpha.1 for npm release only; just reserving name)
This commit is contained in:
10
.remarkrc
Normal file
10
.remarkrc
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"plugins": {
|
||||||
|
"lint": {
|
||||||
|
"ordered-list-marker-value": "one",
|
||||||
|
"no-missing-blank-lines": false,
|
||||||
|
"list-item-spacing": false,
|
||||||
|
"list-item-indent": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
1
AUTHORS
1
AUTHORS
@@ -3,6 +3,7 @@ Pavol Rusnak <stick@gk2.sk>
|
|||||||
Jeff Schiller <codedread@gmail.com>
|
Jeff Schiller <codedread@gmail.com>
|
||||||
Vidar Hokstad <vidar.hokstad@gmail.com>
|
Vidar Hokstad <vidar.hokstad@gmail.com>
|
||||||
Alexis Deveria <adeveria@gmail.com>
|
Alexis Deveria <adeveria@gmail.com>
|
||||||
|
Brett Zamir <brettz9@yahoo.com>
|
||||||
|
|
||||||
Translation credits:
|
Translation credits:
|
||||||
|
|
||||||
|
|||||||
16
CHANGES.md
16
CHANGES.md
@@ -1,3 +1,9 @@
|
|||||||
|
# 3.0.0-alpha.1
|
||||||
|
|
||||||
|
(Only released on npm)
|
||||||
|
|
||||||
|
* Provide `package.json` for npm to reserve name (reflecting current state of `master`)
|
||||||
|
|
||||||
# 2.8.1 (Ellipse) - December 2nd, 2015
|
# 2.8.1 (Ellipse) - December 2nd, 2015
|
||||||
|
|
||||||
For a complete list of changes run:
|
For a complete list of changes run:
|
||||||
@@ -79,11 +85,11 @@ git log 4bb15e0..253b4bf
|
|||||||
* Security improvements and other fixes
|
* Security improvements and other fixes
|
||||||
* Embedded editor can now work same domain without JSON parsing and the consequent potential loss of arguments or return values.
|
* Embedded editor can now work same domain without JSON parsing and the consequent potential loss of arguments or return values.
|
||||||
* Potentially breaking API changes:
|
* Potentially breaking API changes:
|
||||||
** Disallowed "extPath", "imgPath", "langPath", and "jGraduatePath" setting via URL and prevent cross-domain/cross-folder extensions being set by URL (security enhancement)
|
* Disallowed "extPath", "imgPath", "langPath", and "jGraduatePath" setting via URL and prevent cross-domain/cross-folder extensions being set by URL (security enhancement)
|
||||||
** Deprecated "pngsave" option called by setCustomHandlers() in favor of "exportImage" (to accommodate export of other image types). Second argument will now supply, in addition to "issues" and "svg", the properties "type" (currently 'PNG', 'JPEG', 'BMP', 'WEBP'), "mimeType", and "quality" (for 'JPEG' and 'WEBP' types).
|
* Deprecated "pngsave" option called by setCustomHandlers() in favor of "exportImage" (to accommodate export of other image types). Second argument will now supply, in addition to "issues" and "svg", the properties "type" (currently 'PNG', 'JPEG', 'BMP', 'WEBP'), "mimeType", and "quality" (for 'JPEG' and 'WEBP' types).
|
||||||
** Default extensions will now always load (along with those supplied in the URL unless the latter is prohibited by configuration), so if you do not wish your old code to load all of the default extensions, you will need to add &noDefaultExtensions=true to the URL (or add equivalent configuration in config.js). ext-overview_window.js can now be excluded though it is still a default.
|
* Default extensions will now always load (along with those supplied in the URL unless the latter is prohibited by configuration), so if you do not wish your old code to load all of the default extensions, you will need to add &noDefaultExtensions=true to the URL (or add equivalent configuration in config.js). ext-overview_window.js can now be excluded though it is still a default.
|
||||||
** Preferences and configuration options must be within the list supplied within svg-editor.js (should include those of all documented extensions).
|
* Preferences and configuration options must be within the list supplied within svg-editor.js (should include those of all documented extensions).
|
||||||
** Embedded messaging will no longer work by default for privacy/data integrity reasons. One must include the "ext-xdomain-messaging.js" extension and supply an array configuration item, "allowedOrigins" with potential values including: "\*" (to allow all domains--strongly discouraged!), "null" as a string to allow file:// access, window.location.origin (to allow same domain access), or specific trusted origins. The embedded editor works without the extension if the main editor is on the same domain, but if cross-domain control is needed, the "allowedOrigins" array must be supplied by a call to svgEditor.setConfig({allowedOrigins: [origin1, origin2, etc.]}) in the new config.js file.
|
* Embedded messaging will no longer work by default for privacy/data integrity reasons. One must include the "ext-xdomain-messaging.js" extension and supply an array configuration item, "allowedOrigins" with potential values including: "\*" (to allow all domains--strongly discouraged!), "null" as a string to allow file:// access, window.location.origin (to allow same domain access), or specific trusted origins. The embedded editor works without the extension if the main editor is on the same domain, but if cross-domain control is needed, the "allowedOrigins" array must be supplied by a call to svgEditor.setConfig({allowedOrigins: [origin1, origin2, etc.]}) in the new config.js file.
|
||||||
|
|
||||||
# 2.6 (Cycloid) - January 15th, 2013
|
# 2.6 (Cycloid) - January 15th, 2013
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
Copyright (c) 2009-2012 by SVG-edit authors (see AUTHORS file)
|
Copyright (c) 2009-2018 by SVG-edit authors (see AUTHORS file)
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
@@ -21,6 +21,10 @@
|
|||||||
{
|
{
|
||||||
"name": "Alexis Deveria",
|
"name": "Alexis Deveria",
|
||||||
"email": "adeveria@gmail.com"
|
"email": "adeveria@gmail.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Brett Zamir",
|
||||||
|
"email": "brettz9@yahoo.com"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|||||||
@@ -1,37 +1,36 @@
|
|||||||
Projects used by SVG-edit
|
# Projects used by SVG-edit
|
||||||
===
|
|
||||||
|
|
||||||
Like many open source projects, SVG-edit depends on other open source projects. This page acknowledges these projects and the many software developers across the globe without which our software would be sorely lacking.
|
Like many open source projects, SVG-edit depends on other open source projects. This page acknowledges these projects and the many software developers across the globe without which our software would be sorely lacking.
|
||||||
|
|
||||||
#### jQuery
|
## jQuery
|
||||||
Jonathan Resig's [jQuery library](https://jquery.com) was chosen as a basis for the project since the beginning. The power of jQuery really lets us focus on the functionality and not worry about all the intricacies of mixing with the HTML, CSS and SVG DOM.
|
Jonathan Resig's [jQuery library](https://jquery.com) was chosen as a basis for the project since the beginning. The power of jQuery really lets us focus on the functionality and not worry about all the intricacies of mixing with the HTML, CSS and SVG DOM.
|
||||||
|
|
||||||
#### jPicker
|
## jPicker
|
||||||
Christopher Tillman's awesome [jPicker](http://www.digitalmagicpro.com/jPicker) is used as our fill/stroke picker. The source code repository is now hosted at GoogleCode.
|
Christopher Tillman's awesome [jPicker](http://www.digitalmagicpro.com/jPicker) is used as our fill/stroke picker. The source code repository is now hosted at GoogleCode.
|
||||||
|
|
||||||
Christopher was gracious enough to take suggestions from Pavol on how to incorporate opacity and some callback functionality back upstream into jPicker.
|
Christopher was gracious enough to take suggestions from Pavol on how to incorporate opacity and some callback functionality back upstream into jPicker.
|
||||||
|
|
||||||
#### jGraduate
|
## jGraduate
|
||||||
Jeff Schiller created the excellent [jGraduate](https://code.google.com/p/jgraduate/) plugin to select SVG gradients in SVG-edit.
|
Jeff Schiller created the excellent [jGraduate](https://code.google.com/p/jgraduate/) plugin to select SVG gradients in SVG-edit.
|
||||||
|
|
||||||
#### canvg
|
## canvg
|
||||||
Gabe Lerner's excellent [canvg](https://github.com/gabelerner/canvg) library has helped us bypass browsers' inability to save SVG files an PNGs, by first rendering SVG images in an HTML5 Canvas element.
|
Gabe Lerner's excellent [canvg](https://github.com/gabelerner/canvg) library has helped us bypass browsers' inability to save SVG files an PNGs, by first rendering SVG images in an HTML5 Canvas element.
|
||||||
|
|
||||||
#### jQuery UI
|
## jQuery UI
|
||||||
|
|
||||||
We use [jQuery-UI](http://jqueryui.com) for making the dialog boxes (color picker, document properties) draggable, as well as for the opacity slider.
|
We use [jQuery-UI](http://jqueryui.com) for making the dialog boxes (color picker, document properties) draggable, as well as for the opacity slider.
|
||||||
|
|
||||||
#### js-hotkeys
|
## js-hotkeys
|
||||||
|
|
||||||
[js-hotkeys](https://github.com/jeresig/jquery.hotkeys) is used to bind all keyboard events in the editor.
|
[js-hotkeys](https://github.com/jeresig/jquery.hotkeys) is used to bind all keyboard events in the editor.
|
||||||
|
|
||||||
#### JQuery Web Spin-Button
|
## JQuery Web Spin-Button
|
||||||
|
|
||||||
George Adamson's [Web Spin-Button](http://www.softwareunity.com/jquery/JQuerySpinBtn) provided a starting point to implementing a cross-browser spin control in SVG-edit. A few bugs were fixed with compatibility and sent back to George for hopeful inclusion in the next version of his jQuery plugin.
|
George Adamson's [Web Spin-Button](http://www.softwareunity.com/jquery/JQuerySpinBtn) provided a starting point to implementing a cross-browser spin control in SVG-edit. A few bugs were fixed with compatibility and sent back to George for hopeful inclusion in the next version of his jQuery plugin.
|
||||||
|
|
||||||
#### SVG Icon Loader
|
## SVG Icon Loader
|
||||||
Alexis Deveria's [svg-icon-loader](https://code.google.com/p/svg-icon-loader/) is used to load in all the SVG icons for the SVG-edit user interface.
|
Alexis Deveria's [svg-icon-loader](https://code.google.com/p/svg-icon-loader/) is used to load in all the SVG icons for the SVG-edit user interface.
|
||||||
|
|
||||||
#### Icons
|
## Icons
|
||||||
|
|
||||||
Many of the icons used in SVG-edit come from the [Tango Desktop Project](http://tango.freedesktop.org/Tango_Desktop_Project) which are released into the public domain. We also used a couple of icons from the [Silk Icon Project](http://famfamfam.com/lab/icons/silk), which is licensed under the Creative Commons Attribution 2.5 License. Finally, some of the icons were hand-drawn (in SVG-edit itself).
|
Many of the icons used in SVG-edit come from the [Tango Desktop Project](http://tango.freedesktop.org/Tango_Desktop_Project) which are released into the public domain. We also used a couple of icons from the [Silk Icon Project](http://famfamfam.com/lab/icons/silk), which is licensed under the Creative Commons Attribution 2.5 License. Finally, some of the icons were hand-drawn (in SVG-edit itself).
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
Creating a new svg-edit release
|
# Creating a new svg-edit release
|
||||||
============
|
|
||||||
|
|
||||||
## Update the main project
|
## Update the main project
|
||||||
|
|
||||||
1. Update the VERSION variable in Makefile.
|
1. Update the VERSION variable in Makefile.
|
||||||
2. Update the CHANGES file with a summary of all changes.
|
2. Update `version` in `package.json`
|
||||||
3. Commit these changes with `git commit -m "Updating Makefile and CHANGES for release X.Y"`.
|
3. Update the CHANGES file with a summary of all changes.
|
||||||
|
4. Commit these changes with `git commit -m "Updating Makefile and CHANGES for release X.Y"`.
|
||||||
|
|
||||||
The above steps can be done on a fork and committed via a pull request.
|
The above steps can be done on a fork and committed via a pull request.
|
||||||
|
|
||||||
@@ -33,6 +33,10 @@ The above steps can be done on a fork and committed via a pull request.
|
|||||||
|
|
||||||
You will need to be a member of the SVGEdit GitHub group to do this step.
|
You will need to be a member of the SVGEdit GitHub group to do this step.
|
||||||
|
|
||||||
|
## Publish to npm
|
||||||
|
|
||||||
|
1. `npm publish`
|
||||||
|
|
||||||
## Update the project docs
|
## Update the project docs
|
||||||
|
|
||||||
Update `README.md` with references and links to the shiny new release.
|
Update `README.md` with references and links to the shiny new release.
|
||||||
|
|||||||
@@ -1,21 +1,30 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="utf-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="chrome=1"/>
|
<meta http-equiv="X-UA-Compatible" content="chrome=1"/>
|
||||||
<link rel="icon" type="image/png" href="images/logo.png"/>
|
<link rel="icon" type="image/png" href="images/logo.png"/>
|
||||||
<link rel="stylesheet" href="svg-editor.css" type="text/css"/>
|
<link rel="stylesheet" href="svg-editor.css"/>
|
||||||
<script src="jquery.js"></script>
|
<script src="jquery.js"></script>
|
||||||
<title>Browser does not support SVG | SVG-edit</title>
|
<title>Browser does not support SVG | SVG-edit</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div id="browser-not-supported">
|
<div id="browser-not-supported">
|
||||||
<img style="float:left;padding:10px;" src="images/logo.png" width="48" height="48" alt="SVG-edit logo" /><br />
|
<img style="float:left;padding:10px;" src="images/logo.png"
|
||||||
<p>Sorry, but your browser does not support SVG. Below is a list of alternate browsers and versions that support SVG and SVG-edit (from <a href="http://caniuse.com/#cats=SVG">caniuse.com</a>).</p>
|
width="48" height="48" alt="SVG-edit logo" /><br />
|
||||||
<p>Try the latest version of <a href="http://www.getfirefox.com">Firefox</a>, <a href="http://www.google.com/chrome/">Google Chrome</a>, <a href="http://www.apple.com/safari/download/">Safari</a>, <a href="http://www.opera.com/download/">Opera</a> or <a href="http://windows.microsoft.com/ie9">Internet Explorer</a>.</p>
|
<p>Sorry, but your browser does not support SVG. Below is a list of
|
||||||
<p>If you are unable to install one of these and must use an old version of Internet Explorer, you can install the <a href="http://code.google.com/chrome/chromeframe/">Google Chrome Frame plugin</a>.</p>
|
alternate browsers and versions that support SVG and SVG-edit
|
||||||
|
(from <a href="http://caniuse.com/#cats=SVG">caniuse.com</a>).</p>
|
||||||
|
<p>Try the latest version of
|
||||||
|
<a href="http://www.getfirefox.com">Firefox</a>,
|
||||||
|
<a href="http://www.google.com/chrome/">Google Chrome</a>,
|
||||||
|
<a href="http://www.apple.com/safari/download/">Safari</a>,
|
||||||
|
<a href="http://www.opera.com/download/">Opera</a> or
|
||||||
|
<a href="http://windows.microsoft.com/ie9">Internet Explorer</a>.</p>
|
||||||
|
<p>If you are unable to install one of these and must use an old version of
|
||||||
|
Internet Explorer, you can install the
|
||||||
|
<a href="http://code.google.com/chrome/chromeframe/">Google Chrome Frame plugin</a>.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>Embed API</title>
|
<title>Embed API</title>
|
||||||
|
|||||||
@@ -7,11 +7,11 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes"/>
|
<meta name="apple-mobile-web-app-capable" content="yes"/>
|
||||||
<link rel="icon" type="image/png" href="images/logo.png"/>
|
<link rel="icon" type="image/png" href="images/logo.png"/>
|
||||||
<link rel="stylesheet" href="jgraduate/css/jPicker.css" type="text/css"/>
|
<link rel="stylesheet" href="jgraduate/css/jPicker.css"/>
|
||||||
<link rel="stylesheet" href="jgraduate/css/jgraduate.css" type="text/css"/>
|
<link rel="stylesheet" href="jgraduate/css/jgraduate.css"/>
|
||||||
<link rel="stylesheet" href="svg-editor.css" type="text/css"/>
|
<link rel="stylesheet" href="svg-editor.css"/>
|
||||||
<link rel="stylesheet" href="spinbtn/JQuerySpinBtn.css" type="text/css"/>
|
<link rel="stylesheet" href="spinbtn/JQuerySpinBtn.css"/>
|
||||||
<link rel="stylesheet" href="custom.css" type="text/css"/>
|
<link rel="stylesheet" href="custom.css"/>
|
||||||
<!--{if jquery_release}>
|
<!--{if jquery_release}>
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
|
||||||
<!{else}-->
|
<!{else}-->
|
||||||
@@ -85,7 +85,7 @@ by creating the following file and adding by calls to svgEditor.setConfig -->
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="workarea">
|
<div id="workarea">
|
||||||
<style id="styleoverrides" type="text/css" media="screen" scoped="scoped"></style>
|
<style id="styleoverrides" media="screen" scoped="scoped"></style>
|
||||||
<div id="svgcanvas" style="position:relative">
|
<div id="svgcanvas" style="position:relative">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>SVG Edit</title>
|
<title>SVG Edit</title>
|
||||||
<link rel="stylesheet" type="text/css" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
<script>
|
<script>
|
||||||
/** this method adds the script that overrides the default open/save handlers */
|
/** this method adds the script that overrides the default open/save handlers */
|
||||||
function addHandlers()
|
function addHandlers()
|
||||||
|
|||||||
5
package-lock.json
generated
Normal file
5
package-lock.json
generated
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"name": "svgedit",
|
||||||
|
"version": "2.8.1",
|
||||||
|
"lockfileVersion": 1
|
||||||
|
}
|
||||||
39
package.json
Normal file
39
package.json
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"name": "svgedit",
|
||||||
|
"version": "3.0.0-alpha.1",
|
||||||
|
"description": "Powerful SVG-Editor for your browser ",
|
||||||
|
"main": "editor/svg-editor.js",
|
||||||
|
"directories": {
|
||||||
|
"doc": "docs",
|
||||||
|
"example": "examples",
|
||||||
|
"test": "test"
|
||||||
|
},
|
||||||
|
"engines": {},
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/SVG-Edit/svgedit.git"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"svg-editor",
|
||||||
|
"javascript",
|
||||||
|
"svg-edit",
|
||||||
|
"svg"
|
||||||
|
],
|
||||||
|
"author": "Narendra Sisodiya",
|
||||||
|
"contributors": [
|
||||||
|
"Pavol Rusnak",
|
||||||
|
"Jeff Schiller",
|
||||||
|
"Vidar Hokstad",
|
||||||
|
"Alexis Deveria",
|
||||||
|
"Brett Zamir"
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/SVG-Edit/svgedit/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://github.com/SVG-Edit/svgedit#readme",
|
||||||
|
"dependencies": {}
|
||||||
|
}
|
||||||
@@ -32,9 +32,8 @@
|
|||||||
|
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>SVG-edit, Pavol Rusnák, SVG Open 2010, Paris</title>
|
<title>SVG-edit, Pavol Rusnák, SVG Open 2010, Paris</title>
|
||||||
<link href="http://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans+Mono" rel="stylesheet" type="text/css" />
|
<link href="http://fonts.googleapis.com/css?family=Droid+Sans|Droid+Sans+Mono" rel="stylesheet" />
|
||||||
<link type="text/css" rel="stylesheet" href="style.css" />
|
<link rel="stylesheet" href="style.css" />
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="presentation">
|
<div class="presentation">
|
||||||
|
|||||||
@@ -7,20 +7,20 @@
|
|||||||
<body>
|
<body>
|
||||||
<h1>All SVG-edit Tests</h1>
|
<h1>All SVG-edit Tests</h1>
|
||||||
<p>This file frames all SVG-edit test pages. This should only include tests known to work. These tests are known to pass 100% in the following: Firefox 3.6, Chrome 7, IE9 Preview 6 (1.9.8006.6000), Opera 10.63. If a test is broken in this page, it is possible that <em>YOU</em> broke it. Please do not submit code that breaks any of these tests.</p>
|
<p>This file frames all SVG-edit test pages. This should only include tests known to work. These tests are known to pass 100% in the following: Firefox 3.6, Chrome 7, IE9 Preview 6 (1.9.8006.6000), Opera 10.63. If a test is broken in this page, it is possible that <em>YOU</em> broke it. Please do not submit code that breaks any of these tests.</p>
|
||||||
<iframe src='jquery-svg_test.html' width='100%' height='70' scrolling='no'></iframe>
|
<iframe src="jquery-svg_test.html" width="100%" height="70" scrolling="no"></iframe>
|
||||||
<iframe src='svgtransformlist_test.html' width='100%' height='70' scrolling='no'></iframe>
|
<iframe src="svgtransformlist_test.html" width="100%" height="70" scrolling="no"></iframe>
|
||||||
<iframe src='contextmenu_test.html' width='100%' height='70' scrolling='no'></iframe>
|
<iframe src="contextmenu_test.html" width="100%" height="70" scrolling="no"></iframe>
|
||||||
<iframe src='math_test.html' width='100%' height='70' scrolling='no'></iframe>
|
<iframe src="math_test.html" width="100%" height="70" scrolling="no"></iframe>
|
||||||
<iframe src='svgutils_test.html' width='100%' height='70' scrolling='no'></iframe>
|
<iframe src="svgutils_test.html" width="100%" height="70" scrolling="no"></iframe>
|
||||||
<iframe src='svgutils_bbox_test.html' width='100%' height='70' scrolling='no'></iframe>
|
<iframe src="svgutils_bbox_test.html" width="100%" height="70" scrolling="no"></iframe>
|
||||||
<iframe src='history_test.html' width='100%' height='70' scrolling='no'></iframe>
|
<iframe src="history_test.html" width="100%" height="70" scrolling="no"></iframe>
|
||||||
<iframe src='select_test.html' width='100%' height='70' scrolling='no'></iframe>
|
<iframe src="select_test.html" width="100%" height="70" scrolling="no"></iframe>
|
||||||
<iframe src='draw_test.html' width='100%' height='70' scrolling='no'></iframe>
|
<iframe src="draw_test.html" width="100%" height="70" scrolling="no"></iframe>
|
||||||
<iframe src='units_test.html' width='100%' height='70' scrolling='no'></iframe>
|
<iframe src="units_test.html" width="100%" height="70" scrolling="no"></iframe>
|
||||||
<iframe src='path_test.html' width='100%' height='70' scrolling='no'></iframe>
|
<iframe src="path_test.html" width="100%" height="70" scrolling="no"></iframe>
|
||||||
<iframe src='sanitize_test.html' width='100%' height='70' scrolling='no'></iframe>
|
<iframe src="sanitize_test.html" width="100%" height="70" scrolling="no"></iframe>
|
||||||
<iframe src='coords_test.html' width='100%' height='70' scrolling='no'></iframe>
|
<iframe src="coords_test.html" width="100%" height="70" scrolling="no"></iframe>
|
||||||
<iframe src='recalculate_test.html' width='100%' height='70' scrolling='no'></iframe>
|
<iframe src="recalculate_test.html" width="100%" height="70" scrolling="no"></iframe>
|
||||||
</body>
|
</body>
|
||||||
<script>
|
<script>
|
||||||
window.setTimeout(function() {
|
window.setTimeout(function() {
|
||||||
|
|||||||
@@ -3,14 +3,14 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>Unit Tests for contextmenu.js</title>
|
<title>Unit Tests for contextmenu.js</title>
|
||||||
<link rel='stylesheet' href='qunit/qunit.css' type='text/css'/>
|
<link rel="stylesheet" href="qunit/qunit.css"/>
|
||||||
<script src='../editor/jquery.js'></script>
|
<script src="../editor/jquery.js"></script>
|
||||||
<script>
|
<script>
|
||||||
// Mock for browser.js
|
// Mock for browser.js
|
||||||
window.svgEditor = {ready: function(){}};
|
window.svgEditor = {ready: function(){}};
|
||||||
</script>
|
</script>
|
||||||
<script src='../editor/contextmenu.js'></script>
|
<script src="../editor/contextmenu.js"></script>
|
||||||
<script src='qunit/qunit.js'></script>
|
<script src="qunit/qunit.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
// log function
|
// log function
|
||||||
@@ -74,10 +74,10 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id='qunit-header'>Unit Tests for contextmenu.js</h1>
|
<h1 id="qunit-header">Unit Tests for contextmenu.js</h1>
|
||||||
<h2 id='qunit-banner'></h2>
|
<h2 id="qunit-banner"></h2>
|
||||||
<h2 id='qunit-userAgent'></h2>
|
<h2 id="qunit-userAgent"></h2>
|
||||||
<ol id='qunit-tests'></ol>
|
<ol id="qunit-tests"></ol>
|
||||||
<div id='svgroot' style='visibility:hidden'></div>
|
<div id="svgroot" style="visibility:hidden"></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -3,18 +3,18 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>Unit Tests for coords.js</title>
|
<title>Unit Tests for coords.js</title>
|
||||||
<link rel='stylesheet' href='qunit/qunit.css' type='text/css'/>
|
<link rel="stylesheet" href="qunit/qunit.css"/>
|
||||||
<script src='../editor/jquery.js'></script>
|
<script src="../editor/jquery.js"></script>
|
||||||
<script src='../editor/svgedit.js'></script>
|
<script src="../editor/svgedit.js"></script>
|
||||||
<script src='../editor/math.js'></script>
|
<script src="../editor/math.js"></script>
|
||||||
<script src='../editor/pathseg.js'></script>
|
<script src="../editor/pathseg.js"></script>
|
||||||
<script src='../editor/browser.js'></script>
|
<script src="../editor/browser.js"></script>
|
||||||
<script src='../editor/svgutils.js'></script>
|
<script src="../editor/svgutils.js"></script>
|
||||||
<script src='../editor/units.js'></script>
|
<script src="../editor/units.js"></script>
|
||||||
<script src='../editor/svgtransformlist.js'></script>
|
<script src="../editor/svgtransformlist.js"></script>
|
||||||
<script src='../editor/coords.js'></script>
|
<script src="../editor/coords.js"></script>
|
||||||
|
|
||||||
<script src='qunit/qunit.js'></script>
|
<script src="qunit/qunit.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
// log function
|
// log function
|
||||||
@@ -352,10 +352,10 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id='qunit-header'>Unit Tests for svgedit.coords</h1>
|
<h1 id="qunit-header">Unit Tests for svgedit.coords</h1>
|
||||||
<h2 id='qunit-banner'></h2>
|
<h2 id="qunit-banner"></h2>
|
||||||
<h2 id='qunit-userAgent'></h2>
|
<h2 id="qunit-userAgent"></h2>
|
||||||
<ol id='qunit-tests'></ol>
|
<ol id="qunit-tests"></ol>
|
||||||
<div id='root' style='visibility:hidden'></div>
|
<div id="root" style="visibility:hidden"></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -3,16 +3,16 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>Unit Tests for draw.js</title>
|
<title>Unit Tests for draw.js</title>
|
||||||
<link rel='stylesheet' href='qunit/qunit.css' type='text/css'/>
|
<link rel="stylesheet" href="qunit/qunit.css"/>
|
||||||
<script src='../editor/jquery.js'></script>
|
<script src="../editor/jquery.js"></script>
|
||||||
<script src='../editor/svgedit.js'></script>
|
<script src="../editor/svgedit.js"></script>
|
||||||
<script src='../editor/pathseg.js'></script>
|
<script src="../editor/pathseg.js"></script>
|
||||||
<script src='../editor/browser.js'></script>
|
<script src="../editor/browser.js"></script>
|
||||||
<script src='../editor/units.js'></script>
|
<script src="../editor/units.js"></script>
|
||||||
<script src='../editor/svgutils.js'></script>
|
<script src="../editor/svgutils.js"></script>
|
||||||
<script src='../editor/draw.js'></script>
|
<script src="../editor/draw.js"></script>
|
||||||
<script src='../editor/layer.js'></script>
|
<script src="../editor/layer.js"></script>
|
||||||
<script src='qunit/qunit.js'></script>
|
<script src="qunit/qunit.js"></script>
|
||||||
<script src="sinon/sinon-1.17.3.js"></script>
|
<script src="sinon/sinon-1.17.3.js"></script>
|
||||||
<script src="sinon/sinon-qunit-1.0.0.js"></script>
|
<script src="sinon/sinon-qunit-1.0.0.js"></script>
|
||||||
<script>
|
<script>
|
||||||
@@ -813,10 +813,10 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id='qunit-header'>Unit Tests for draw.js</h1>
|
<h1 id="qunit-header">Unit Tests for draw.js</h1>
|
||||||
<h2 id='qunit-banner'></h2>
|
<h2 id="qunit-banner"></h2>
|
||||||
<h2 id='qunit-userAgent'></h2>
|
<h2 id="qunit-userAgent"></h2>
|
||||||
<ol id='qunit-tests'></ol>
|
<ol id="qunit-tests"></ol>
|
||||||
<div id='sandbox' style='visibility:hidden'></div>
|
<div id="sandbox" style="visibility:hidden"></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>Unit Tests for history.js</title>
|
<title>Unit Tests for history.js</title>
|
||||||
<link rel='stylesheet' href='qunit/qunit.css' type='text/css'/>
|
<link rel="stylesheet" href="qunit/qunit.css"/>
|
||||||
<script src='../editor/jquery.js'></script>
|
<script src="../editor/jquery.js"></script>
|
||||||
<script src='../editor/svgedit.js'></script>
|
<script src="../editor/svgedit.js"></script>
|
||||||
<script src='../editor/history.js'></script>
|
<script src="../editor/history.js"></script>
|
||||||
<script src='qunit/qunit.js'></script>
|
<script src="qunit/qunit.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
// TODO(codedread): Write tests for handling history events.
|
// TODO(codedread): Write tests for handling history events.
|
||||||
@@ -575,17 +575,17 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id='qunit-header'>Unit Tests for history.js</h1>
|
<h1 id="qunit-header">Unit Tests for history.js</h1>
|
||||||
<h2 id='qunit-banner'></h2>
|
<h2 id="qunit-banner"></h2>
|
||||||
<h2 id='qunit-userAgent'></h2>
|
<h2 id="qunit-userAgent"></h2>
|
||||||
<ol id='qunit-tests'></ol>
|
<ol id="qunit-tests"></ol>
|
||||||
<div id='divparent' style='visibility:hidden'>
|
<div id="divparent" style="visibility:hidden">
|
||||||
<div id='div1'></div>
|
<div id="div1"></div>
|
||||||
<div id='div2'></div>
|
<div id="div2"></div>
|
||||||
<div id='div3'></div>
|
<div id="div3"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id='div4' style='visibility:hidden'>
|
<div id="div4" style="visibility:hidden">
|
||||||
<div id='div5'></div>
|
<div id="div5"></div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>Unit Tests for jquery-svg.js</title>
|
<title>Unit Tests for jquery-svg.js</title>
|
||||||
<link rel='stylesheet' href='qunit/qunit.css' type='text/css'/>
|
<link rel="stylesheet" href="qunit/qunit.css"/>
|
||||||
<script src='../editor/jquery.js'></script>
|
<script src="../editor/jquery.js"></script>
|
||||||
<script src='qunit/qunit.js'></script>
|
<script src="qunit/qunit.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
// log function
|
// log function
|
||||||
@@ -19,10 +19,10 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id='qunit-header'>Unit Tests for jquery-svg</h1>
|
<h1 id="qunit-header">Unit Tests for jquery-svg</h1>
|
||||||
<h2 id='qunit-banner'></h2>
|
<h2 id="qunit-banner"></h2>
|
||||||
<h2 id='qunit-userAgent'></h2>
|
<h2 id="qunit-userAgent"></h2>
|
||||||
<ol id='qunit-tests'></ol>
|
<ol id="qunit-tests"></ol>
|
||||||
<div id='root' style=''></div>
|
<div id="root" style=""></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>Unit Tests for math.js</title>
|
<title>Unit Tests for math.js</title>
|
||||||
<link rel='stylesheet' href='qunit/qunit.css' type='text/css'/>
|
<link rel="stylesheet" href="qunit/qunit.css"/>
|
||||||
<script src='../editor/jquery.js'></script>
|
<script src="../editor/jquery.js"></script>
|
||||||
<script src='../editor/svgedit.js'></script>
|
<script src="../editor/svgedit.js"></script>
|
||||||
<script src='../editor/math.js'></script>
|
<script src="../editor/math.js"></script>
|
||||||
<script src='qunit/qunit.js'></script>
|
<script src="qunit/qunit.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
// log function
|
// log function
|
||||||
@@ -131,9 +131,9 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id='qunit-header'>Unit Tests for math.js</h1>
|
<h1 id="qunit-header">Unit Tests for math.js</h1>
|
||||||
<h2 id='qunit-banner'></h2>
|
<h2 id="qunit-banner"></h2>
|
||||||
<h2 id='qunit-userAgent'></h2>
|
<h2 id="qunit-userAgent"></h2>
|
||||||
<ol id='qunit-tests'></ol>
|
<ol id="qunit-tests"></ol>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -3,14 +3,14 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>Unit Tests for path.js</title>
|
<title>Unit Tests for path.js</title>
|
||||||
<link rel='stylesheet' href='qunit/qunit.css' type='text/css'/>
|
<link rel="stylesheet" href="qunit/qunit.css"/>
|
||||||
<script src='../editor/jquery.js'></script>
|
<script src="../editor/jquery.js"></script>
|
||||||
<script src='../editor/svgedit.js'></script>
|
<script src="../editor/svgedit.js"></script>
|
||||||
<script src='../editor/pathseg.js'></script>
|
<script src="../editor/pathseg.js"></script>
|
||||||
<script src='../editor/browser.js'></script>
|
<script src="../editor/browser.js"></script>
|
||||||
<script src='../editor/svgutils.js'></script>
|
<script src="../editor/svgutils.js"></script>
|
||||||
<script src='../editor/path.js'></script>
|
<script src="../editor/path.js"></script>
|
||||||
<script src='qunit/qunit.js'></script>
|
<script src="qunit/qunit.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
// log function
|
// log function
|
||||||
@@ -152,10 +152,10 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id='qunit-header'>Unit Tests for path.js</h1>
|
<h1 id="qunit-header">Unit Tests for path.js</h1>
|
||||||
<h2 id='qunit-banner'></h2>
|
<h2 id="qunit-banner"></h2>
|
||||||
<h2 id='qunit-userAgent'></h2>
|
<h2 id="qunit-userAgent"></h2>
|
||||||
<ol id='qunit-tests'></ol>
|
<ol id="qunit-tests"></ol>
|
||||||
<div id='anchor' style='visibility:hidden'></div>
|
<div id="anchor" style="visibility:hidden"></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -3,20 +3,20 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>Unit Tests for recalculate.js</title>
|
<title>Unit Tests for recalculate.js</title>
|
||||||
<link rel='stylesheet' href='qunit/qunit.css' type='text/css'/>
|
<link rel="stylesheet" href="qunit/qunit.css"/>
|
||||||
<script src='../editor/jquery.js'></script>
|
<script src="../editor/jquery.js"></script>
|
||||||
<script src='../editor/jquery-svg.js'></script>
|
<script src="../editor/jquery-svg.js"></script>
|
||||||
<script src='../editor/svgedit.js'></script>
|
<script src="../editor/svgedit.js"></script>
|
||||||
<script src='../editor/pathseg.js'></script>
|
<script src="../editor/pathseg.js"></script>
|
||||||
<script src='../editor/browser.js'></script>
|
<script src="../editor/browser.js"></script>
|
||||||
<script src='../editor/math.js'></script>
|
<script src="../editor/math.js"></script>
|
||||||
<script src='../editor/history.js'></script>
|
<script src="../editor/history.js"></script>
|
||||||
<script src='../editor/units.js'></script>
|
<script src="../editor/units.js"></script>
|
||||||
<script src='../editor/svgtransformlist.js'></script>
|
<script src="../editor/svgtransformlist.js"></script>
|
||||||
<script src='../editor/svgutils.js'></script>
|
<script src="../editor/svgutils.js"></script>
|
||||||
<script src='../editor/coords.js'></script>
|
<script src="../editor/coords.js"></script>
|
||||||
<script src='../editor/recalculate.js'></script>
|
<script src="../editor/recalculate.js"></script>
|
||||||
<script src='qunit/qunit.js'></script>
|
<script src="qunit/qunit.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
// log function
|
// log function
|
||||||
@@ -149,10 +149,10 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id='qunit-header'>Unit Tests for svgedit.recalculate</h1>
|
<h1 id="qunit-header">Unit Tests for svgedit.recalculate</h1>
|
||||||
<h2 id='qunit-banner'></h2>
|
<h2 id="qunit-banner"></h2>
|
||||||
<h2 id='qunit-userAgent'></h2>
|
<h2 id="qunit-userAgent"></h2>
|
||||||
<ol id='qunit-tests'></ol>
|
<ol id="qunit-tests"></ol>
|
||||||
<div id='root' style='visibility:hidden'></div>
|
<div id="root" style="visibility:hidden"></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -3,14 +3,14 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>Unit Tests for sanitize.js</title>
|
<title>Unit Tests for sanitize.js</title>
|
||||||
<link rel='stylesheet' href='qunit/qunit.css' type='text/css'/>
|
<link rel="stylesheet" href="qunit/qunit.css"/>
|
||||||
<script src='../editor/jquery.js'></script>
|
<script src="../editor/jquery.js"></script>
|
||||||
<script src='../editor/svgedit.js'></script>
|
<script src="../editor/svgedit.js"></script>
|
||||||
<script src='../editor/pathseg.js'></script>
|
<script src="../editor/pathseg.js"></script>
|
||||||
<script src='../editor/browser.js'></script>
|
<script src="../editor/browser.js"></script>
|
||||||
<script src='../editor/svgutils.js'></script>
|
<script src="../editor/svgutils.js"></script>
|
||||||
<script src='../editor/sanitize.js'></script>
|
<script src="../editor/sanitize.js"></script>
|
||||||
<script src='qunit/qunit.js'></script>
|
<script src="qunit/qunit.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
// log function
|
// log function
|
||||||
@@ -39,10 +39,10 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id='qunit-header'>Unit Tests for sanitize.js</h1>
|
<h1 id="qunit-header">Unit Tests for sanitize.js</h1>
|
||||||
<h2 id='qunit-banner'></h2>
|
<h2 id="qunit-banner"></h2>
|
||||||
<h2 id='qunit-userAgent'></h2>
|
<h2 id="qunit-userAgent"></h2>
|
||||||
<ol id='qunit-tests'></ol>
|
<ol id="qunit-tests"></ol>
|
||||||
<div id='anchor' style='visibility:hidden'></div>
|
<div id="anchor" style="visibility:hidden"></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -3,15 +3,15 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>Unit Tests for select.js</title>
|
<title>Unit Tests for select.js</title>
|
||||||
<link rel='stylesheet' href='qunit/qunit.css' type='text/css'/>
|
<link rel="stylesheet" href="qunit/qunit.css"/>
|
||||||
<script src='../editor/jquery.js'></script>
|
<script src="../editor/jquery.js"></script>
|
||||||
<script src='../editor/svgedit.js'></script>
|
<script src="../editor/svgedit.js"></script>
|
||||||
<script src='../editor/pathseg.js'></script>
|
<script src="../editor/pathseg.js"></script>
|
||||||
<script src='../editor/browser.js'></script>
|
<script src="../editor/browser.js"></script>
|
||||||
<script src='../editor/math.js'></script>
|
<script src="../editor/math.js"></script>
|
||||||
<script src='../editor/svgutils.js'></script>
|
<script src="../editor/svgutils.js"></script>
|
||||||
<script src='../editor/select.js'></script>
|
<script src="../editor/select.js"></script>
|
||||||
<script src='qunit/qunit.js'></script>
|
<script src="qunit/qunit.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
// log function
|
// log function
|
||||||
@@ -145,10 +145,10 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id='qunit-header'>Unit Tests for select.js</h1>
|
<h1 id="qunit-header">Unit Tests for select.js</h1>
|
||||||
<h2 id='qunit-banner'></h2>
|
<h2 id="qunit-banner"></h2>
|
||||||
<h2 id='qunit-userAgent'></h2>
|
<h2 id="qunit-userAgent"></h2>
|
||||||
<ol id='qunit-tests'></ol>
|
<ol id="qunit-tests"></ol>
|
||||||
<div id='sandbox'></div>
|
<div id="sandbox"></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -3,16 +3,16 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>Unit Tests for svgtransformlist.js</title>
|
<title>Unit Tests for svgtransformlist.js</title>
|
||||||
<link rel='stylesheet' href='qunit/qunit.css' type='text/css'/>
|
<link rel="stylesheet" href="qunit/qunit.css"/>
|
||||||
<script src='../editor/jquery.js'></script>
|
<script src="../editor/jquery.js"></script>
|
||||||
<script src='../editor/svgedit.js'></script>
|
<script src="../editor/svgedit.js"></script>
|
||||||
<script>
|
<script>
|
||||||
// Mock for browser.js
|
// Mock for browser.js
|
||||||
svgedit.browser = {};
|
svgedit.browser = {};
|
||||||
svgedit.browser.supportsNativeTransformLists = function() { return false;}
|
svgedit.browser.supportsNativeTransformLists = function() { return false;}
|
||||||
</script>
|
</script>
|
||||||
<script src='../editor/svgtransformlist.js'></script>
|
<script src="../editor/svgtransformlist.js"></script>
|
||||||
<script src='qunit/qunit.js'></script>
|
<script src="qunit/qunit.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
// log function
|
// log function
|
||||||
@@ -407,10 +407,10 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id='qunit-header'>Unit Tests for svgtransformlist.js</h1>
|
<h1 id="qunit-header">Unit Tests for svgtransformlist.js</h1>
|
||||||
<h2 id='qunit-banner'></h2>
|
<h2 id="qunit-banner"></h2>
|
||||||
<h2 id='qunit-userAgent'></h2>
|
<h2 id="qunit-userAgent"></h2>
|
||||||
<ol id='qunit-tests'></ol>
|
<ol id="qunit-tests"></ol>
|
||||||
<div id='svgroot' style='visibility:hidden'></div>
|
<div id="svgroot" style="visibility:hidden"></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -3,19 +3,19 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>Unit Tests for svgutils.js BBox functions</title>
|
<title>Unit Tests for svgutils.js BBox functions</title>
|
||||||
<link rel='stylesheet' href='qunit/qunit.css' type='text/css'/>
|
<link rel="stylesheet" href="qunit/qunit.css"/>
|
||||||
<script src='../editor/jquery.js'></script>
|
<script src="../editor/jquery.js"></script>
|
||||||
<script src='../editor/svgedit.js'></script>
|
<script src="../editor/svgedit.js"></script>
|
||||||
<!-- svgutils.js depends on these three... mock out? -->
|
<!-- svgutils.js depends on these three... mock out? -->
|
||||||
<script src='../editor/pathseg.js'></script>
|
<script src="../editor/pathseg.js"></script>
|
||||||
<script src='../editor/browser.js'></script>
|
<script src="../editor/browser.js"></script>
|
||||||
<script src='../editor/math.js'></script>
|
<script src="../editor/math.js"></script>
|
||||||
<script src='../editor/svgtransformlist.js'></script>
|
<script src="../editor/svgtransformlist.js"></script>
|
||||||
<script src='../editor/jquery-svg.js'></script> <!-- has $.attr() that takes an array . Used by svgedit.utilities.getPathDFromElement -->
|
<script src="../editor/jquery-svg.js"></script> <!-- has $.attr() that takes an array . Used by svgedit.utilities.getPathDFromElement -->
|
||||||
<script src='../editor/path.js'></script>
|
<script src="../editor/path.js"></script>
|
||||||
<script src='../editor/svgutils.js'></script>
|
<script src="../editor/svgutils.js"></script>
|
||||||
<script src='qunit/qunit.js'></script>
|
<script src="qunit/qunit.js"></script>
|
||||||
<script src='qunit/qunit-assert-close.js'></script>
|
<script src="qunit/qunit-assert-close.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
// log function
|
// log function
|
||||||
@@ -516,10 +516,10 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id='qunit-header'>Unit Tests for svgutils.js BBox functions</h1>
|
<h1 id="qunit-header">Unit Tests for svgutils.js BBox functions</h1>
|
||||||
<h2 id='qunit-banner'></h2>
|
<h2 id="qunit-banner"></h2>
|
||||||
<h2 id='qunit-userAgent'></h2>
|
<h2 id="qunit-userAgent"></h2>
|
||||||
<ol id='qunit-tests'></ol>
|
<ol id="qunit-tests"></ol>
|
||||||
<div id='sandbox'></div>
|
<div id="sandbox"></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -6,18 +6,18 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
|
||||||
<title>Performance Unit Tests for svgutils.js</title>
|
<title>Performance Unit Tests for svgutils.js</title>
|
||||||
|
|
||||||
<link rel='stylesheet' href='qunit/qunit.css' type='text/css'/>
|
<link rel="stylesheet" href="qunit/qunit.css"/>
|
||||||
<script src='../editor/jquery.js'></script>
|
<script src="../editor/jquery.js"></script>
|
||||||
<script src='../editor/svgedit.js'></script>
|
<script src="../editor/svgedit.js"></script>
|
||||||
<!-- svgutils.js depends on these three... mock out? -->
|
<!-- svgutils.js depends on these three... mock out? -->
|
||||||
<script src='../editor/pathseg.js'></script>
|
<script src="../editor/pathseg.js"></script>
|
||||||
<script src='../editor/browser.js'></script>
|
<script src="../editor/browser.js"></script>
|
||||||
<script src='../editor/svgtransformlist.js'></script>
|
<script src="../editor/svgtransformlist.js"></script>
|
||||||
<script src='../editor/math.js'></script>
|
<script src="../editor/math.js"></script>
|
||||||
<script src='../editor/jquery-svg.js'></script> <!-- has $.attr() that takes an array . Used jby svgedit.utilities.getPathDFromElement -->
|
<script src="../editor/jquery-svg.js"></script> <!-- has $.attr() that takes an array . Used jby svgedit.utilities.getPathDFromElement -->
|
||||||
<script src='../editor/units.js'></script>
|
<script src="../editor/units.js"></script>
|
||||||
<script src='../editor/svgutils.js'></script>
|
<script src="../editor/svgutils.js"></script>
|
||||||
<script src='qunit/qunit.js'></script>
|
<script src="qunit/qunit.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
// log function
|
// log function
|
||||||
@@ -193,10 +193,10 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id='qunit-header'>Performance Unit Tests for svgutils.js</h1>
|
<h1 id="qunit-header">Performance Unit Tests for svgutils.js</h1>
|
||||||
<h2 id='qunit-banner'></h2>
|
<h2 id="qunit-banner"></h2>
|
||||||
<h2 id='qunit-userAgent'></h2>
|
<h2 id="qunit-userAgent"></h2>
|
||||||
<ol id='qunit-tests'></ol>
|
<ol id="qunit-tests"></ol>
|
||||||
|
|
||||||
<div id="svg_editor">
|
<div id="svg_editor">
|
||||||
<div id="workarea" style="cursor: auto; overflow: scroll; line-height: 12px; right: 100px;">
|
<div id="workarea" style="cursor: auto; overflow: scroll; line-height: 12px; right: 100px;">
|
||||||
@@ -208,7 +208,7 @@
|
|||||||
</svg>
|
</svg>
|
||||||
|
|
||||||
|
|
||||||
<style id="styleoverrides" type="text/css" media="screen" scoped="scoped">#svgcanvas svg *{cursor:move;pointer-events:all}, #svgcanvas svg{cursor:default}</style>
|
<style id="styleoverrides" media="screen" scoped="scoped">#svgcanvas svg *{cursor:move;pointer-events:all}, #svgcanvas svg{cursor:default}</style>
|
||||||
<div id="svgcanvas" style="position: relative; width: 1000px; height: 1000px;">
|
<div id="svgcanvas" style="position: relative; width: 1000px; height: 1000px;">
|
||||||
<svg id="svgroot" xmlns="http://www.w3.org/2000/svg" xlinkns="http://www.w3.org/1999/xlink" width="1000" height="1000" x="640" y="480" overflow="visible">
|
<svg id="svgroot" xmlns="http://www.w3.org/2000/svg" xlinkns="http://www.w3.org/1999/xlink" width="1000" height="1000" x="640" y="480" overflow="visible">
|
||||||
<defs><filter id="canvashadow" filterUnits="objectBoundingBox"><feGaussianBlur in="SourceAlpha" stdDeviation="4" result="blur"></feGaussianBlur><feOffset in="blur" dx="5" dy="5" result="offsetBlur"></feOffset><feMerge><feMergeNode in="offsetBlur"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><pattern id="gridpattern" patternUnits="userSpaceOnUse" x="0" y="0" width="100" height="100"><image x="0" y="0" width="100" height="100"></image></pattern></defs>
|
<defs><filter id="canvashadow" filterUnits="objectBoundingBox"><feGaussianBlur in="SourceAlpha" stdDeviation="4" result="blur"></feGaussianBlur><feOffset in="blur" dx="5" dy="5" result="offsetBlur"></feOffset><feMerge><feMergeNode in="offsetBlur"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><pattern id="gridpattern" patternUnits="userSpaceOnUse" x="0" y="0" width="100" height="100"><image x="0" y="0" width="100" height="100"></image></pattern></defs>
|
||||||
|
|||||||
@@ -3,16 +3,16 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>Unit Tests for svgutils.js</title>
|
<title>Unit Tests for svgutils.js</title>
|
||||||
<link rel='stylesheet' href='qunit/qunit.css' type='text/css'/>
|
<link rel="stylesheet" href="qunit/qunit.css"/>
|
||||||
<script src='../editor/jquery.js'></script>
|
<script src="../editor/jquery.js"></script>
|
||||||
<script src='../editor/svgedit.js'></script>
|
<script src="../editor/svgedit.js"></script>
|
||||||
<!-- svgutils.js depends on these three... mock out? -->
|
<!-- svgutils.js depends on these three... mock out? -->
|
||||||
<script src='../editor/pathseg.js'></script>
|
<script src="../editor/pathseg.js"></script>
|
||||||
<script src='../editor/browser.js'></script>
|
<script src="../editor/browser.js"></script>
|
||||||
<script src='../editor/svgtransformlist.js'></script>
|
<script src="../editor/svgtransformlist.js"></script>
|
||||||
<script src='../editor/jquery-svg.js'></script> <!-- has $.attr() that takes an array . Used by svgedit.utilities.getPathDFromElement -->
|
<script src="../editor/jquery-svg.js"></script> <!-- has $.attr() that takes an array . Used by svgedit.utilities.getPathDFromElement -->
|
||||||
<script src='../editor/svgutils.js'></script>
|
<script src="../editor/svgutils.js"></script>
|
||||||
<script src='qunit/qunit.js'></script>
|
<script src="qunit/qunit.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
// log function
|
// log function
|
||||||
@@ -358,10 +358,10 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id='qunit-header'>Unit Tests for svgutils.js</h1>
|
<h1 id="qunit-header">Unit Tests for svgutils.js</h1>
|
||||||
<h2 id='qunit-banner'></h2>
|
<h2 id="qunit-banner"></h2>
|
||||||
<h2 id='qunit-userAgent'></h2>
|
<h2 id="qunit-userAgent"></h2>
|
||||||
<ol id='qunit-tests'></ol>
|
<ol id="qunit-tests"></ol>
|
||||||
<div id='sandbox'></div>
|
<div id="sandbox"></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>Unit Tests for SvgCanvas</title>
|
<title>Unit Tests for SvgCanvas</title>
|
||||||
<link rel="stylesheet" href="qunit/qunit.css" type="text/css"/>
|
<link rel="stylesheet" href="qunit/qunit.css"/>
|
||||||
<script src="../editor/jquery.js"></script>
|
<script src="../editor/jquery.js"></script>
|
||||||
<script src="../editor/jquerybbq/jquery.bbq.min.js"></script>
|
<script src="../editor/jquerybbq/jquery.bbq.min.js"></script>
|
||||||
<script src="../editor/jquery-ui/jquery-ui-1.8.custom.min.js"></script>
|
<script src="../editor/jquery-ui/jquery-ui-1.8.custom.min.js"></script>
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
<script src="../editor/svgutils.js"></script>
|
<script src="../editor/svgutils.js"></script>
|
||||||
<script src="../editor/sanitize.js"></script>
|
<script src="../editor/sanitize.js"></script>
|
||||||
<script src="../editor/history.js"></script>
|
<script src="../editor/history.js"></script>
|
||||||
<script src='../editor/coords.js'></script>
|
<script src="../editor/coords.js"></script>
|
||||||
<script src="../editor/recalculate.js"></script>
|
<script src="../editor/recalculate.js"></script>
|
||||||
<script src="../editor/select.js"></script>
|
<script src="../editor/select.js"></script>
|
||||||
<script src="../editor/draw.js"></script>
|
<script src="../editor/draw.js"></script>
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>Unit Tests for units.js</title>
|
<title>Unit Tests for units.js</title>
|
||||||
<link rel='stylesheet' href='qunit/qunit.css' type='text/css'/>
|
<link rel="stylesheet" href="qunit/qunit.css"/>
|
||||||
<script src='../editor/jquery.js'></script>
|
<script src="../editor/jquery.js"></script>
|
||||||
<script src='../editor/svgedit.js'></script>
|
<script src="../editor/svgedit.js"></script>
|
||||||
<script src='../editor/units.js'></script>
|
<script src="../editor/units.js"></script>
|
||||||
<script src='qunit/qunit.js'></script>
|
<script src="qunit/qunit.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
// log function
|
// log function
|
||||||
@@ -92,14 +92,14 @@
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id='qunit-header'>Unit Tests for units.js</h1>
|
<h1 id="qunit-header">Unit Tests for units.js</h1>
|
||||||
<h2 id='qunit-banner'></h2>
|
<h2 id="qunit-banner"></h2>
|
||||||
<h2 id='qunit-userAgent'></h2>
|
<h2 id="qunit-userAgent"></h2>
|
||||||
<ol id='qunit-tests'></ol>
|
<ol id="qunit-tests"></ol>
|
||||||
<div id='anchor' style='visibility:hidden'></div>
|
<div id="anchor" style="visibility:hidden"></div>
|
||||||
<div id="elementsContainer">
|
<div id="elementsContainer">
|
||||||
<div id='uniqueId' style='visibility:hidden'></div>
|
<div id="uniqueId" style="visibility:hidden"></div>
|
||||||
<div id='nonUniqueId' style='visibility:hidden'></div>
|
<div id="nonUniqueId" style="visibility:hidden"></div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -9,10 +9,10 @@
|
|||||||
|
|
||||||
<base href="http://svg-edit.googlecode.com/svn-history/r1142/branches/2.4/editor/svg-editor.html">
|
<base href="http://svg-edit.googlecode.com/svn-history/r1142/branches/2.4/editor/svg-editor.html">
|
||||||
|
|
||||||
<link rel="stylesheet" href="jgraduate/css/jPicker-1.0.9.css" type="text/css"/>
|
<link rel="stylesheet" href="jgraduate/css/jPicker-1.0.9.css"/>
|
||||||
<link rel="stylesheet" href="jgraduate/css/jGraduate-0.2.0.css" type="text/css"/>
|
<link rel="stylesheet" href="jgraduate/css/jGraduate-0.2.0.css"/>
|
||||||
<link rel="stylesheet" href="svg-editor.css" type="text/css"/>
|
<link rel="stylesheet" href="svg-editor.css"/>
|
||||||
<link rel="stylesheet" href="spinbtn/JQuerySpinBtn.css" type="text/css"/>
|
<link rel="stylesheet" href="spinbtn/JQuerySpinBtn.css"/>
|
||||||
<!-- Development version of script tags: -->
|
<!-- Development version of script tags: -->
|
||||||
<script src="jquery.js"></script>
|
<script src="jquery.js"></script>
|
||||||
<script src="js-hotkeys/jquery.hotkeys.min.js"></script>
|
<script src="js-hotkeys/jquery.hotkeys.min.js"></script>
|
||||||
@@ -48,7 +48,7 @@ script src="locale/locale.min.js"></script-->
|
|||||||
<div id="svg_editor">
|
<div id="svg_editor">
|
||||||
|
|
||||||
<div id="workarea">
|
<div id="workarea">
|
||||||
<style id="styleoverrides" type="text/css" media="screen" scoped="scoped"></style>
|
<style id="styleoverrides" media="screen" scoped="scoped"></style>
|
||||||
<div id="svgcanvas"></div>
|
<div id="svgcanvas"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user