Closed samreid closed 3 years ago
Question for designers: do we need to support nonlinear model->view mappings, for example, for log plots?
Notes from discussion with @jonathanolson:
Raw notes:
Adding a reference to https://github.com/phetsims/fourier-making-waves/issues/3
Other questions and concerns:
@pixelzoom and I reviewed this today:
CM: This seems pretty nice. CM: Should we abandon griddle and just go towards bamboo?
SR: Should bamboo be nested in griddle? Or a separate repo? CM: It may be preferable in a separate repo. CM: Maybe ask another developer. Maybe JO.
SR: What else does Fourier need before this can be usable? CM: I can take it for a test drive.
CM: What about separating TickMarkSet from the TickMarkLabelSet? Better simple building blocks. SR: That sounds good.
CM: The zoom button group shouldn't be part of bamboo, but can be included in chart hierarchy if necessary (sim specific)
SR: Should we use one clip node, or clip each child separately? CM: One central point seems preferable. That may be better performance too.
CM: Fix the labeling thing, "edge" option "max" vs "min", that will be a barrier to usage.
SR: Should another developer code review this before usage in Fourier? CM: Fourier/common code has a new category. As I start to use it, I could review it as I go. As long as they don't mind it in this category.
CM: For next steps: who should review it? If CM is using it for Fourier, perhaps he is a good candidate. But will we need approval to spend time on that? One plan: I think this is a really nice start. We will need to decide whether it is a new repo, and some minor improvements. Then the sprint is over, and I'll try to use it in Fourier in a few weeks. Then I'll need some @samreid time for discussion, and I'll review it while I use it. Perhaps we should run this plan past @ariel-phet to make sure we are on a good path.
@ariel-phet agreed @pixelzoom can review this and continue with this, and it will count as part of the Fourier common code time.
@ariel-phet indicated that Fourier, Eating & Exercise and Moving Man will use this, so it makes sense for @samreid and @pixelzoom to take the lead.
I also pointed out that the CCK-AC scrolling chart nodes require features not yet supported by griddle, and that I may use bamboo for them, @ariel-phet said that makes sense.
I separated LabelSet out of TickMarkSet and fixed the min/max problem.
We moved this to a new repo "bamboo", closing.
There is a lot hard-coded into XYChartNode, and it is difficult to see how it can support every permutation of decoration or design we will want. Instead, let's try removing functionality from XYChartNode such as (what is currently known as the grid labels) and make it easier to add position-specific decorators on the chart. This can be used for rendering data, showing the cursor, showing the axes, showing tick labels, etc.