File tree Expand file tree Collapse file tree 6 files changed +17
-16
lines changed Expand file tree Collapse file tree 6 files changed +17
-16
lines changed Original file line number Diff line number Diff line change @@ -161,9 +161,9 @@ std::vector<PlotBuilder::BucketSortInfo> PlotBuilder::sortedBuckets(
161161 0.0 ,
162162 !(marker.*buckets.marker_id_get ).label .empty ()
163163 ? std::make_optional (
164- DimensionAxis::mergedLabels (
165- (marker.*buckets.marker_id_get )
166- .label ))
164+ DimensionAxis::mergedLabels (
165+ (marker.*buckets.marker_id_get )
166+ .label ))
167167 : std::nullopt );
168168
169169 it->size += marker.size .getCoord (
@@ -511,7 +511,7 @@ void PlotBuilder::calcLegendAndLabel(const Data::DataTable &dataTable)
511511 markerLabelsUnitPercent
512512 ? " %"
513513 : dataTable.get_series_info (meas->getColIndex (),
514- " unit" )}},
514+ " unit" )}},
515515 ::Anim::String{meas->getColIndex ()}};
516516 }
517517}
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ Chart Chart::def()
266266 {
267267 .position = Anim::Interpolated<AxisLabel::Position>(AxisLabel::Position::min_edge),
268268 .side = Anim::Interpolated<AxisLabel::Side>(AxisLabel::Side::negative),
269- .multiAxis = Anim::Interpolated<AxisLabel::MultiAxis >(AxisLabel::MultiAxis::split )
269+ .multiLevelAxis = Anim::Interpolated<AxisLabel::MultiLevelAxis >(AxisLabel::MultiLevelAxis::flattened )
270270 }
271271 },
272272 .ticks = {
@@ -359,7 +359,7 @@ Chart Chart::def()
359359 {
360360 .position = Anim::Interpolated<AxisLabel::Position>(AxisLabel::Position::min_edge),
361361 .side = Anim::Interpolated<AxisLabel::Side>(AxisLabel::Side::negative),
362- .multiAxis = Anim::Interpolated<AxisLabel::MultiAxis >(AxisLabel::MultiAxis::split )
362+ .multiLevelAxis = Anim::Interpolated<AxisLabel::MultiLevelAxis >(AxisLabel::MultiLevelAxis::flattened )
363363 }
364364 },
365365 .ticks = {
Original file line number Diff line number Diff line change @@ -201,11 +201,11 @@ struct AxisLabelParams
201201
202202 enum class Side : std::uint8_t { positive, negative };
203203
204- enum class MultiAxis : std::uint8_t { split, separate };
204+ enum class MultiLevelAxis : std::uint8_t { flattened, nested };
205205
206206 Param<::Anim::Interpolated<Position>> position;
207207 Param<::Anim::Interpolated<Side>> side;
208- Param<::Anim::Interpolated<MultiAxis >> multiAxis ;
208+ Param<::Anim::Interpolated<MultiLevelAxis >> multiLevelAxis ;
209209};
210210
211211struct AxisLabel : OrientedLabel, AxisLabelParams
Original file line number Diff line number Diff line change @@ -264,9 +264,7 @@ struct Channel
264264
265265template <class T >
266266concept ChannelIdLike = requires (const T &v) {
267- {
268- +v
269- } -> std::same_as<ChannelId>;
267+ { +v } -> std::same_as<ChannelId>;
270268};
271269
272270template <ChannelIdLike T>
Original file line number Diff line number Diff line change @@ -466,15 +466,16 @@ void DrawAxes::drawTitle(Gen::AxisId axisIndex,
466466 -std::numbers::pi / 2.0
467467 * (fades == ::Anim::second
468468 ? !isHorizontal (
469- titleStyle.orientation ->get_or_first (index)
470- .value )
469+ titleStyle.orientation ->get_or_first (index)
470+ .value )
471471 : titleStyle.orientation ->factor (
472- Styles::AxisTitle::Orientation::vertical));
472+ Styles::AxisTitle::Orientation::vertical));
473473
474474 auto orientedSize =
475475 fades == ::Anim::second
476476 ? calcOrientation (
477- titleStyle.orientation ->get_or_first (index).value )
477+ titleStyle.orientation ->get_or_first (index)
478+ .value )
478479 : titleStyle.orientation ->combine (calcOrientation);
479480
480481 auto center = offset * (orientedSize / 2.0 );
@@ -577,7 +578,7 @@ void DrawAxes::drawDimensionLabel(Gen::AxisId axisIndex,
577578 ? labelStyle.side ->get_or_first (index).value
578579 == Styles::AxisLabel::Side::negative
579580 : labelStyle.side ->factor (
580- Styles::AxisLabel::Side::negative);
581+ Styles::AxisLabel::Side::negative);
581582
582583 auto draw = [&,
583584 posDir = coordSys
Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ class DrawAxes : public DrawingContext
6969 Gen::SplitAxis::Parts::const_iterator,
7070 std::ranges::subrange_kind::sized>>
7171 splits;
72+ // Refl::EnumArray<Gen::AxisId, std::vector<Interval>>
73+ // multiLabelAxis;
7274
7375 [[nodiscard]] auto getIntervals (Gen::AxisId axisIndex,
7476 const Math::Range<> &filter = {0.0 , 1.0 }) const
You can’t perform that action at this time.
0 commit comments