- Update dist files
This commit is contained in:
12
dist/extensions/ext-connector.js
vendored
12
dist/extensions/ext-connector.js
vendored
@@ -17,7 +17,6 @@
|
||||
var svgroot = S.svgroot,
|
||||
getNextId = S.getNextId,
|
||||
getElem = S.getElem,
|
||||
curConfig = S.curConfig,
|
||||
addElem = S.addSvgElementFromJson,
|
||||
selManager = S.selectorManager,
|
||||
connSel = '.se_connector',
|
||||
@@ -60,7 +59,7 @@
|
||||
if (slope < bb.height / bb.width) {
|
||||
ratio = bb.width / 2 / Math.abs(lenX);
|
||||
} else {
|
||||
ratio = bb.height / 2 / Math.abs(lenY);
|
||||
ratio = lenY ? bb.height / 2 / Math.abs(lenY) : 0;
|
||||
}
|
||||
|
||||
return {
|
||||
@@ -340,6 +339,9 @@
|
||||
startX = opts.start_x;
|
||||
startY = opts.start_y;
|
||||
var mode = svgCanvas.getMode();
|
||||
var _svgEditor = svgEditor,
|
||||
initStroke = _svgEditor.curConfig.initStroke;
|
||||
|
||||
|
||||
if (mode === 'connector') {
|
||||
if (started) {
|
||||
@@ -368,10 +370,10 @@
|
||||
attr: {
|
||||
id: getNextId(),
|
||||
points: x + ',' + y + ' ' + x + ',' + y + ' ' + startX + ',' + startY,
|
||||
stroke: '#' + curConfig.initStroke.color,
|
||||
'stroke-width': !startElem.stroke_width || startElem.stroke_width === 0 ? curConfig.initStroke.width : startElem.stroke_width,
|
||||
stroke: '#' + initStroke.color,
|
||||
'stroke-width': !startElem.stroke_width || startElem.stroke_width === 0 ? initStroke.width : startElem.stroke_width,
|
||||
fill: 'none',
|
||||
opacity: curConfig.initStroke.opacity,
|
||||
opacity: initStroke.opacity,
|
||||
style: 'pointer-events:none'
|
||||
}
|
||||
});
|
||||
|
||||
15
dist/extensions/ext-foreignobject.js
vendored
15
dist/extensions/ext-foreignobject.js
vendored
@@ -48,15 +48,12 @@
|
||||
newFO = void 0,
|
||||
editingforeign = false;
|
||||
|
||||
// Function: setForeignString(xmlString, elt)
|
||||
// This function sets the content of element elt to the input XML.
|
||||
//
|
||||
// Parameters:
|
||||
// xmlString - The XML text.
|
||||
// elt - the parent element to append to
|
||||
//
|
||||
// Returns:
|
||||
// This function returns false if the set was unsuccessful, true otherwise.
|
||||
/**
|
||||
* This function sets the content of element elt to the input XML.
|
||||
* @param {String} xmlString - The XML text.
|
||||
* @param elt - the parent element to append to
|
||||
* @returns {Boolean} This function returns false if the set was unsuccessful, true otherwise.
|
||||
*/
|
||||
function setForeignString(xmlString) {
|
||||
var elt = selElems[0];
|
||||
try {
|
||||
|
||||
8
dist/extensions/ext-markers.js
vendored
8
dist/extensions/ext-markers.js
vendored
@@ -73,9 +73,11 @@
|
||||
markerTypes[v + '_o'] = markerTypes[v];
|
||||
});
|
||||
|
||||
// elem = a graphic element will have an attribute like marker-start
|
||||
// attr - marker-start, marker-mid, or marker-end
|
||||
// returns the marker element that is linked to the graphic element
|
||||
/**
|
||||
* @param elem - A graphic element will have an attribute like marker-start
|
||||
* @param attr - marker-start, marker-mid, or marker-end
|
||||
* @returns The marker element that is linked to the graphic element
|
||||
*/
|
||||
function getLinked(elem, attr) {
|
||||
var str = elem.getAttribute(attr);
|
||||
if (!str) {
|
||||
|
||||
2
dist/extensions/ext-mathjax.js
vendored
2
dist/extensions/ext-mathjax.js
vendored
@@ -158,7 +158,7 @@
|
||||
s.src = curConfig.extPath + mathjaxSrcSecure;
|
||||
// See `executeAfterLoads` in `svgutils.js`
|
||||
*/
|
||||
$.getScript(mathjaxSrcSecure).done(function (script, textStatus) {
|
||||
$.getScript(svgEditor.curConfig.extIconsPath + mathjaxSrcSecure).done(function (script, textStatus) {
|
||||
// When MathJax is loaded get the div where the math will be rendered.
|
||||
MathJax.Hub.queue.Push(function () {
|
||||
math = MathJax.Hub.getAllJax('#mathjax_creator')[0];
|
||||
|
||||
2
dist/extensions/ext-shapes.js
vendored
2
dist/extensions/ext-shapes.js
vendored
@@ -124,7 +124,7 @@
|
||||
|
||||
if (!lib) {
|
||||
$('#shape_buttons').html('Loading...');
|
||||
$.getJSON(svgEditor.curConfig.extPath + 'shapelib/' + catId + '.json', function (result) {
|
||||
$.getJSON(svgEditor.curConfig.extIconsPath + 'shapelib/' + catId + '.json', function (result) {
|
||||
curLib = library[catId] = {
|
||||
data: result.data,
|
||||
size: result.size,
|
||||
|
||||
1682
dist/index-es.js
vendored
1682
dist/index-es.js
vendored
File diff suppressed because it is too large
Load Diff
2
dist/index-es.min.js
vendored
2
dist/index-es.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/index-es.min.js.map
vendored
2
dist/index-es.min.js.map
vendored
File diff suppressed because one or more lines are too long
1680
dist/index-umd.js
vendored
1680
dist/index-umd.js
vendored
File diff suppressed because it is too large
Load Diff
2
dist/index-umd.min.js
vendored
2
dist/index-umd.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/index-umd.min.js.map
vendored
2
dist/index-umd.min.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user