Skip to content

Commit

Permalink
update format
Browse files Browse the repository at this point in the history
  • Loading branch information
trusktr committed Jan 25, 2024
1 parent 6d1c878 commit 2de0f6f
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Note, if using importmaps and native ES Modules in a browser, or in a JS runtime
<script type="importmap">
{
"imports": {
"@lume/kiwi": "https://unpkg.com/@lume/[email protected]/dist/kiwi.js",
"@lume/kiwi": "https://unpkg.com/@lume/[email protected]/dist/kiwi.js"
}
}
</script>
Expand Down Expand Up @@ -100,12 +100,12 @@ console.assert(right.value() === 500)

// later, update the constraints and re-calculate
setTimeout(() => {
solver.suggestValue(left, 200)
solver.suggestValue(width, 600)
solver.updateVariables() // update
console.assert(right.value() === 800)
solver.suggestValue(left, 200)
solver.suggestValue(width, 600)

solver.updateVariables() // update

console.assert(right.value() === 800)
}, 2000)
```

Expand Down Expand Up @@ -166,7 +166,6 @@ open a pull request!

[![License](https://img.shields.io/badge/license-BDS%203--clause-brightgreen)](<https://tldrlegal.com/license/bsd-3-clause-license-(revised)>)


## Status

[![Build Status](https://github.com/lume/kiwi/actions/workflows/tests.yml/badge.svg)](https://github.com/lume/kiwi/actions/workflows/tests.yml)
Expand Down

0 comments on commit 2de0f6f

Please sign in to comment.