mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
commit
e7f09af890
2 changed files with 8 additions and 5 deletions
10
.travis.yml
10
.travis.yml
|
@ -2,9 +2,13 @@ language: node_js
|
||||||
# Follow https://github.com/nodejs/LTS to decide when to remove a version
|
# Follow https://github.com/nodejs/LTS to decide when to remove a version
|
||||||
node_js:
|
node_js:
|
||||||
- stable
|
- stable
|
||||||
- '8'
|
- 8
|
||||||
- '6'
|
# 6.13 and 6.14 causing unreasonable errors in SymbolDefinition.initialize.
|
||||||
- '4'
|
# https://travis-ci.org/paperjs/paper.js/jobs/434854796
|
||||||
|
# To avoid these versions, we specify version to 6.12 as temporary solution.
|
||||||
|
# See https://github.com/paperjs/paper.js/issues/1523
|
||||||
|
- 6.12
|
||||||
|
- 4
|
||||||
sudo: false
|
sudo: false
|
||||||
env:
|
env:
|
||||||
matrix:
|
matrix:
|
||||||
|
|
|
@ -116,8 +116,7 @@ test('Import SVG polyline', function() {
|
||||||
|
|
||||||
test('Import SVG Image', function(assert) {
|
test('Import SVG Image', function(assert) {
|
||||||
var done = assert.async();
|
var done = assert.async();
|
||||||
var points = '5,5 45,45 5,45 45,5';
|
var svg = '<?xml version="1.0" encoding="utf-8"?><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><image style="overflow:visible;enable-background:new ;" width="300" height="67" id="e0" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=" transform="matrix(0.2149 0 0 0.2149 304.7706 197.8176)"></image></svg>';
|
||||||
var svg = '<?xml version="1.0" encoding="utf-8"?><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><image style="overflow:visible;enable-background:new ;" width="300" height="67" id="e0" xlink:href="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs" transform="matrix(0.2149 0 0 0.2149 304.7706 197.8176)"></image></svg>';
|
|
||||||
var imported = paper.project.importSVG(svg);
|
var imported = paper.project.importSVG(svg);
|
||||||
var raster = imported.children[0];
|
var raster = imported.children[0];
|
||||||
raster.on('load', function() {
|
raster.on('load', function() {
|
||||||
|
|
Loading…
Reference in a new issue