autocad 0.4.6 → 0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop/minitest.yml +2 -2
- data/.rubocop/strict.yml +4 -4
- data/.rubocop.yml +36 -33
- data/CHANGELOG.md +5 -5
- data/LICENSE.txt +21 -21
- data/README.md +134 -39
- data/Rakefile +26 -10
- data/exe/autocad +3 -3
- data/gemfiles/rubocop.gemfile +2 -1
- data/lib/autocad/app.rb +127 -28
- data/lib/autocad/arc.rb +3 -0
- data/lib/autocad/block.rb +11 -6
- data/lib/autocad/block_reference.rb +33 -4
- data/lib/autocad/bounding_box.rb +202 -0
- data/lib/autocad/dim_style.rb +4 -0
- data/lib/autocad/drawing.rb +873 -172
- data/lib/autocad/element.rb +217 -25
- data/lib/autocad/errors.rb +9 -0
- data/lib/autocad/filter.rb +502 -168
- data/lib/autocad/layer.rb +129 -41
- data/lib/autocad/layout.rb +120 -0
- data/lib/autocad/line.rb +154 -55
- data/lib/autocad/message_box.rb +95 -95
- data/lib/autocad/model.rb +217 -89
- data/lib/autocad/mtext.rb +189 -110
- data/lib/autocad/plot.rb +45 -0
- data/lib/autocad/plot_configuration.rb +372 -0
- data/lib/autocad/point.rb +7 -0
- data/lib/autocad/point3d.rb +18 -11
- data/lib/autocad/pviewport.rb +136 -21
- data/lib/autocad/selection_filter.rb +358 -180
- data/lib/autocad/selection_set.rb +140 -61
- data/lib/autocad/selection_set_adapter.rb +187 -8
- data/lib/autocad/spline.rb +27 -0
- data/lib/autocad/text.rb +66 -11
- data/lib/autocad/text_style.rb +4 -0
- data/lib/autocad/version.rb +1 -1
- data/lib/autocad/viewport.rb +57 -0
- data/lib/autocad.rb +126 -30
- data/lib/faa/cleanup.rb +137 -0
- data/lib/win32ole_helper.rb +52 -0
- data/rbs_collection.lock.yaml +38 -18
- data/sig/generated/autocad/app.rbs +278 -251
- data/sig/generated/autocad/arc.rbs +6 -3
- data/sig/generated/autocad/block.rbs +8 -5
- data/sig/generated/autocad/block_reference.rbs +99 -59
- data/sig/generated/autocad/bounding_box.rbs +78 -0
- data/sig/generated/autocad/dim_style.rbs +6 -0
- data/sig/generated/autocad/drawing.rbs +597 -158
- data/sig/generated/autocad/element.rbs +233 -166
- data/sig/generated/autocad/errors.rbs +29 -23
- data/sig/generated/autocad/filter.rbs +388 -60
- data/sig/generated/autocad/layer.rbs +76 -19
- data/sig/generated/autocad/layout.rbs +64 -0
- data/sig/generated/autocad/line.rbs +128 -25
- data/sig/generated/autocad/message_box.rbs +81 -81
- data/sig/generated/autocad/model.rbs +115 -41
- data/sig/generated/autocad/mtext.rbs +123 -0
- data/sig/generated/autocad/plot.rbs +26 -0
- data/sig/generated/autocad/plot_configuration.rbs +176 -0
- data/sig/generated/autocad/point.rbs +7 -0
- data/sig/generated/autocad/point3d.rbs +70 -66
- data/sig/generated/autocad/pviewport.rbs +64 -0
- data/sig/generated/autocad/selection_filter.rbs +226 -50
- data/sig/generated/autocad/selection_set.rbs +112 -37
- data/sig/generated/autocad/selection_set_adapter.rbs +235 -28
- data/sig/generated/autocad/spline.rbs +22 -0
- data/sig/generated/autocad/text.rbs +66 -7
- data/sig/generated/autocad/text_style.rbs +6 -0
- data/sig/generated/autocad/viewport.rbs +19 -2
- data/sig/generated/autocad.rbs +140 -68
- data/sig/generated/faa/cleanup.rbs +53 -0
- data/sig/generated/win32ole_helper.rbs +9 -0
- data/sig/prototype/lib/autocad/app.rbs +3 -1
- data/sig/prototype/lib/autocad/bounding_box.rbs +15 -0
- data/sig/prototype/lib/autocad/drawing.rbs +6 -0
- data/sig/prototype/lib/autocad/layer.rbs +5 -0
- data/sig/prototype/lib/autocad/viewport.rbs +7 -0
- data/sig/prototype/lib/autocad.rbs +1 -1
- metadata +29 -5
- data/event_handler.log +0 -24
- data/sig/generated/autocad/text_node.rbs +0 -37
@@ -1,59 +1,99 @@
|
|
1
|
-
# Generated from lib/autocad/block_reference.rb with RBS::Inline
|
2
|
-
|
3
|
-
module Autocad
|
4
|
-
class BlockReference < Element
|
5
|
-
def
|
6
|
-
|
7
|
-
def
|
8
|
-
|
9
|
-
def
|
10
|
-
|
11
|
-
def
|
12
|
-
|
13
|
-
def
|
14
|
-
|
15
|
-
def
|
16
|
-
|
17
|
-
def
|
18
|
-
|
19
|
-
def
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
def
|
28
|
-
|
29
|
-
def
|
30
|
-
|
31
|
-
def
|
32
|
-
|
33
|
-
def
|
34
|
-
|
35
|
-
def
|
36
|
-
|
37
|
-
def
|
38
|
-
|
39
|
-
def
|
40
|
-
|
41
|
-
def
|
42
|
-
|
43
|
-
def
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
1
|
+
# Generated from lib/autocad/block_reference.rb with RBS::Inline
|
2
|
+
|
3
|
+
module Autocad
|
4
|
+
class BlockReference < Element
|
5
|
+
def block_reference?: () -> untyped
|
6
|
+
|
7
|
+
def explode: () -> untyped
|
8
|
+
|
9
|
+
def each: () -> untyped
|
10
|
+
|
11
|
+
def external?: () -> untyped
|
12
|
+
|
13
|
+
def get_block_extents: () -> untyped
|
14
|
+
|
15
|
+
def insertion_point: () -> untyped
|
16
|
+
|
17
|
+
def dynamic?: () -> untyped
|
18
|
+
|
19
|
+
def has_attributes?: () -> untyped
|
20
|
+
|
21
|
+
def name: () -> untyped
|
22
|
+
|
23
|
+
def scale_by: (untyped amt) -> untyped
|
24
|
+
|
25
|
+
def x_scale_factor: () -> untyped
|
26
|
+
|
27
|
+
def x_effective_scale_factor: () -> untyped
|
28
|
+
|
29
|
+
def y_scale_factor: () -> untyped
|
30
|
+
|
31
|
+
def y_effective_scale_factor: () -> untyped
|
32
|
+
|
33
|
+
def z_scale_factor: () -> untyped
|
34
|
+
|
35
|
+
def z_effective_scale_factor: () -> untyped
|
36
|
+
|
37
|
+
def layout?: () -> untyped
|
38
|
+
|
39
|
+
def attribute_hash: () -> untyped
|
40
|
+
|
41
|
+
def inspect: () -> untyped
|
42
|
+
|
43
|
+
def attributes: () -> untyped
|
44
|
+
end
|
45
|
+
|
46
|
+
class ExternalReference < BlockReference
|
47
|
+
def external?: () -> untyped
|
48
|
+
|
49
|
+
# @rbs return Pathname -- the path of the external reference
|
50
|
+
def path: () -> Pathname
|
51
|
+
|
52
|
+
def ins_units: () -> untyped
|
53
|
+
|
54
|
+
def ins_units_factor: () -> untyped
|
55
|
+
|
56
|
+
def inspect: () -> untyped
|
57
|
+
end
|
58
|
+
|
59
|
+
class Attributes
|
60
|
+
include Enumerable
|
61
|
+
|
62
|
+
attr_reader elements: untyped
|
63
|
+
|
64
|
+
def initialize: (untyped blk, untyped elements) -> untyped
|
65
|
+
|
66
|
+
def update_element: (untyped name, untyped value) -> untyped
|
67
|
+
|
68
|
+
def each: () ?{ (?) -> untyped } -> untyped
|
69
|
+
|
70
|
+
def find_attribute: (untyped name) -> untyped
|
71
|
+
|
72
|
+
def []: (untyped name) -> untyped
|
73
|
+
|
74
|
+
def []=: (untyped name, untyped value) -> untyped
|
75
|
+
|
76
|
+
def keys: () -> untyped
|
77
|
+
|
78
|
+
def values: () -> untyped
|
79
|
+
|
80
|
+
def to_h: () -> untyped
|
81
|
+
|
82
|
+
def inspect: () -> untyped
|
83
|
+
end
|
84
|
+
|
85
|
+
class AttributeReference < Element
|
86
|
+
# @rbs return bool -- is the text multiline
|
87
|
+
def mtext?: () -> bool
|
88
|
+
|
89
|
+
def write_ole: (untyped value) -> untyped
|
90
|
+
|
91
|
+
def read_ole: (untyped value) -> untyped
|
92
|
+
|
93
|
+
def key: () -> untyped
|
94
|
+
|
95
|
+
def value: () -> untyped
|
96
|
+
|
97
|
+
def inspect: () -> untyped
|
98
|
+
end
|
99
|
+
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
# Generated from lib/autocad/bounding_box.rb with RBS::Inline
|
2
|
+
|
3
|
+
module Autocad
|
4
|
+
# A BoundingBox represents a bounding box around a picture.
|
5
|
+
#
|
6
|
+
# A bounding box also defines a local coordinate system for a picture. The
|
7
|
+
# bounding box must contain the origin of the coordinate system. However the
|
8
|
+
# origin need not be centered within the box.
|
9
|
+
#
|
10
|
+
# No particular guarantees are made about the tightness of the bounding box,
|
11
|
+
# though it can assumed to be reasonably tight.
|
12
|
+
class BoundingBox
|
13
|
+
def self.empty: () -> untyped
|
14
|
+
|
15
|
+
# Create a BoundingBox with the given width and height and
|
16
|
+
# the origin centered within the box.
|
17
|
+
def self.centered: (untyped width, untyped height) -> untyped
|
18
|
+
|
19
|
+
# Create a BoundingBox from minimum and maximum points
|
20
|
+
def self.from_min_max: (untyped min_pt, untyped max_pt) -> untyped
|
21
|
+
|
22
|
+
attr_reader left: untyped
|
23
|
+
|
24
|
+
attr_reader top: untyped
|
25
|
+
|
26
|
+
attr_reader right: untyped
|
27
|
+
|
28
|
+
attr_reader bottom: untyped
|
29
|
+
|
30
|
+
def initialize: (untyped left, untyped top, untyped right, untyped bottom) -> untyped
|
31
|
+
|
32
|
+
def hash: () -> untyped
|
33
|
+
|
34
|
+
def eql?: (untyped other) -> untyped
|
35
|
+
|
36
|
+
def ==: (untyped other) -> untyped
|
37
|
+
|
38
|
+
def upper_right: () -> untyped
|
39
|
+
|
40
|
+
def lower_left: () -> untyped
|
41
|
+
|
42
|
+
def center: () -> untyped
|
43
|
+
|
44
|
+
def contains?: (untyped pt) -> untyped
|
45
|
+
|
46
|
+
def width: () -> untyped
|
47
|
+
|
48
|
+
def height: () -> untyped
|
49
|
+
|
50
|
+
def on: (untyped other) -> untyped
|
51
|
+
|
52
|
+
def beside: (untyped other) -> untyped
|
53
|
+
|
54
|
+
def above: (untyped other) -> untyped
|
55
|
+
|
56
|
+
# Evaluate the landmark relative to the origin of this bounding box,
|
57
|
+
# returning the location described by the landmark.
|
58
|
+
def eval: (untyped landmark) -> untyped
|
59
|
+
|
60
|
+
def at: (untyped point) -> untyped
|
61
|
+
|
62
|
+
def at_landmark: (untyped landmark) -> untyped
|
63
|
+
|
64
|
+
def origin_at: (untyped point) -> untyped
|
65
|
+
|
66
|
+
def origin_at_landmark: (untyped landmark) -> untyped
|
67
|
+
|
68
|
+
# Expand bounding box to enclose the given Point
|
69
|
+
def enclose: (untyped point) -> untyped
|
70
|
+
|
71
|
+
def scale_to_fit: (untyped bb) -> untyped
|
72
|
+
|
73
|
+
# Add expansion to all sides of this bounding box
|
74
|
+
def expand: (untyped expansion) -> untyped
|
75
|
+
|
76
|
+
def transform: (untyped transform) -> untyped
|
77
|
+
end
|
78
|
+
end
|