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,166 +1,233 @@
|
|
1
|
-
# Generated from lib/autocad/element.rb with RBS::Inline
|
2
|
-
|
3
|
-
class WIN32OLE
|
4
|
-
def
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
def
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
def
|
27
|
-
|
28
|
-
def
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
# @rbs return
|
38
|
-
def
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
def
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
def
|
47
|
-
|
48
|
-
def
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
def
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
def
|
81
|
-
|
82
|
-
def
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
def
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
def
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
def
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
def
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
def
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
end
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
def
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
1
|
+
# Generated from lib/autocad/element.rb with RBS::Inline
|
2
|
+
|
3
|
+
class WIN32OLE
|
4
|
+
def ole_respond_to?: (untyped name) -> untyped
|
5
|
+
|
6
|
+
def to_ole: () -> untyped
|
7
|
+
end
|
8
|
+
|
9
|
+
module Autocad
|
10
|
+
end
|
11
|
+
|
12
|
+
module Autocad
|
13
|
+
module AcadEntity
|
14
|
+
def layer: () -> untyped
|
15
|
+
|
16
|
+
def layer=: (untyped name) -> untyped
|
17
|
+
|
18
|
+
def line_type: () -> untyped
|
19
|
+
|
20
|
+
def line_type=: (untyped name) -> untyped
|
21
|
+
|
22
|
+
def visible?: () -> untyped
|
23
|
+
|
24
|
+
def copy: () -> untyped
|
25
|
+
|
26
|
+
def intersects_with: (untyped obj) -> untyped
|
27
|
+
|
28
|
+
def mirror: () -> untyped
|
29
|
+
|
30
|
+
def move_to: () -> untyped
|
31
|
+
|
32
|
+
def transform_by: (untyped matrix) -> untyped
|
33
|
+
end
|
34
|
+
|
35
|
+
module ElementTrait
|
36
|
+
# Get the parent drawing of this element
|
37
|
+
# @rbs return Drawing?
|
38
|
+
def drawing: () -> Drawing?
|
39
|
+
|
40
|
+
# Check if this element is a paper space viewport
|
41
|
+
# @rbs return bool
|
42
|
+
def pviewport?: () -> bool
|
43
|
+
|
44
|
+
# Check if this element is a block reference
|
45
|
+
# @rbs return bool
|
46
|
+
def block_reference?: () -> bool
|
47
|
+
|
48
|
+
def bounds: () -> untyped
|
49
|
+
|
50
|
+
#
|
51
|
+
#
|
52
|
+
#
|
53
|
+
#
|
54
|
+
# @rbs return bool -- true if ole type is Text
|
55
|
+
# def text?
|
56
|
+
# Check if this element is a text object
|
57
|
+
# @rbs return bool
|
58
|
+
def text?: () -> bool
|
59
|
+
|
60
|
+
# Explode this element into its component parts
|
61
|
+
# @rbs &: (Element) -> void
|
62
|
+
# @rbs return Enumerator[Element]
|
63
|
+
def explode: () { (Element) -> void } -> Enumerator[Element]
|
64
|
+
|
65
|
+
# Check if this element has any tags
|
66
|
+
# @rbs return bool
|
67
|
+
def has_tags?: () -> bool
|
68
|
+
|
69
|
+
# Get the underlying OLE object
|
70
|
+
# @rbs return WIN32OLE
|
71
|
+
def to_ole: () -> WIN32OLE
|
72
|
+
|
73
|
+
# Check if this element is a cell
|
74
|
+
# @rbs return bool
|
75
|
+
def cell?: () -> bool
|
76
|
+
|
77
|
+
# Highlight this element in the drawing
|
78
|
+
# @rbs flag: bool
|
79
|
+
# @rbs return void
|
80
|
+
def highlight: (?bool flag) -> void
|
81
|
+
|
82
|
+
def def: (untyped autocad_id) -> untyped
|
83
|
+
|
84
|
+
# Check if this element is visible
|
85
|
+
# @rbs return bool
|
86
|
+
def visible?: () -> bool
|
87
|
+
|
88
|
+
# Check if this element is a line
|
89
|
+
# @rbs return bool
|
90
|
+
def line?: () -> bool
|
91
|
+
|
92
|
+
# Check if this element is graphical
|
93
|
+
# @rbs return bool
|
94
|
+
def graphical?: () -> bool
|
95
|
+
|
96
|
+
# Get string representation of this element
|
97
|
+
# @rbs return String
|
98
|
+
def inspect: () -> String
|
99
|
+
|
100
|
+
# Get the parent element
|
101
|
+
# @rbs return Element?
|
102
|
+
def parent: () -> Element?
|
103
|
+
|
104
|
+
# Convert record ID to element ID
|
105
|
+
# @rbs id: WIN32OLE_RECORD
|
106
|
+
# @rbs return Integer?
|
107
|
+
def id_from_record: (WIN32OLE_RECORD id) -> Integer?
|
108
|
+
|
109
|
+
# Select this element in the drawing
|
110
|
+
# @rbs return void
|
111
|
+
def select: () -> void
|
112
|
+
|
113
|
+
# Get the AutoCAD object type name
|
114
|
+
# @rbs return String
|
115
|
+
def autocad_type: () -> String
|
116
|
+
|
117
|
+
# Get the model containing this element
|
118
|
+
# @rbs return Model
|
119
|
+
def model: () -> Model
|
120
|
+
end
|
121
|
+
|
122
|
+
class Element
|
123
|
+
include ElementTrait
|
124
|
+
|
125
|
+
def self.convert_item: (untyped ole, untyped app, ?untyped cell) -> untyped
|
126
|
+
|
127
|
+
def self.ole_object?: () -> untyped
|
128
|
+
|
129
|
+
attr_reader ole_obj: untyped
|
130
|
+
|
131
|
+
attr_reader app: untyped
|
132
|
+
|
133
|
+
attr_reader acad_type: untyped
|
134
|
+
|
135
|
+
attr_reader original: untyped
|
136
|
+
|
137
|
+
def initialize: (untyped ole, untyped app, untyped typ, ?untyped cell) -> untyped
|
138
|
+
|
139
|
+
def in_cell?: () -> untyped
|
140
|
+
|
141
|
+
def read_ole: (untyped ole) -> untyped
|
142
|
+
|
143
|
+
def write_ole: (untyped value) -> untyped
|
144
|
+
|
145
|
+
def method_missing: (untyped meth, *untyped) ?{ (?) -> untyped } -> untyped
|
146
|
+
|
147
|
+
def get_property_handler: () -> untyped
|
148
|
+
|
149
|
+
def property_handler: () -> untyped
|
150
|
+
|
151
|
+
def []: (untyped name) -> untyped
|
152
|
+
|
153
|
+
def do_update: (untyped value) -> untyped
|
154
|
+
|
155
|
+
def update: (untyped value) -> untyped
|
156
|
+
|
157
|
+
def updated?: () -> untyped
|
158
|
+
|
159
|
+
def redraw: (?untyped el) -> untyped
|
160
|
+
|
161
|
+
def app_ole_obj: () -> untyped
|
162
|
+
|
163
|
+
def delete: (?regen: untyped) -> untyped
|
164
|
+
|
165
|
+
def clone: (untyped new_insertion_point) -> untyped
|
166
|
+
|
167
|
+
def move_x: (untyped amt) -> untyped
|
168
|
+
|
169
|
+
def move_y: (untyped amt) -> untyped
|
170
|
+
|
171
|
+
def move: (untyped x, untyped y) -> untyped
|
172
|
+
|
173
|
+
def move_ole: (untyped pt1, untyped pt2) -> untyped
|
174
|
+
|
175
|
+
def ole_cell: (untyped ole) -> untyped
|
176
|
+
|
177
|
+
def each_complex: (untyped ole) ?{ (?) -> untyped } -> untyped
|
178
|
+
end
|
179
|
+
|
180
|
+
class App
|
181
|
+
def ole_to_ruby: (untyped ole) -> untyped
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
185
|
+
module Autocad
|
186
|
+
class Arc < Element
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
module Autocad
|
191
|
+
class Ellipse < Element
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
module Autocad
|
196
|
+
class BSplineSurface < Element
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
module Autocad
|
201
|
+
class Linetype < Element
|
202
|
+
CONTINUOUS: ::String
|
203
|
+
|
204
|
+
DASHED: ::String
|
205
|
+
|
206
|
+
CENTER: ::String
|
207
|
+
|
208
|
+
HIDDEN: ::String
|
209
|
+
|
210
|
+
PHANTOM: ::String
|
211
|
+
|
212
|
+
BREAK: ::String
|
213
|
+
|
214
|
+
BORDER: ::String
|
215
|
+
|
216
|
+
DOT2: ::String
|
217
|
+
|
218
|
+
DOTX2: ::String
|
219
|
+
|
220
|
+
DIVIDE: ::String
|
221
|
+
|
222
|
+
TRACKING: ::String
|
223
|
+
|
224
|
+
DASHDOT: ::String
|
225
|
+
|
226
|
+
def name: () -> untyped
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
230
|
+
module Autocad
|
231
|
+
class BSplineCurve < Element
|
232
|
+
end
|
233
|
+
end
|
@@ -1,23 +1,29 @@
|
|
1
|
-
# Generated from lib/autocad/errors.rb with RBS::Inline
|
2
|
-
|
3
|
-
module Autocad
|
4
|
-
Error: untyped
|
5
|
-
|
6
|
-
NonDGNFile: untyped
|
7
|
-
|
8
|
-
class FileNotFound < Error
|
9
|
-
def initialize: (untyped path) -> untyped
|
10
|
-
end
|
11
|
-
|
12
|
-
MultipleUpdateError: untyped
|
13
|
-
|
14
|
-
class DrawingError < Error
|
15
|
-
attr_reader drawing: untyped
|
16
|
-
|
17
|
-
def initialize: (untyped message, untyped drawing) -> untyped
|
18
|
-
end
|
19
|
-
|
20
|
-
class
|
21
|
-
|
22
|
-
|
23
|
-
|
1
|
+
# Generated from lib/autocad/errors.rb with RBS::Inline
|
2
|
+
|
3
|
+
module Autocad
|
4
|
+
Error: untyped
|
5
|
+
|
6
|
+
NonDGNFile: untyped
|
7
|
+
|
8
|
+
class FileNotFound < Error
|
9
|
+
def initialize: (untyped path) -> untyped
|
10
|
+
end
|
11
|
+
|
12
|
+
MultipleUpdateError: untyped
|
13
|
+
|
14
|
+
class DrawingError < Error
|
15
|
+
attr_reader drawing: untyped
|
16
|
+
|
17
|
+
def initialize: (untyped message, untyped drawing) -> untyped
|
18
|
+
end
|
19
|
+
|
20
|
+
class DrawingClose < Error
|
21
|
+
attr_reader drawing_name: untyped
|
22
|
+
|
23
|
+
def initialize: (untyped message, untyped drawing_name) -> untyped
|
24
|
+
end
|
25
|
+
|
26
|
+
class ExistingFile < Error
|
27
|
+
def initialize: (untyped path) -> untyped
|
28
|
+
end
|
29
|
+
end
|