Skip to content

Commit

Permalink
Added lineheight and textoverflow examples to Texts example.
Browse files Browse the repository at this point in the history
  • Loading branch information
michielvandergeest committed Jan 29, 2024
1 parent c3e3a0f commit 6e11600
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 14 deletions.
28 changes: 17 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lightningjs/blits-example-app",
"version": "0.5.8",
"version": "0.5.9",
"description": "Lightning 3 Blits Example App",
"main": "index.js",
"type": "module",
Expand Down Expand Up @@ -33,6 +33,6 @@
"vite": "^4.0.4"
},
"dependencies": {
"@lightningjs/blits": "^0.6.5"
"@lightningjs/blits": "^0.6.8"
}
}
6 changes: 5 additions & 1 deletion src/pages/Texts.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ export default Blits.Component('Texts', {
</Element>
<Element w="800" h="200" x="900" y="550" color="#94a3b8">
<Text content="$longText" size="40" color="#bae6fd" wordwrap="800" maxlines="5" />
<Text content="$longText" size="40" color="#bae6fd" wordwrap="800" maxlines="5" textoverflow="!!!" />
</Element>
<Element w="800" h="120" x="900" y="800" color="#94a3b8">
<Text content="$longText" size="40" color="#bae6fd" wordwrap="800" maxlines="2" lineheight="60" textoverflow="false" />
</Element>
<Text :content="$character" size="50" :color="$color" y="750" font="opensans" />
Expand Down

0 comments on commit 6e11600

Please sign in to comment.