Use single floating point value for x-positioning
A
Adam Bouhenguel
I separated them because I wanted the default location for a stage to be halfway to the next one. Right now this works because the default value for substage is 0.5. I think this default behavior is easier for people just getting started with mapping. Do you have thoughts on this trade-off? Or thoughts on how to make it work given the stated goals?
Jim Downing
Adam Bouhenguel: I see your point. I'm guessing that JS isn't sufficiently typed that an integer could default to halfway and a float could specify?
An alternative would be to have an alternative property (
x
?) that allowed the single f.p. value, and would override stage
and substage
? Or make substage
the single floating point value that overrides stage
rather than refines it. Jim Downing
Or a global var
quick-stages
that would automatically reassign a value of whole numbers to the mid-point? A
Adam Bouhenguel
Jim Downing: default JavaScript math does not make it obvious whether or not a number was written with a decimal point or not. That said, these values are not actually parsed with a JavaScript parser.
I don't think I want to invent a thing that looks like a number but is not one, especially since at some point people will be writing formulas that compute component location.
It is possible that we could make substage something like
default stage + 0.5
and then pick a name better than substage. Interesting idea!