add all_shapes_shadow test
This commit is contained in:
parent
c5f047805f
commit
9dfdc0a9ee
4 changed files with 1251 additions and 4 deletions
|
|
@ -458,10 +458,10 @@ func defineShadowFilter(writer io.Writer) {
|
||||||
fmt.Fprint(writer, `<defs>
|
fmt.Fprint(writer, `<defs>
|
||||||
<filter id="shadow-filter" width="200%" height="200%" x="-50%" y="-50%">
|
<filter id="shadow-filter" width="200%" height="200%" x="-50%" y="-50%">
|
||||||
<feGaussianBlur stdDeviation="1.7 " in="SourceGraphic"></feGaussianBlur>
|
<feGaussianBlur stdDeviation="1.7 " in="SourceGraphic"></feGaussianBlur>
|
||||||
<feFlood flood-color="#3d4574" flood-opacity="0.4" result="ShadowFeFloodOut" in="SourceGraphic"></feFlood>
|
<feFlood flood-color="#3d4574" flood-opacity="0.4" result="ShadowFeFlood" in="SourceGraphic"></feFlood>
|
||||||
<feComposite in="ShadowFeFloodOut" in2="SourceAlpha" operator="in" result="ShadowFeCompositeOut"></feComposite>
|
<feComposite in="ShadowFeFlood" in2="SourceAlpha" operator="in" result="ShadowFeComposite"></feComposite>
|
||||||
<feOffset dx="3" dy="5" result="ShadowFeOffsetOut" in="ShadowFeCompositeOut"></feOffset>
|
<feOffset dx="3" dy="5" result="ShadowFeOffset" in="ShadowFeComposite"></feOffset>
|
||||||
<feBlend in="SourceGraphic" in2="ShadowFeOffsetOut" mode="normal" result="ShadowFeBlendOut"></feBlend>
|
<feBlend in="SourceGraphic" in2="ShadowFeOffset" mode="normal" result="ShadowFeBlend"></feBlend>
|
||||||
</filter>
|
</filter>
|
||||||
</defs>`)
|
</defs>`)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -95,6 +95,53 @@ oval.multiple: true
|
||||||
circle.multiple: true
|
circle.multiple: true
|
||||||
hexagon.multiple: true
|
hexagon.multiple: true
|
||||||
cloud.multiple: true
|
cloud.multiple: true
|
||||||
|
`,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "all_shapes_shadow",
|
||||||
|
script: `
|
||||||
|
rectangle: {shape: "rectangle"}
|
||||||
|
square: {shape: "square"}
|
||||||
|
page: {shape: "page"}
|
||||||
|
parallelogram: {shape: "parallelogram"}
|
||||||
|
document: {shape: "document"}
|
||||||
|
cylinder: {shape: "cylinder"}
|
||||||
|
queue: {shape: "queue"}
|
||||||
|
package: {shape: "package"}
|
||||||
|
step: {shape: "step"}
|
||||||
|
callout: {shape: "callout"}
|
||||||
|
stored_data: {shape: "stored_data"}
|
||||||
|
person: {shape: "person"}
|
||||||
|
diamond: {shape: "diamond"}
|
||||||
|
oval: {shape: "oval"}
|
||||||
|
circle: {shape: "circle"}
|
||||||
|
hexagon: {shape: "hexagon"}
|
||||||
|
cloud: {shape: "cloud"}
|
||||||
|
|
||||||
|
rectangle -> square -> page
|
||||||
|
parallelogram -> document -> cylinder
|
||||||
|
queue -> package -> step
|
||||||
|
callout -> stored_data -> person
|
||||||
|
diamond -> oval -> circle
|
||||||
|
hexagon -> cloud
|
||||||
|
|
||||||
|
rectangle.shadow: true
|
||||||
|
square.shadow: true
|
||||||
|
page.shadow: true
|
||||||
|
parallelogram.shadow: true
|
||||||
|
document.shadow: true
|
||||||
|
cylinder.shadow: true
|
||||||
|
queue.shadow: true
|
||||||
|
package.shadow: true
|
||||||
|
step.shadow: true
|
||||||
|
callout.shadow: true
|
||||||
|
stored_data.shadow: true
|
||||||
|
person.shadow: true
|
||||||
|
diamond.shadow: true
|
||||||
|
oval.shadow: true
|
||||||
|
circle.shadow: true
|
||||||
|
hexagon.shadow: true
|
||||||
|
cloud.shadow: true
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
1170
e2etests/testdata/stable/all_shapes_shadow/board.exp.json
vendored
Normal file
1170
e2etests/testdata/stable/all_shapes_shadow/board.exp.json
vendored
Normal file
File diff suppressed because it is too large
Load diff
30
e2etests/testdata/stable/all_shapes_shadow/sketch.exp.svg
vendored
Normal file
30
e2etests/testdata/stable/all_shapes_shadow/sketch.exp.svg
vendored
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 334 KiB |
Loading…
Reference in a new issue