Skip to content

Commit

Permalink
render tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Apr 17, 2023
1 parent b3640e1 commit 4c8c0c2
Show file tree
Hide file tree
Showing 9 changed files with 207 additions and 188 deletions.
3 changes: 1 addition & 2 deletions modules/layers/src/text-layer/text-layer.ts
Expand Up @@ -493,7 +493,7 @@ export default class TextLayer<DataT = any, ExtraPropsT extends {} = {}> extends
startIndices,
numInstances,
getText,
fontAtlasManager: {scale, texture, mapping},
fontAtlasManager: {scale, texture, mapping, props: fontSettings},
styleVersion
} = this.state;

Expand All @@ -515,7 +515,6 @@ export default class TextLayer<DataT = any, ExtraPropsT extends {} = {}> extends
backgroundPadding,
background,
billboard,
fontSettings,
outlineWidth,
outlineColor,
sizeScale,
Expand Down
1 change: 1 addition & 0 deletions test/data/fonts/opensans.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions test/data/fonts/opensans_sdf.json

Large diffs are not rendered by default.

Binary file modified test/render/golden-images/text-layer-auto-wrapping.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/render/golden-images/text-layer-background.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/render/golden-images/text-layer-multi-lines.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/render/golden-images/text-layer-sdf.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/render/golden-images/text-layer.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4c8c0c2

Please sign in to comment.