Module: GridGenerator
- Defined in:
- lib/grid_generator.rb,
lib/grid_generator/helper.rb,
lib/grid_generator/scaler.rb,
lib/grid_generator/rotator.rb,
lib/grid_generator/version.rb,
lib/grid_generator/svg/path.rb,
lib/grid_generator/base_line.rb,
lib/grid_generator/svg/style.rb,
lib/grid_generator/cubic/grid.rb,
lib/grid_generator/face_parser.rb,
lib/grid_generator/svg/polygon.rb,
lib/grid_generator/base_element.rb,
lib/grid_generator/pyraminx/face.rb,
lib/grid_generator/rex_cube/grid.rb,
lib/grid_generator/cubic/iso_view.rb,
lib/grid_generator/cubic/top_grid.rb,
lib/grid_generator/dino_cube/grid.rb,
lib/grid_generator/redi_cube/grid.rb,
lib/grid_generator/skewb/top_grid.rb,
lib/grid_generator/skewb/left_grid.rb,
lib/grid_generator/square_one/face.rb,
lib/grid_generator/cubic/front_grid.rb,
lib/grid_generator/cubic/right_grid.rb,
lib/grid_generator/skewb/right_grid.rb,
lib/grid_generator/skewb/skewb_grid.rb,
lib/grid_generator/svg/line_command.rb,
lib/grid_generator/svg/move_command.rb,
lib/grid_generator/svg/path_command.rb,
lib/grid_generator/cubic/facing_grid.rb,
lib/grid_generator/curvy_copter/grid.rb,
lib/grid_generator/rex_cube/top_grid.rb,
lib/grid_generator/svg/close_command.rb,
lib/grid_generator/dino_cube/top_grid.rb,
lib/grid_generator/redi_cube/top_grid.rb,
lib/grid_generator/rex_cube/left_grid.rb,
lib/grid_generator/cubic/bordered_grid.rb,
lib/grid_generator/cubic/units_factory.rb,
lib/grid_generator/dino_cube/left_grid.rb,
lib/grid_generator/redi_cube/left_grid.rb,
lib/grid_generator/rex_cube/right_grid.rb,
lib/grid_generator/cubic/square_factory.rb,
lib/grid_generator/dino_cube/right_grid.rb,
lib/grid_generator/redi_cube/right_grid.rb,
lib/grid_generator/curvy_copter/top_grid.rb,
lib/grid_generator/skewb/element_factory.rb,
lib/grid_generator/svg/quadratic_command.rb,
lib/grid_generator/curvy_copter/left_grid.rb,
lib/grid_generator/square_one_face_parser.rb,
lib/grid_generator/curvy_copter/right_grid.rb,
lib/grid_generator/megaminx/face_projection.rb,
lib/grid_generator/rex_cube/element_factory.rb,
lib/grid_generator/dino_cube/element_factory.rb,
lib/grid_generator/pyraminx/triangle_factory.rb,
lib/grid_generator/redi_cube/element_factory.rb,
lib/grid_generator/skewb/top_element_factory.rb,
lib/grid_generator/skewb/left_element_factory.rb,
lib/grid_generator/square_one/element_factory.rb,
lib/grid_generator/cubic/facing_square_factory.rb,
lib/grid_generator/skewb/right_element_factory.rb,
lib/grid_generator/curvy_copter/element_factory.rb,
lib/grid_generator/rex_cube/top_element_factory.rb,
lib/grid_generator/dino_cube/top_element_factory.rb,
lib/grid_generator/megaminx/face_element_factory.rb,
lib/grid_generator/redi_cube/top_element_factory.rb,
lib/grid_generator/rex_cube/left_element_factory.rb,
lib/grid_generator/dino_cube/left_element_factory.rb,
lib/grid_generator/redi_cube/left_element_factory.rb,
lib/grid_generator/rex_cube/right_element_factory.rb,
lib/grid_generator/dino_cube/right_element_factory.rb,
lib/grid_generator/redi_cube/right_element_factory.rb,
lib/grid_generator/curvy_copter/top_element_factory.rb,
lib/grid_generator/curvy_copter/left_element_factory.rb,
lib/grid_generator/curvy_copter/right_element_factory.rb
Defined Under Namespace
Modules: Cubic, CurvyCopter, DinoCube, Helper, Megaminx, Pyraminx, RediCube, RexCube, Skewb, SquareOne, Svg
Classes: BaseElement, BaseLine, FaceParser, Rotator, Scaler, SquareOneFaceParser
Constant Summary
collapse
- VERSION =
"0.6.7"
Class Method Summary
collapse
Class Method Details
.bordered_grid(args) ⇒ Object
40
41
42
|
# File 'lib/grid_generator.rb', line 40
def self.bordered_grid(args)
Cubic::BorderedGrid.new(**args)
end
|
.curvy_copter_left_grid(args) ⇒ Object
75
76
77
|
# File 'lib/grid_generator.rb', line 75
def self.curvy_copter_left_grid(args)
CurvyCopter::LeftGrid.new(**args)
end
|
.curvy_copter_right_grid(args) ⇒ Object
79
80
81
|
# File 'lib/grid_generator.rb', line 79
def self.curvy_copter_right_grid(args)
CurvyCopter::RightGrid.new(**args)
end
|
.curvy_copter_top_grid(args) ⇒ Object
71
72
73
|
# File 'lib/grid_generator.rb', line 71
def self.curvy_copter_top_grid(args)
CurvyCopter::TopGrid.new(**args)
end
|
.dino_cube_left_grid(args) ⇒ Object
87
88
89
|
# File 'lib/grid_generator.rb', line 87
def self.dino_cube_left_grid(args)
DinoCube::LeftGrid.new(**args)
end
|
.dino_cube_right_grid(args) ⇒ Object
91
92
93
|
# File 'lib/grid_generator.rb', line 91
def self.dino_cube_right_grid(args)
DinoCube::RightGrid.new(**args)
end
|
.dino_cube_top_grid(args) ⇒ Object
83
84
85
|
# File 'lib/grid_generator.rb', line 83
def self.dino_cube_top_grid(args)
DinoCube::TopGrid.new(**args)
end
|
.facing_grid(args) ⇒ Object
36
37
38
|
# File 'lib/grid_generator.rb', line 36
def self.facing_grid(args)
Cubic::FacingGrid.new(**args)
end
|
.iso_view(args) ⇒ Object
32
33
34
|
# File 'lib/grid_generator.rb', line 32
def self.iso_view(args)
Cubic::IsoView.new(**args)
end
|
.megaminx_face_projection(args) ⇒ Object
127
128
129
|
# File 'lib/grid_generator.rb', line 127
def self.megaminx_face_projection(args)
Megaminx::FaceProjection.new(**args)
end
|
.pyraminx_face(args) ⇒ Object
123
124
125
|
# File 'lib/grid_generator.rb', line 123
def self.pyraminx_face(args)
Pyraminx::Face.new(**args)
end
|
.redi_cube_left_grid(args) ⇒ Object
99
100
101
|
# File 'lib/grid_generator.rb', line 99
def self.redi_cube_left_grid(args)
RediCube::LeftGrid.new(**args)
end
|
.redi_cube_right_grid(args) ⇒ Object
103
104
105
|
# File 'lib/grid_generator.rb', line 103
def self.redi_cube_right_grid(args)
RediCube::RightGrid.new(**args)
end
|
.redi_cube_top_grid(args) ⇒ Object
95
96
97
|
# File 'lib/grid_generator.rb', line 95
def self.redi_cube_top_grid(args)
RediCube::TopGrid.new(**args)
end
|
.rex_cube_left_grid(args) ⇒ Object
111
112
113
|
# File 'lib/grid_generator.rb', line 111
def self.rex_cube_left_grid(args)
RexCube::LeftGrid.new(**args)
end
|
.rex_cube_right_grid(args) ⇒ Object
115
116
117
|
# File 'lib/grid_generator.rb', line 115
def self.rex_cube_right_grid(args)
RexCube::RightGrid.new(**args)
end
|
.rex_cube_top_grid(args) ⇒ Object
107
108
109
|
# File 'lib/grid_generator.rb', line 107
def self.rex_cube_top_grid(args)
RexCube::TopGrid.new(**args)
end
|
.skewb_left_grid(args) ⇒ Object
63
64
65
|
# File 'lib/grid_generator.rb', line 63
def self.skewb_left_grid(args)
Skewb::LeftGrid.new(**args)
end
|
.skewb_right_grid(args) ⇒ Object
67
68
69
|
# File 'lib/grid_generator.rb', line 67
def self.skewb_right_grid(args)
Skewb::RightGrid.new(**args)
end
|
.skewb_top_grid(args) ⇒ Object
59
60
61
|
# File 'lib/grid_generator.rb', line 59
def self.skewb_top_grid(args)
Skewb::TopGrid.new(**args)
end
|
.square(args) ⇒ Object
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# File 'lib/grid_generator.rb', line 44
def self.square(args)
width_unit = GridGenerator::Cubic::UnitsFactory.new(side: args[:side], type: :width, units: args[:units]).build
height_unit = GridGenerator::Cubic::UnitsFactory.new(side: args[:side], type: :height, units: args[:units]).build
offset_unit = GridGenerator::Cubic::UnitsFactory.new(side: args[:side], type: :offset, units: args[:units]).build
GridGenerator::Cubic::SquareFactory.new(
x: args[:x],
y: args[:y],
width_unit: width_unit,
height_unit: height_unit,
offset_unit: offset_unit,
face: args[:face]
).build
end
|
.square_one_face(args) ⇒ Object
119
120
121
|
# File 'lib/grid_generator.rb', line 119
def self.square_one_face(args)
SquareOne::Face.new(**args)
end
|