Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
David Kempe
Meerkat
Commits
07aae718
Commit
07aae718
authored
Aug 27, 2020
by
StreatCodes
Browse files
Add defaults to check line
parent
edf0de09
Changes
2
Hide whitespace changes
Inline
Side-by-side
frontend/src/editor.jsx
View file @
07aae718
...
...
@@ -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
;
}
...
...
frontend/src/elements/line.jsx
View file @
07aae718
...
...
@@ -78,7 +78,7 @@ export function CheckLine({options}) {
</
div
>
}
export
const
Check
SVG
Defaults
=
{
export
const
Check
Line
Defaults
=
{
strokeWidth
:
4
,
leftArrow
:
false
,
rightArrow
:
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment