class Rubyvis::Layout::Partition::Fill

A variant of partition layout that is space-filling. The meaning of the exported mark prototypes changes slightly in the space-filling implementation:<ul>

<li>node - for rendering nodes; typically a {@link pv.Bar} for non-radial orientations, and a {@link pv.Wedge} for radial orientations.

<p><li>link - unsupported; undefined. Links are encoded implicitly in the arrangement of the space-filling nodes.

<p><li>label - for rendering node labels; typically a Rubyvis::Label.

</ul>For more details on how to use this layout, see {@link pv.Layout.Partition}.

@extends pv.Layout.Partition

Public Class Methods

defaults() click to toggle source
# File lib/rubyvis/layout/partition.rb, line 220
def self.defaults
  Rubyvis::Layout::Partition::Fill.new.mark_extend(Rubyvis::Layout::Partition.defaults)
end
new() click to toggle source

Constructs a new, empty space-filling partition layout. Layouts are not typically constructed directly; instead, they are added to an existing panel via {@link Rubyvis::Mark#add}.

# File lib/rubyvis/layout/partition.rb, line 211
def initialize
  super
  fill_constructor
end

Public Instance Methods

build_implied(s) click to toggle source
# File lib/rubyvis/layout/partition.rb, line 215
def build_implied(s)
  return nil if partition_build_implied(s)
  fill_build_implied(s)
end