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.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop/minitest.yml +2 -2
  3. data/.rubocop/strict.yml +4 -4
  4. data/.rubocop.yml +36 -33
  5. data/CHANGELOG.md +5 -5
  6. data/LICENSE.txt +21 -21
  7. data/README.md +134 -39
  8. data/Rakefile +26 -10
  9. data/exe/autocad +3 -3
  10. data/gemfiles/rubocop.gemfile +2 -1
  11. data/lib/autocad/app.rb +127 -28
  12. data/lib/autocad/arc.rb +3 -0
  13. data/lib/autocad/block.rb +11 -6
  14. data/lib/autocad/block_reference.rb +33 -4
  15. data/lib/autocad/bounding_box.rb +202 -0
  16. data/lib/autocad/dim_style.rb +4 -0
  17. data/lib/autocad/drawing.rb +873 -172
  18. data/lib/autocad/element.rb +217 -25
  19. data/lib/autocad/errors.rb +9 -0
  20. data/lib/autocad/filter.rb +502 -168
  21. data/lib/autocad/layer.rb +129 -41
  22. data/lib/autocad/layout.rb +120 -0
  23. data/lib/autocad/line.rb +154 -55
  24. data/lib/autocad/message_box.rb +95 -95
  25. data/lib/autocad/model.rb +217 -89
  26. data/lib/autocad/mtext.rb +189 -110
  27. data/lib/autocad/plot.rb +45 -0
  28. data/lib/autocad/plot_configuration.rb +372 -0
  29. data/lib/autocad/point.rb +7 -0
  30. data/lib/autocad/point3d.rb +18 -11
  31. data/lib/autocad/pviewport.rb +136 -21
  32. data/lib/autocad/selection_filter.rb +358 -180
  33. data/lib/autocad/selection_set.rb +140 -61
  34. data/lib/autocad/selection_set_adapter.rb +187 -8
  35. data/lib/autocad/spline.rb +27 -0
  36. data/lib/autocad/text.rb +66 -11
  37. data/lib/autocad/text_style.rb +4 -0
  38. data/lib/autocad/version.rb +1 -1
  39. data/lib/autocad/viewport.rb +57 -0
  40. data/lib/autocad.rb +126 -30
  41. data/lib/faa/cleanup.rb +137 -0
  42. data/lib/win32ole_helper.rb +52 -0
  43. data/rbs_collection.lock.yaml +38 -18
  44. data/sig/generated/autocad/app.rbs +278 -251
  45. data/sig/generated/autocad/arc.rbs +6 -3
  46. data/sig/generated/autocad/block.rbs +8 -5
  47. data/sig/generated/autocad/block_reference.rbs +99 -59
  48. data/sig/generated/autocad/bounding_box.rbs +78 -0
  49. data/sig/generated/autocad/dim_style.rbs +6 -0
  50. data/sig/generated/autocad/drawing.rbs +597 -158
  51. data/sig/generated/autocad/element.rbs +233 -166
  52. data/sig/generated/autocad/errors.rbs +29 -23
  53. data/sig/generated/autocad/filter.rbs +388 -60
  54. data/sig/generated/autocad/layer.rbs +76 -19
  55. data/sig/generated/autocad/layout.rbs +64 -0
  56. data/sig/generated/autocad/line.rbs +128 -25
  57. data/sig/generated/autocad/message_box.rbs +81 -81
  58. data/sig/generated/autocad/model.rbs +115 -41
  59. data/sig/generated/autocad/mtext.rbs +123 -0
  60. data/sig/generated/autocad/plot.rbs +26 -0
  61. data/sig/generated/autocad/plot_configuration.rbs +176 -0
  62. data/sig/generated/autocad/point.rbs +7 -0
  63. data/sig/generated/autocad/point3d.rbs +70 -66
  64. data/sig/generated/autocad/pviewport.rbs +64 -0
  65. data/sig/generated/autocad/selection_filter.rbs +226 -50
  66. data/sig/generated/autocad/selection_set.rbs +112 -37
  67. data/sig/generated/autocad/selection_set_adapter.rbs +235 -28
  68. data/sig/generated/autocad/spline.rbs +22 -0
  69. data/sig/generated/autocad/text.rbs +66 -7
  70. data/sig/generated/autocad/text_style.rbs +6 -0
  71. data/sig/generated/autocad/viewport.rbs +19 -2
  72. data/sig/generated/autocad.rbs +140 -68
  73. data/sig/generated/faa/cleanup.rbs +53 -0
  74. data/sig/generated/win32ole_helper.rbs +9 -0
  75. data/sig/prototype/lib/autocad/app.rbs +3 -1
  76. data/sig/prototype/lib/autocad/bounding_box.rbs +15 -0
  77. data/sig/prototype/lib/autocad/drawing.rbs +6 -0
  78. data/sig/prototype/lib/autocad/layer.rbs +5 -0
  79. data/sig/prototype/lib/autocad/viewport.rbs +7 -0
  80. data/sig/prototype/lib/autocad.rbs +1 -1
  81. metadata +29 -5
  82. data/event_handler.log +0 -24
  83. 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 each: () -> untyped
6
-
7
- def coordinates: () -> untyped
8
-
9
- def has_attributes?: () -> untyped
10
-
11
- def name: () -> untyped
12
-
13
- def layout?: () -> untyped
14
-
15
- def attribute_hash: () -> untyped
16
-
17
- def inspect: () -> untyped
18
-
19
- def attributes: () -> untyped
20
- end
21
-
22
- class Attributes
23
- include Enumerable
24
-
25
- attr_reader elements: untyped
26
-
27
- def initialize: (untyped blk, untyped elements) -> untyped
28
-
29
- def update_element: (untyped name, untyped value) -> untyped
30
-
31
- def each: () ?{ (?) -> untyped } -> untyped
32
-
33
- def find_attribute: (untyped name) -> untyped
34
-
35
- def []: (untyped name) -> untyped
36
-
37
- def []=: (untyped name, untyped value) -> untyped
38
-
39
- def keys: () -> untyped
40
-
41
- def values: () -> untyped
42
-
43
- def to_h: () -> untyped
44
-
45
- def inspect: () -> untyped
46
- end
47
-
48
- class Attribute < Element
49
- def write_ole: (untyped value) -> untyped
50
-
51
- def read_ole: (untyped value) -> untyped
52
-
53
- def key: () -> untyped
54
-
55
- def value: () -> untyped
56
-
57
- def inspect: () -> untyped
58
- end
59
- end
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
@@ -0,0 +1,6 @@
1
+ # Generated from lib/autocad/dim_style.rb with RBS::Inline
2
+
3
+ module Autocad
4
+ class DimStyle < Element
5
+ end
6
+ end