- Fix: Add images (and references) for fallback (#135)
- Fix (canvg): blur export fix - i18n (Chinese): A few fixes (#135) - Optimize: Further image optimizing - Refactoring: Avoid custom JS substitution syntax - Refactoring: Reorder default extension list
This commit is contained in:
5
dist/extensions/ext-markers.js
vendored
5
dist/extensions/ext-markers.js
vendored
@@ -99,11 +99,12 @@ var svgEditorExtension_markers = (function () {
|
||||
$.each(mtypes, function (k, pos) {
|
||||
var listname = pos + '_marker_list';
|
||||
var def = true;
|
||||
$.each(markerTypes, function (id, v) {
|
||||
Object.keys(markerTypes).forEach(function (id) {
|
||||
var title = getTitle(String(id));
|
||||
buttons.push({
|
||||
id: idPrefix + pos + '_' + id,
|
||||
svgicon: id,
|
||||
icon: svgEditor.curConfig.extIconsPath + 'markers-' + id + '.png',
|
||||
title: title,
|
||||
type: 'context',
|
||||
events: { click: setArrowFromButton },
|
||||
@@ -486,7 +487,7 @@ var svgEditorExtension_markers = (function () {
|
||||
|
||||
// duplicate shapes to support unfilled (open) marker types with an _o suffix
|
||||
|
||||
$.each(['leftarrow', 'rightarrow', 'box', 'star', 'mcircle', 'triangle'], function (i, v) {
|
||||
['leftarrow', 'rightarrow', 'box', 'star', 'mcircle', 'triangle'].forEach(function (v) {
|
||||
markerTypes[v + '_o'] = markerTypes[v];
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user