#104 jquery extend convert to javascript
parent
d455eef840
commit
ed12ea7e76
|
@ -17,7 +17,7 @@ import {
|
||||||
isWebkit, supportsHVLineContainerBBox, supportsPathBBox, supportsXpath,
|
isWebkit, supportsHVLineContainerBBox, supportsPathBBox, supportsXpath,
|
||||||
supportsSelectors
|
supportsSelectors
|
||||||
} from '../common/browser.js';
|
} from '../common/browser.js';
|
||||||
import { getClosest } from '../editor/components/jgraduate/Util.js';
|
import { getClosest, mergeDeep } from '../editor/components/jgraduate/Util.js';
|
||||||
|
|
||||||
// String used to encode base64.
|
// String used to encode base64.
|
||||||
const KEYSTR = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
const KEYSTR = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
||||||
|
@ -899,7 +899,7 @@ export const convertToPath = function (
|
||||||
const batchCmd = new hstry.BatchCommand('Convert element to Path');
|
const batchCmd = new hstry.BatchCommand('Convert element to Path');
|
||||||
|
|
||||||
// Any attribute on the element not covered by the passed-in attributes
|
// Any attribute on the element not covered by the passed-in attributes
|
||||||
attrs = $.extend({}, attrs, getExtraAttributesForConvertToPath(elem));
|
attrs = mergeDeep(attrs, getExtraAttributesForConvertToPath(elem));
|
||||||
|
|
||||||
const path = addSVGElementFromJson({
|
const path = addSVGElementFromJson({
|
||||||
element: 'path',
|
element: 'path',
|
||||||
|
|
Loading…
Reference in New Issue