Change default steps number

This commit is contained in:
Ivan Danyliuk 2018-09-20 20:43:43 +03:00
parent 0b0fc730ee
commit c77baba272
No known key found for this signature in database
GPG Key ID: 97ED33CE024E1DBF
1 changed files with 6 additions and 6 deletions

View File

@ -6,6 +6,12 @@ import (
"github.com/gopherjs/vecty/elem" "github.com/gopherjs/vecty/elem"
) )
// DefaultForcesConfig specifies default configuration for physics simulation.
var DefaultForcesConfig = ForcesConfig{
Config: layout.DefaultConfig,
Steps: 100,
}
// ForceEditor represents forces and physics simulation configuration widget. // ForceEditor represents forces and physics simulation configuration widget.
type ForceEditor struct { type ForceEditor struct {
vecty.Core vecty.Core
@ -70,9 +76,3 @@ func (l *ForceEditor) Config() ForcesConfig {
}, },
} }
} }
// DefaultForcesConfig specifies default configuration for physics simulation.
var DefaultForcesConfig = ForcesConfig{
Config: layout.DefaultConfig,
Steps: 20,
}