Commit 07aae718 authored by StreatCodes's avatar StreatCodes
Browse files

Add defaults to check line

parent edf0de09
......@@ -7,7 +7,7 @@ import { routeParam, removeParam, TagEditor } from './util';
import { CheckCard, CheckCardOptions } from './elements/card';
import { CheckSVG, CheckSVGOptions, CheckSVGDefaults } from './elements/svg';
import { CheckImage, CheckImageOptions } from './elements/image';
import { CheckLine, CheckLineOptions } from './elements/line';
import { CheckLine, CheckLineOptions, CheckLineDefaults } from './elements/line';
import { StaticText, StaticTextOptions, StaticTextDefaults } from './statics/text';
import { StaticSVG, StaticSVGOptions, StaticSVGDefaults } from './statics/svg';
import { StaticImage, StaticImageOptions } from './statics/image';
......@@ -421,6 +421,7 @@ export function ElementSettings({selectedElement, updateElement}) {
let defaults = {};
switch(newType) {
case 'check-svg': defaults = CheckSVGDefaults; break;
case 'check-line': defaults = CheckLineDefaults; break;
case 'static-text': defaults = StaticTextDefaults; break;
case 'static-svg': defaults = StaticSVGDefaults; break;
}
......
......@@ -78,7 +78,7 @@ export function CheckLine({options}) {
</div>
}
export const CheckSVGDefaults = {
export const CheckLineDefaults = {
strokeWidth: 4,
leftArrow: false,
rightArrow: true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment