Merge pull request #516 from OptimistikSAS/issues/102
#102 components i18n new approach changes
This commit is contained in:
@@ -215,6 +215,7 @@ class BottomPanel {
|
||||
`;
|
||||
this.editor.$svgEditor.append(template.content.cloneNode(true));
|
||||
$id('palette').addEventListener('change', this.handlePalette.bind(this));
|
||||
$id('palette').init(i18next);
|
||||
const { curConfig } = this.editor.configObj;
|
||||
$id('fill_color').setPaint(new jGraduate.Paint({ alpha: 100, solidColor: curConfig.initFill.color }));
|
||||
$id('stroke_color').setPaint(new jGraduate.Paint({ alpha: 100, solidColor: curConfig.initStroke.color }));
|
||||
@@ -226,6 +227,8 @@ class BottomPanel {
|
||||
$id('stroke_linejoin').addEventListener('change', (evt) => this.handleStrokeAttr.bind(this)('stroke-linejoin', evt));
|
||||
$id('stroke_linecap').addEventListener('change', (evt) => this.handleStrokeAttr.bind(this)('stroke-linecap', evt));
|
||||
$id('opacity').addEventListener('change', this.handleOpacity.bind(this));
|
||||
$id('fill_color').init(i18next);
|
||||
$id('stroke_color').init(i18next);
|
||||
}
|
||||
/**
|
||||
* @type {module}
|
||||
|
||||
Reference in New Issue
Block a user