mirror of
				https://github.com/excalidraw/excalidraw.git
				synced 2025-11-04 12:54:23 +01:00 
			
		
		
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			98702ace88
			...
			zsviczian-
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					61cf47a403 | 
@@ -201,12 +201,23 @@ export const actionChangeStrokeColor = register({
 | 
				
			|||||||
  name: "changeStrokeColor",
 | 
					  name: "changeStrokeColor",
 | 
				
			||||||
  trackEvent: false,
 | 
					  trackEvent: false,
 | 
				
			||||||
  perform: (elements, appState, value) => {
 | 
					  perform: (elements, appState, value) => {
 | 
				
			||||||
 | 
					    const containers = getSelectedElements(elements, appState, false)
 | 
				
			||||||
 | 
					      .filter((el) => el.boundElements)
 | 
				
			||||||
 | 
					      .map((el) => el.id);
 | 
				
			||||||
    return {
 | 
					    return {
 | 
				
			||||||
      ...(value.currentItemStrokeColor && {
 | 
					      ...(value.currentItemStrokeColor && {
 | 
				
			||||||
        elements: changeProperty(
 | 
					        elements: changeProperty(
 | 
				
			||||||
          elements,
 | 
					          elements,
 | 
				
			||||||
          appState,
 | 
					          appState,
 | 
				
			||||||
          (el) => {
 | 
					          (el) => {
 | 
				
			||||||
 | 
					            if (
 | 
				
			||||||
 | 
					              isTextElement(el) &&
 | 
				
			||||||
 | 
					              el.containerId &&
 | 
				
			||||||
 | 
					              containers.includes(el.containerId) &&
 | 
				
			||||||
 | 
					              getContainerElement(el)?.strokeColor !== el.strokeColor
 | 
				
			||||||
 | 
					            ) {
 | 
				
			||||||
 | 
					              return el;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
            return hasStrokeColor(el.type)
 | 
					            return hasStrokeColor(el.type)
 | 
				
			||||||
              ? newElementWith(el, {
 | 
					              ? newElementWith(el, {
 | 
				
			||||||
                  strokeColor: value.currentItemStrokeColor,
 | 
					                  strokeColor: value.currentItemStrokeColor,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user