dev/server/public/admin/vendor/svg-edit-2.7/extensions/ext-markers.js
function colorChanged(elem) {
		var color = elem.getAttribute('stroke');

		$.each(mtypes, function(i, pos) {
			var marker = getLinked(elem, 'marker-'+pos);
			if (!marker) {return;}
			if (!marker.attributes.se_type) {return;} // not created by this extension
			var ch = marker.lastElementChild;
			if (!ch) {return;}
			var curfill = ch.getAttribute('fill');
			var curstroke = ch.getAttribute('stroke');
			if (curfill && curfill != 'none') {ch.setAttribute('fill', color);}
			if (curstroke && curstroke != 'none') {ch.setAttribute('stroke', color);}
		});
	}
function colorChanged(elem) {
		var color = elem.getAttribute('stroke');

		$.each(mtypes, function(i, pos) {
			var marker = getLinked(elem, 'marker-'+pos);
			if (!marker) {return;}
			if (!marker.attributes.se_type) {return;} // not created by this extension
			var ch = marker.lastElementChild;
			if (!ch) {return;}
			var curfill = ch.getAttribute('fill');
			var curstroke = ch.getAttribute('stroke');
			if (curfill && curfill != 'none') {ch.setAttribute('fill', color);}
			if (curstroke && curstroke != 'none') {ch.setAttribute('stroke', color);}
		});
	}
function colorChanged ( elem ) { var color = elem . getAttribute ( 'stroke' ) ; $ . each ( mtypes , function ( i , pos ) { var marker = getLinked ( elem , 'marker-' + pos ) ; if ( ! marker ) { return ; } if ( ! marker . attributes . se_type ) { return ; } // not created by this extension var ch = marker . lastElementChild ; if ( ! ch ) { return ; } var curfill = ch . getAttribute ( 'fill' ) ; var curstroke = ch . getAttribute ( 'stroke' ) ; if ( curfill && curfill != 'none' ) { ch . setAttribute ( 'fill' , color ) ; } if ( curstroke && curstroke != 'none' ) { ch . setAttribute ( 'stroke' , color ) ; } } ) ; }
called when the main system modifies an object this routine changes the associated markers to be the same color
called when the main system modifies an object this routine changes the associated markers to be the same color