Closed ghost closed 6 years ago
I defined ranges for Cart.xProperty
, Cart.vProperty
, Knot.xProperty
, netForceModel.speedProperty
.
The others in the list were NetForceModel.durationProperty
and NetForceProperty.numberPullersAttachedProperty
.
@samreid @zepumph these Properties don't have a defined range, and setting numberPullersAttachedProperty
directly doesn't make much since anyway as described in the original issue ticket. Does anything else need to be done for those?
It seems numberPullersAttachedProperty
has a range of 0 to 4 (correct me if I'm misunderstanding something). Even though this range wouldn't be used to set a slider range, it could potentially be used for clients to understand the sim or understand the data stream. It seems like it would be good to add that if not too much work.
For the durationProperty, I think the range would be 0 to infinity, because the user could keep switching pullers after time started.
It seems numberPullersAttachedProperty has a range of 0 to 4.
Ok, sounds good, not difficult to add the range. It just felt like a strange way to control the Property because knots on the rope also need to be filled in order for this number to have meaning.
For the durationProperty, I think the range would be 0 to infinity, because the user could keep switching pullers after time started.
Yes, I agree. I wasn't sure what the browser would do with infinite range for a range input, but seems good in Chrome - it automatically places a limit at 100 for the slider.
Changes merged into 2.3 and 2.3-phetio release branches
Sliders check out.
Test device:
MacBook Air (13-inch, Early 2015)
Operating System:
macOS Sierra 10.12.4
Browser:
Safari 10.1
Problem description:
In the Instance Proxies wrapper, some of the sliders aren't working. The specific sliders and their issues are enumerated and described below. I would recommend either fixing the domains for the sliders or adding notes that tell the users not to use the sliders. This is for phetsims/QA/issues/42.
Summary:
I assume the default domain for sliders is [0, 1]. This doesn't work for some of the properties.
I. Slider is an inappropriate input. II. Domain issue. III. Domain issue. IV. Domain issue. V. Domain issue. VI. Domain issue. VII. Domain issue.
Detailed Descriptions:
I. Number Pullers Attached Property
forcesAndMotionBasics.netForceScreen.model.numberPullersAttachedProperty: TProperty.
The slider number is initially 0. The domain is initially [0, 1]. When pullers are added, the slider number increases to whatever the number of pullers is. When the slider is moved, the domain reverts to its original domain of [0, 1]. (Slider is an inappropriate input.)
II. Speed Property
forcesAndMotionBasics.netForceScreen.model.speedProperty: TProperty.
The domain is [0, 1]. The speed can be greater than 1. Max speed ~3.7 m/s.
III. Duration Property
forcesAndMotionBasics.netForceScreen.model.durationProperty: TProperty.
The domain is [0, 1]. The duration can be greater than 1. Max duration ~9.46 s.
IV. X Property (Cart)
forcesAndMotionBasics.netForceScreen.model.cart.xProperty: TProperty.
The domain on the slider is [-200, 200]. The actual domain is [-403, 403].
V. V Property
forcesAndMotionBasics.netForceScreen.model.cart.vProperty: TProperty.
The domain on the slider is [-1.35, 1.35]. Max speed ~3.7 m/s.
VI. X Property (Blue Knots 0-3)
forcesAndMotionBasics.netForceScreen.model.blueKnot0.xProperty: TProperty.
The x-value for the knot is the initial slider value. When the slider is moved, the domain becomes [0, 1] and the puller on that knot ends up just offscreen to the left.
VII. X Property (Red Knots 0-3)
forcesAndMotionBasics.netForceScreen.model.redKnot0.xProperty: TProperty.
The x-value for the knot is the initial slider value. When the slider is moved, the domain becomes [0, 1] and the puller on that knot ends up on the left side of the screen where the blue pullers usually go.
Steps to reproduce:
I. Number Pullers Attached Property
II. Speed Property
III. Duration Property (Same steps as those listed in II.) Max speed is ~9.46 m/s.
IV. X Property (Cart)
V. V Property
VI. X Property (Blue Knots 0-3)
VII. X Property (Red Knots 0-3)
Screenshots:
I. Number Pullers Attached Property
II. Speed Property A) B)
III. Duration Property A) B)
IV. X Property (Cart)
V. V Property
VI. X Property (Blue Knots 0-3)
VII. X Property (Red Knots 0-3)