Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/Kiwi.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ solver.addEditVariable(width, kiwi.Strength.strong)
// Create a variable calculated through a constraint
const centerX = new kiwi.Variable()
const expr = new kiwi.Expression([-1, centerX], left, [0.5, width])
solver.addConstraint(new kiwi.Constraint(expr, kiwi.Operator.Eq, kiwi.Strength.required))
solver.addConstraint(new kiwi.Constraint(expr, kiwi.Operator.Eq, 0, kiwi.Strength.required))

// Suggest some values to the solver
solver.suggestValue(left, 0)
Expand Down
2 changes: 1 addition & 1 deletion src/solver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class Solver {
* @type {number} - The max number of solver iterations before an error
* is thrown, in order to prevent infinite iteration. Default: `10,000`.
*/
public maxIterations = 1000
public maxIterations = 10000

/**
* Construct a new Solver.
Expand Down