chore(project): migrate to tiny-svg@1.x
This commit is contained in:
parent
dc30638a7c
commit
e4dbc422bf
|
@ -14,7 +14,7 @@ var domify = require('min-dom').domify,
|
||||||
domQuery = require('min-dom').query,
|
domQuery = require('min-dom').query,
|
||||||
domRemove = require('min-dom').remove;
|
domRemove = require('min-dom').remove;
|
||||||
|
|
||||||
var innerSVG = require('tiny-svg/lib/innerSVG');
|
var innerSVG = require('tiny-svg').innerSVG;
|
||||||
|
|
||||||
var Diagram = require('diagram-js'),
|
var Diagram = require('diagram-js'),
|
||||||
BpmnModdle = require('bpmn-moddle');
|
BpmnModdle = require('bpmn-moddle');
|
||||||
|
|
|
@ -30,10 +30,10 @@ var getCirclePath = BpmnRenderUtil.getCirclePath,
|
||||||
|
|
||||||
var domQuery = require('min-dom').query;
|
var domQuery = require('min-dom').query;
|
||||||
|
|
||||||
var svgAppend = require('tiny-svg/lib/append'),
|
var svgAppend = require('tiny-svg').append,
|
||||||
svgAttr = require('tiny-svg/lib/attr'),
|
svgAttr = require('tiny-svg').attr,
|
||||||
svgCreate = require('tiny-svg/lib/create'),
|
svgCreate = require('tiny-svg').create,
|
||||||
svgClasses = require('tiny-svg/lib/classes');
|
svgClasses = require('tiny-svg').classes;
|
||||||
|
|
||||||
var rotate = require('diagram-js/lib/util/SvgTransformUtil').rotate,
|
var rotate = require('diagram-js/lib/util/SvgTransformUtil').rotate,
|
||||||
transform = require('diagram-js/lib/util/SvgTransformUtil').transform,
|
transform = require('diagram-js/lib/util/SvgTransformUtil').transform,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
var svgAppend = require('tiny-svg/lib/append'),
|
var svgAppend = require('tiny-svg').append,
|
||||||
svgAttr = require('tiny-svg/lib/attr'),
|
svgAttr = require('tiny-svg').attr,
|
||||||
svgCreate = require('tiny-svg/lib/create'),
|
svgCreate = require('tiny-svg').create,
|
||||||
svgRemove = require('tiny-svg/lib/remove');
|
svgRemove = require('tiny-svg').remove;
|
||||||
|
|
||||||
var getBusinessObject = require('../../util/ModelUtil').getBusinessObject,
|
var getBusinessObject = require('../../util/ModelUtil').getBusinessObject,
|
||||||
is = require('../../util/ModelUtil').is;
|
is = require('../../util/ModelUtil').is;
|
||||||
|
|
|
@ -9,7 +9,7 @@ var assign = require('min-dash').assign,
|
||||||
|
|
||||||
var domQuery = require('min-dom').query;
|
var domQuery = require('min-dom').query;
|
||||||
|
|
||||||
var svgAttr = require('tiny-svg/lib/attr');
|
var svgAttr = require('tiny-svg').attr;
|
||||||
|
|
||||||
var LOW_PRIORITY = 250;
|
var LOW_PRIORITY = 250;
|
||||||
|
|
||||||
|
|
|
@ -6,9 +6,9 @@ var BaseRenderer = require('diagram-js/lib/draw/BaseRenderer');
|
||||||
|
|
||||||
var componentsToPath = require('diagram-js/lib/util/RenderUtil').componentsToPath;
|
var componentsToPath = require('diagram-js/lib/util/RenderUtil').componentsToPath;
|
||||||
|
|
||||||
var svgAppend = require('tiny-svg/lib/append'),
|
var svgAppend = require('tiny-svg').append,
|
||||||
svgAttr = require('tiny-svg/lib/attr'),
|
svgAttr = require('tiny-svg').attr,
|
||||||
svgCreate = require('tiny-svg/lib/create');
|
svgCreate = require('tiny-svg').create;
|
||||||
|
|
||||||
|
|
||||||
function CustomRenderer(eventBus, styles) {
|
function CustomRenderer(eventBus, styles) {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
require('../../TestHelper');
|
require('../../TestHelper');
|
||||||
|
|
||||||
var svgCreate = require('tiny-svg/lib/create');
|
var svgCreate = require('tiny-svg').create;
|
||||||
|
|
||||||
var coreModule = require('lib/core'),
|
var coreModule = require('lib/core'),
|
||||||
rendererModule = require('lib/draw'),
|
rendererModule = require('lib/draw'),
|
||||||
|
|
|
@ -13,9 +13,9 @@ var canvasEvent = require('../../../util/MockEvents').createCanvasEvent;
|
||||||
|
|
||||||
var assign = require('min-dash').assign;
|
var assign = require('min-dash').assign;
|
||||||
|
|
||||||
var svgAttr = require('tiny-svg/lib/attr'),
|
var svgAttr = require('tiny-svg').attr,
|
||||||
svgClone = require('tiny-svg/lib/clone'),
|
svgClone = require('tiny-svg').clone,
|
||||||
innerSVG = require('tiny-svg/lib/innerSVG');
|
innerSVG = require('tiny-svg').innerSVG;
|
||||||
|
|
||||||
|
|
||||||
describe('features/replace-preview', function() {
|
describe('features/replace-preview', function() {
|
||||||
|
|
Loading…
Reference in New Issue