fixed agissantes icons size #2190

This commit is contained in:
2023-07-14 11:39:04 +02:00
parent 84852a434e
commit 0a5f1adf90
2 changed files with 99 additions and 14 deletions

View File

@@ -212,6 +212,7 @@ export default {
this.addPaperSymbolDefinition('entite', this.setPaperEntiteSymbol());
this.addPaperSymbolDefinition('entite_hidden', this.setPaperHiddenEntiteSymbol());
this.addPaperSymbolDefinition('entite_hover', this.setPaperEntiteHoverSymbol());
this.addPaperSymbolDefinition('entite_action_icon', this.setPaperEntiteActionIconSymbol());
this.addPaperSymbolDefinition('entite_action', this.setPaperEntiteActionSymbol());
this.addPaperSymbolDefinition('entite_action_hover', this.setPaperEntiteActionHoverSymbol());
this.addPaperSymbolDefinition('besoin', this.setPaperBesoinSymbol());
@@ -897,6 +898,24 @@ export default {
strokeWidth:2
})
},
setPaperEntiteActionIconSymbol(){
let svgIcon = paper.project.importSVG(iconAction);
svgIcon.strokeWidth = 0.8;
svgIcon.scale(0.6);
svgIcon.strokeColor = '#000';
svgIcon.fillColor = null;
svgIcon.position = {x:0, y:0};
// let circle = new paper.Path.Circle({
// radius: 3,
// fillColor: 'rgba(255,255,255,0.01)'
// })
return new paper.Group({
children: [svgIcon],
name: 'action_icon'
});
},
setPaperEntiteActionSymbol(){
let svgIcon = paper.project.importSVG(iconAction);
svgIcon.strokeWidth = 0.25;