MCPcopy Create free account
hub / github.com/angular-rust/ux-charts / create_entity

Method create_entity

src/radar.rs:623–650  ·  view source on GitHub ↗
(
        &self,
        channel_index: usize,
        entity_index: usize,
        value: Option<D>,
        color: Color,
        highlight_color: Color,
    )

Source from the content-addressed store, hash-verified

621 }
622
623 fn create_entity(
624 &self,
625 channel_index: usize,
626 entity_index: usize,
627 value: Option<D>,
628 color: Color,
629 highlight_color: Color,
630 ) -> PolarPoint<D> {
631 let props = self.props.borrow();
632 let angle = self.get_angle(entity_index);
633 let point_radius = self.base.options.channel.markers.size as f64;
634 let radius = self.value2radius(value);
635
636 PolarPoint {
637 index: entity_index,
638 value,
639 old_value: None,
640 color,
641 highlight_color,
642 center: props.center,
643 old_radius: 0.,
644 old_angle: angle,
645 old_point_radius: 0.,
646 radius,
647 angle,
648 point_radius,
649 }
650 }
651
652 fn create_channels(&self, start: usize, end: usize) {
653 let mut start = start;

Callers 1

create_entitiesMethod · 0.45

Calls 2

get_angleMethod · 0.80
value2radiusMethod · 0.80

Tested by

no test coverage detected