# File 'lib/axlsx/util/validators.rb', line 114defself.validate_content_type(v)
- RestrictionValidator.validate:content_type,[TABLE_CT,WORKBOOK_CT,APP_CT,RELS_CT,STYLES_CT,XML_CT,WORKSHEET_CT,SHARED_STRINGS_CT,CORE_CT,CHART_CT,DRAWING_CT],v
+ RestrictionValidator.validate:content_type,[TABLE_CT,WORKBOOK_CT,APP_CT,RELS_CT,STYLES_CT,XML_CT,WORKSHEET_CT,SHARED_STRINGS_CT,CORE_CT,CHART_CT,JPEG_CT,GIF_CT,PNG_CT,DRAWING_CT],vend
@@ -2126,7 +2270,7 @@ The value validated
# File 'lib/axlsx/util/validators.rb', line 121defself.validate_relationship_type(v)
- RestrictionValidator.validate:relationship_type,[XML_NS_R,TABLE_R,WORKBOOK_R,WORKSHEET_R,APP_R,RELS_R,CORE_R,STYLES_R,CHART_R,DRAWING_R],v
+ RestrictionValidator.validate:relationship_type,[XML_NS_R,TABLE_R,WORKBOOK_R,WORKSHEET_R,APP_R,RELS_R,CORE_R,STYLES_R,CHART_R,DRAWING_R,IMAGE_R],vend
@@ -2434,7 +2578,7 @@ The value validated
diff --git a/doc/Axlsx/App.html b/doc/Axlsx/App.html
index c7e072d2..90816fde 100644
--- a/doc/Axlsx/App.html
+++ b/doc/Axlsx/App.html
@@ -2631,7 +2631,7 @@ The document as a string
diff --git a/doc/Axlsx/Axis.html b/doc/Axlsx/Axis.html
index f999a62c..5d2cfb3a 100644
--- a/doc/Axlsx/Axis.html
+++ b/doc/Axlsx/Axis.html
@@ -1064,7 +1064,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Bar3DChart.html b/doc/Axlsx/Bar3DChart.html
index adc2e51e..5c6ba596 100644
--- a/doc/Axlsx/Bar3DChart.html
+++ b/doc/Axlsx/Bar3DChart.html
@@ -1171,7 +1171,7 @@ Serializes the bar chart
diff --git a/doc/Axlsx/BarSeries.html b/doc/Axlsx/BarSeries.html
index 6528def1..287b4f9d 100644
--- a/doc/Axlsx/BarSeries.html
+++ b/doc/Axlsx/BarSeries.html
@@ -697,7 +697,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Border.html b/doc/Axlsx/Border.html
index 259897a0..49db8f1b 100644
--- a/doc/Axlsx/Border.html
+++ b/doc/Axlsx/Border.html
@@ -766,7 +766,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/BorderPr.html b/doc/Axlsx/BorderPr.html
index e199b368..1f0f3d86 100644
--- a/doc/Axlsx/BorderPr.html
+++ b/doc/Axlsx/BorderPr.html
@@ -700,7 +700,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/CatAxis.html b/doc/Axlsx/CatAxis.html
index 4f5b14cf..e12cfcf2 100644
--- a/doc/Axlsx/CatAxis.html
+++ b/doc/Axlsx/CatAxis.html
@@ -760,7 +760,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/CatAxisData.html b/doc/Axlsx/CatAxisData.html
index 46378225..8fb3726a 100644
--- a/doc/Axlsx/CatAxisData.html
+++ b/doc/Axlsx/CatAxisData.html
@@ -253,7 +253,8 @@ typed list of cells.
7
8
9
-10
+10
+11
# File 'lib/axlsx/drawing/cat_axis_data.rb', line 7
@@ -261,6 +262,7 @@ typed list of cells.
definitialize(data=[])superObject@list.concatdataifdata.is_a?(Array)
+ data.each{|i|@list<<i}ifdata.is_a?(SimpleTypedList)end
@@ -344,7 +346,6 @@ The document builder instance this objects xml will be added to.
-15
16
17
18
@@ -359,10 +360,11 @@ The document builder instance this objects xml will be added to.
27
28
29
-30
+30
+31
-
# File 'lib/axlsx/drawing/cat_axis_data.rb', line 15
+
# File 'lib/axlsx/drawing/cat_axis_data.rb', line 16defto_xml(xml)xml.send('c:cat'){
@@ -391,7 +393,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Cell.html b/doc/Axlsx/Cell.html
index 97c47170..1519044e 100644
--- a/doc/Axlsx/Cell.html
+++ b/doc/Axlsx/Cell.html
@@ -1614,7 +1614,7 @@ xml text for the cell
diff --git a/doc/Axlsx/CellAlignment.html b/doc/Axlsx/CellAlignment.html
index 5bdcf895..6e2a8155 100644
--- a/doc/Axlsx/CellAlignment.html
+++ b/doc/Axlsx/CellAlignment.html
@@ -1238,7 +1238,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/CellProtection.html b/doc/Axlsx/CellProtection.html
index 669e70ef..6937b970 100644
--- a/doc/Axlsx/CellProtection.html
+++ b/doc/Axlsx/CellProtection.html
@@ -556,7 +556,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/CellStyle.html b/doc/Axlsx/CellStyle.html
index 6f8eec14..a02f0170 100644
--- a/doc/Axlsx/CellStyle.html
+++ b/doc/Axlsx/CellStyle.html
@@ -940,7 +940,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Chart.html b/doc/Axlsx/Chart.html
index 1260ec43..c5dc9212 100644
--- a/doc/Axlsx/Chart.html
+++ b/doc/Axlsx/Chart.html
@@ -1290,13 +1290,13 @@ Adds a new series to the chart’s series collection.
+100
101
102
-103
-104
+103
-
# File 'lib/axlsx/drawing/chart.rb', line 101
+
# File 'lib/axlsx/drawing/chart.rb', line 100defadd_series(options={})@series_type.new(self,options)
@@ -1385,13 +1385,13 @@ The row
+148
149
150
-151
-152
+151
-
# File 'lib/axlsx/drawing/chart.rb', line 149
+
# File 'lib/axlsx/drawing/chart.rb', line 148defend_at(x,y)@graphic_frame.anchor.to.col=x
@@ -1438,12 +1438,12 @@ markers
+93
94
-95
-96
+95
-
# File 'lib/axlsx/drawing/chart.rb', line 94
+
# File 'lib/axlsx/drawing/chart.rb', line 93deffrom@graphic_frame.anchor.from
@@ -1532,13 +1532,13 @@ The row
+137
138
139
-140
-141
+140
-
# File 'lib/axlsx/drawing/chart.rb', line 138
+
# File 'lib/axlsx/drawing/chart.rb', line 137defstart_at(x,y)@graphic_frame.anchor.from.col=x
@@ -1626,6 +1626,7 @@ Chart Serialization serializes the chart
# File 'lib/axlsx/drawing/chart.rb', line 107defto_xmlbuilder=Nokogiri::XML::Builder.new(:encoding=>ENCODING)do|xml|
@@ -1687,7 +1687,7 @@ Chart Serialization serializes the chart
diff --git a/doc/Axlsx/Color.html b/doc/Axlsx/Color.html
index 04ffc461..45f37f05 100644
--- a/doc/Axlsx/Color.html
+++ b/doc/Axlsx/Color.html
@@ -656,7 +656,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/ContentType.html b/doc/Axlsx/ContentType.html
index 5f853af7..0dc84a68 100644
--- a/doc/Axlsx/ContentType.html
+++ b/doc/Axlsx/ContentType.html
@@ -331,7 +331,7 @@ The document as a string.
diff --git a/doc/Axlsx/Core.html b/doc/Axlsx/Core.html
index 5ad9e059..494f3853 100644
--- a/doc/Axlsx/Core.html
+++ b/doc/Axlsx/Core.html
@@ -456,7 +456,7 @@ time when this method is called.
diff --git a/doc/Axlsx/DataTypeValidator.html b/doc/Axlsx/DataTypeValidator.html
index ed694a90..1847c874 100644
--- a/doc/Axlsx/DataTypeValidator.html
+++ b/doc/Axlsx/DataTypeValidator.html
@@ -315,7 +315,7 @@ types or the block passed returns false
diff --git a/doc/Axlsx/Default.html b/doc/Axlsx/Default.html
index 3f689e96..e1f5c386 100644
--- a/doc/Axlsx/Default.html
+++ b/doc/Axlsx/Default.html
@@ -566,7 +566,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Drawing.html b/doc/Axlsx/Drawing.html
index 26f3f3fa..8f899d2a 100644
--- a/doc/Axlsx/Drawing.html
+++ b/doc/Axlsx/Drawing.html
@@ -183,6 +183,34 @@ An array of charts that are associated with this drawing’s anchors.
+
+
+
+
@@ -488,21 +540,21 @@ The worksheet that owns this drawing
-71
-72
-73
-74
-75
-76
+80
+81
+82
+83
+84
+85
-
# File 'lib/axlsx/drawing/drawing.rb', line 71
+
# File 'lib/axlsx/drawing/drawing.rb', line 80definitialize(worksheet)DataTypeValidator.validate"Drawing.worksheet",Worksheet,worksheet@worksheet=worksheet@worksheet.workbook.drawings<<self
- @anchors=SimpleTypedList.newTwoCellAnchor
+ @anchors=SimpleTypedList.new[TwoCellAnchor,OneCellAnchor]end
@@ -557,12 +609,12 @@ in this version
-43
-44
-45
+48
+49
+50
-
# File 'lib/axlsx/drawing/drawing.rb', line 43
+
# File 'lib/axlsx/drawing/drawing.rb', line 48defanchors@anchors
@@ -614,15 +666,77 @@ An array of charts that are associated with this drawing’s anchors
@@ -853,12 +971,12 @@ The relational part name for this drawing
-63
-64
-65
+72
+73
+74
-
# File 'lib/axlsx/drawing/drawing.rb', line 63
+
# File 'lib/axlsx/drawing/drawing.rb', line 72defrels_pn"#{DRAWING_RELS_PN % (index+1)}"
@@ -910,12 +1028,12 @@ The relation reference id for this drawing
-55
-56
-57
+64
+65
+66
-
# File 'lib/axlsx/drawing/drawing.rb', line 55
+
# File 'lib/axlsx/drawing/drawing.rb', line 64defrId"rId#{index+1}"
@@ -967,12 +1085,12 @@ The worksheet that owns the drawing
-38
-39
-40
+43
+44
+45
-
# File 'lib/axlsx/drawing/drawing.rb', line 38
+
# File 'lib/axlsx/drawing/drawing.rb', line 43defworksheet@worksheet
@@ -1032,17 +1150,77 @@ Adds a chart to the drawing.
# File 'lib/axlsx/drawing/drawing.rb', line 142defto_xmlbuilder=Nokogiri::XML::Builder.new(:encoding=>ENCODING)do|xml|
@@ -1119,7 +1297,7 @@ Serializes the drawing
diff --git a/doc/Axlsx/Fill.html b/doc/Axlsx/Fill.html
index 298476de..15e908a7 100644
--- a/doc/Axlsx/Fill.html
+++ b/doc/Axlsx/Fill.html
@@ -451,7 +451,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Font.html b/doc/Axlsx/Font.html
index f5afba14..d67be582 100644
--- a/doc/Axlsx/Font.html
+++ b/doc/Axlsx/Font.html
@@ -1545,7 +1545,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/GradientFill.html b/doc/Axlsx/GradientFill.html
index 503858e2..162e7f63 100644
--- a/doc/Axlsx/GradientFill.html
+++ b/doc/Axlsx/GradientFill.html
@@ -1017,7 +1017,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/GradientStop.html b/doc/Axlsx/GradientStop.html
index 3e172370..455d8b1f 100644
--- a/doc/Axlsx/GradientStop.html
+++ b/doc/Axlsx/GradientStop.html
@@ -517,7 +517,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/GraphicFrame.html b/doc/Axlsx/GraphicFrame.html
index 6a3d3052..e9c4d8bc 100644
--- a/doc/Axlsx/GraphicFrame.html
+++ b/doc/Axlsx/GraphicFrame.html
@@ -326,14 +326,14 @@ Creates a new GraphicFrame object
+22
+23
24
25
-26
-27
-28
+26
-
# File 'lib/axlsx/drawing/graphic_frame.rb', line 24
+
# File 'lib/axlsx/drawing/graphic_frame.rb', line 22definitialize(anchor,chart_type,options)DataTypeValidator.validate"Drawing.chart_type",Chart,chart_type
@@ -392,12 +392,12 @@ A anchor that holds this frame
-15
-16
-17
+13
+14
+15
-
# File 'lib/axlsx/drawing/graphic_frame.rb', line 15
+
# File 'lib/axlsx/drawing/graphic_frame.rb', line 13defanchor@anchor
@@ -449,12 +449,12 @@ A reference to the chart object associated with this frame
-11
-12
-13
+9
+10
+11
-
# File 'lib/axlsx/drawing/graphic_frame.rb', line 11
+
# File 'lib/axlsx/drawing/graphic_frame.rb', line 9defchart@chart
@@ -506,12 +506,12 @@ The relationship id for this graphic
-19
-20
-21
+17
+18
+19
-
# File 'lib/axlsx/drawing/graphic_frame.rb', line 19
+
# File 'lib/axlsx/drawing/graphic_frame.rb', line 17defrId"rId#{@anchor.index+1}"
@@ -588,6 +588,8 @@ The document builder instance this objects xml will be added to.
+35
+36
37
38
39
@@ -603,12 +605,10 @@ The document builder instance this objects xml will be added to.
49
50
51
-52
-53
-54
+52
-
# File 'lib/axlsx/drawing/graphic_frame.rb', line 37
+
# File 'lib/axlsx/drawing/graphic_frame.rb', line 35defto_xml(xml)xml.send('xdr:graphicFrame'){
@@ -639,7 +639,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Line3DChart.html b/doc/Axlsx/Line3DChart.html
index 3c39226b..8d4efe8d 100644
--- a/doc/Axlsx/Line3DChart.html
+++ b/doc/Axlsx/Line3DChart.html
@@ -993,7 +993,7 @@ Serializes the bar chart
diff --git a/doc/Axlsx/LineSeries.html b/doc/Axlsx/LineSeries.html
index 4e0ca266..bfc616d6 100644
--- a/doc/Axlsx/LineSeries.html
+++ b/doc/Axlsx/LineSeries.html
@@ -251,8 +251,7 @@ Creates a new series.
-Serializes the series TODO create series_cat and series_val classes as this
-serialization is duplicated.
+Serializes the series.
@@ -514,8 +513,7 @@ The labels for this series.
-Serializes the series TODO create series_cat and series_val classes as this
-serialization is duplicated
+Serializes the series
@@ -564,15 +562,15 @@ The document builder instance this objects xml will be added to.
+29
30
31
32
33
-34
-35
+34
-
# File 'lib/axlsx/drawing/line_series.rb', line 30
+
# File 'lib/axlsx/drawing/line_series.rb', line 29defto_xml(xml)super(xml)do|xml|
@@ -591,7 +589,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Marker.html b/doc/Axlsx/Marker.html
index aaa0ffd7..ff00dfd9 100644
--- a/doc/Axlsx/Marker.html
+++ b/doc/Axlsx/Marker.html
@@ -848,7 +848,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/NumFmt.html b/doc/Axlsx/NumFmt.html
index f82acc34..903ba32d 100644
--- a/doc/Axlsx/NumFmt.html
+++ b/doc/Axlsx/NumFmt.html
@@ -553,7 +553,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/OneCellAnchor.html b/doc/Axlsx/OneCellAnchor.html
new file mode 100644
index 00000000..bbc68665
--- /dev/null
+++ b/doc/Axlsx/OneCellAnchor.html
@@ -0,0 +1,988 @@
+
+
+
+
+
+ Class: Axlsx::OneCellAnchor
+
+ — Documentation by YARD 0.7.3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/doc/Axlsx/Override.html b/doc/Axlsx/Override.html
index 41bc5195..89360a19 100644
--- a/doc/Axlsx/Override.html
+++ b/doc/Axlsx/Override.html
@@ -559,7 +559,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Package.html b/doc/Axlsx/Package.html
index ca431570..a28cf133 100644
--- a/doc/Axlsx/Package.html
+++ b/doc/Axlsx/Package.html
@@ -640,20 +640,20 @@ Creates the minimum content types for generating a valid xlsx document.
# File 'lib/axlsx/package.rb', line 182defbase_content_typesc_types=ContentType.new()
@@ -711,25 +711,36 @@ your workbook to the default content types.
+This is a short cut method to set the start anchor position If you need
+finer granularity in positioning use graphic_frame.anchor.from.colOff /
+rowOff.
+
+This is a short cut method to set the start anchor position If you need
+finer granularity in positioning use graphic_frame.anchor.from.colOff /
+rowOff
+
+
+
+
+
+
\ No newline at end of file
diff --git a/doc/Axlsx/Pie3DChart.html b/doc/Axlsx/Pie3DChart.html
index 463ee085..81f128ff 100644
--- a/doc/Axlsx/Pie3DChart.html
+++ b/doc/Axlsx/Pie3DChart.html
@@ -388,8 +388,7 @@ a customizable set of options
25
26
27
-28
-29
+28
# File 'lib/axlsx/drawing/pie_3D_chart.rb', line 24
@@ -398,7 +397,6 @@ a customizable set of options
super(frame,options)@series_type=PieSeries@view3D=View3D.new({:rotX=>30,:perspective=>30}.merge(options))
-
end
@@ -451,17 +449,17 @@ Serializes the pie chart
+32
33
34
35
36
37
38
-39
-40
+39
-
# File 'lib/axlsx/drawing/pie_3D_chart.rb', line 33
+
# File 'lib/axlsx/drawing/pie_3D_chart.rb', line 32defto_xmlsuper()do|xml|
@@ -482,7 +480,7 @@ Serializes the pie chart
diff --git a/doc/Axlsx/PieSeries.html b/doc/Axlsx/PieSeries.html
index ac8bc6bb..17d4e297 100644
--- a/doc/Axlsx/PieSeries.html
+++ b/doc/Axlsx/PieSeries.html
@@ -694,7 +694,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/RegexValidator.html b/doc/Axlsx/RegexValidator.html
index 5e0f6f0f..4dec6fee 100644
--- a/doc/Axlsx/RegexValidator.html
+++ b/doc/Axlsx/RegexValidator.html
@@ -259,7 +259,7 @@ The value to validate.
diff --git a/doc/Axlsx/Relationship.html b/doc/Axlsx/Relationship.html
index 8bea1e24..9480cc84 100644
--- a/doc/Axlsx/Relationship.html
+++ b/doc/Axlsx/Relationship.html
@@ -228,7 +228,7 @@ A new instance of Relationship.
-Serializes the relationship TODO: use object.rId to get this infomation.
+Serializes the relationship.
@@ -454,7 +454,7 @@ The type of relationship
-Serializes the relationship TODO: use object.rId to get this infomation
+Serializes the relationship
@@ -520,14 +520,14 @@ the reference id of the object.
+36
37
38
39
-40
-41
+40
-
# File 'lib/axlsx/rels/relationship.rb', line 37
+
# File 'lib/axlsx/rels/relationship.rb', line 36defto_xml(xml,rId)h=self.instance_values
@@ -545,7 +545,7 @@ the reference id of the object.
diff --git a/doc/Axlsx/Relationships.html b/doc/Axlsx/Relationships.html
index a2d44c51..63f9f97f 100644
--- a/doc/Axlsx/Relationships.html
+++ b/doc/Axlsx/Relationships.html
@@ -334,7 +334,7 @@ Serializes the relationships document.
diff --git a/doc/Axlsx/RestrictionValidator.html b/doc/Axlsx/RestrictionValidator.html
index 5cea69a1..26518704 100644
--- a/doc/Axlsx/RestrictionValidator.html
+++ b/doc/Axlsx/RestrictionValidator.html
@@ -291,7 +291,7 @@ Raised if the value provided is not in the list of choices.
diff --git a/doc/Axlsx/Row.html b/doc/Axlsx/Row.html
index f4793412..97a255c2 100644
--- a/doc/Axlsx/Row.html
+++ b/doc/Axlsx/Row.html
@@ -762,7 +762,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Scaling.html b/doc/Axlsx/Scaling.html
index 2d734018..fcf2813d 100644
--- a/doc/Axlsx/Scaling.html
+++ b/doc/Axlsx/Scaling.html
@@ -731,7 +731,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/SerAxis.html b/doc/Axlsx/SerAxis.html
index 54fdcdaf..1fd700a2 100644
--- a/doc/Axlsx/SerAxis.html
+++ b/doc/Axlsx/SerAxis.html
@@ -630,7 +630,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Series.html b/doc/Axlsx/Series.html
index 22614377..6c966945 100644
--- a/doc/Axlsx/Series.html
+++ b/doc/Axlsx/Series.html
@@ -752,7 +752,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/SeriesTitle.html b/doc/Axlsx/SeriesTitle.html
index 0d48cf72..5819efb3 100644
--- a/doc/Axlsx/SeriesTitle.html
+++ b/doc/Axlsx/SeriesTitle.html
@@ -281,7 +281,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/SimpleTypedList.html b/doc/Axlsx/SimpleTypedList.html
index 268f2fc4..de9f323b 100644
--- a/doc/Axlsx/SimpleTypedList.html
+++ b/doc/Axlsx/SimpleTypedList.html
@@ -1677,7 +1677,7 @@ Unlock the list
diff --git a/doc/Axlsx/Styles.html b/doc/Axlsx/Styles.html
index 3d111991..396f5ab0 100644
--- a/doc/Axlsx/Styles.html
+++ b/doc/Axlsx/Styles.html
@@ -1745,7 +1745,7 @@ Serializes the styles document
diff --git a/doc/Axlsx/TableStyle.html b/doc/Axlsx/TableStyle.html
index 1d8f1584..76271084 100644
--- a/doc/Axlsx/TableStyle.html
+++ b/doc/Axlsx/TableStyle.html
@@ -701,7 +701,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/TableStyleElement.html b/doc/Axlsx/TableStyleElement.html
index 316cdc18..47a89fc4 100644
--- a/doc/Axlsx/TableStyleElement.html
+++ b/doc/Axlsx/TableStyleElement.html
@@ -668,7 +668,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/TableStyles.html b/doc/Axlsx/TableStyles.html
index bf84de69..2ef28eb3 100644
--- a/doc/Axlsx/TableStyles.html
+++ b/doc/Axlsx/TableStyles.html
@@ -590,7 +590,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Title.html b/doc/Axlsx/Title.html
index b785b91f..2d0b20cb 100644
--- a/doc/Axlsx/Title.html
+++ b/doc/Axlsx/Title.html
@@ -616,7 +616,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/TwoCellAnchor.html b/doc/Axlsx/TwoCellAnchor.html
index 0e1ca139..f805ab7e 100644
--- a/doc/Axlsx/TwoCellAnchor.html
+++ b/doc/Axlsx/TwoCellAnchor.html
@@ -183,7 +183,7 @@ A marker that defines the from cell anchor.
+the chart_type parameter will be replaced with object in v. 2.0.0
+
+
+
+
+
Creates a new TwoCellAnchor object and sets up a reference to the from and
to markers in the graphic_frame’s chart. That means that you can do
stuff like c = worksheet.add_chart Axlsx::Chart c.start_at 5, 9
@@ -382,6 +415,23 @@ subclass of Chart
+
+
+ object
+
+
+
+
+
+
+ —
+
+The object this anchor holds.
+
+
+
+
+
options
@@ -390,6 +440,8 @@ subclass of Chart
(Hash)
+ (defaults to: {})
+
—
@@ -406,8 +458,6 @@ a customizable set of options
-
-
Options Hash (options):
@@ -445,21 +495,19 @@ the col, row to end at
-34
-35
-36
-37
-38
-39
+41
+42
+43
+44
+45
-
# File 'lib/axlsx/drawing/two_cell_anchor.rb', line 34
+
# File 'lib/axlsx/drawing/two_cell_anchor.rb', line 41
-definitialize(drawing,chart_type,options)
+definitialize(drawing,options={})@drawing=drawingdrawing.anchors<<self@from,@to=Marker.new,Marker.new(:col=>5,:row=>10)
- @graphic_frame=GraphicFrame.new(self,chart_type,options)end
@@ -513,12 +561,12 @@ The drawing that holds this anchor
-20
-21
-22
+25
+26
+27
-
# File 'lib/axlsx/drawing/two_cell_anchor.rb', line 20
+
# File 'lib/axlsx/drawing/two_cell_anchor.rb', line 25defdrawing@drawing
@@ -589,18 +637,18 @@ are 0 and 0 respectively
-
+
# File 'lib/axlsx/drawing/two_cell_anchor.rb', line 47
+
# File 'lib/axlsx/drawing/two_cell_anchor.rb', line 60defto_xml(xml)#build it for now, break it down later!
@@ -851,7 +955,7 @@ The document builder instance this objects xml will be added to.
xml.send('xdr:to'){to.to_xml(xml)}
- @graphic_frame.to_xml(xml)
+ @object.to_xml(xml)xml.send('xdr:clientData')}end
@@ -866,7 +970,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/ValAxis.html b/doc/Axlsx/ValAxis.html
index 54a0fd41..37412dd8 100644
--- a/doc/Axlsx/ValAxis.html
+++ b/doc/Axlsx/ValAxis.html
@@ -529,7 +529,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/ValAxisData.html b/doc/Axlsx/ValAxisData.html
index 7fb222d2..a471d919 100644
--- a/doc/Axlsx/ValAxisData.html
+++ b/doc/Axlsx/ValAxisData.html
@@ -317,7 +317,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/View3D.html b/doc/Axlsx/View3D.html
index c310792f..3239e75b 100644
--- a/doc/Axlsx/View3D.html
+++ b/doc/Axlsx/View3D.html
@@ -962,7 +962,7 @@ The document builder instance this objects xml will be added to.
diff --git a/doc/Axlsx/Workbook.html b/doc/Axlsx/Workbook.html
index 47675817..bd6b1e44 100644
--- a/doc/Axlsx/Workbook.html
+++ b/doc/Axlsx/Workbook.html
@@ -237,6 +237,33 @@ A colllection of drawings associated with this workbook.
+
+
+
+
+A colllection of images associated with this workbook.
+
+
+
@@ -571,23 +598,25 @@ the object that the method was called on
-75
-76
-77
-78
-79
-80
-81
-82
+82
+83
+84
+85
+86
+87
+88
+89
+90
-
# File 'lib/axlsx/workbook/workbook.rb', line 75
+
# File 'lib/axlsx/workbook/workbook.rb', line 82definitialize(options={})@styles=Styles.new@worksheets=SimpleTypedList.newWorksheet@drawings=SimpleTypedList.newDrawing@charts=SimpleTypedList.newChart
+ @images=SimpleTypedList.newPicself.date1904=options[:date1904]unlessoptions[:date1904].nil?yieldselfifblock_given?end
@@ -718,10 +747,10 @@ Instance level access to the class variable 1904
-67
+74
-
# File 'lib/axlsx/workbook/workbook.rb', line 67
+
# File 'lib/axlsx/workbook/workbook.rb', line 74defdate1904()@@date1904;end
@@ -789,6 +818,81 @@ A colllection of drawings associated with this workbook
# File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 190
+
# File 'lib/axlsx/workbook/worksheet/worksheet.rb', line 199defauto_width(col)
- mdw=6.0# maximum digit with is always 6.0 in testable fonts so instead of beating RMagick every time, I am hardcoding it here.
+ mdw=6.0# maximum digit with is always 6.0 with RMagick's default fontmdw_count=0best_guess=1.5#direct testing shows the results of the documented formula to be a bit too small. This is a best guess scalingfont_scale=col[:sz].to_f/(self.workbook.styles.fonts[0].sz.to_f||11.0)
@@ -1728,15 +1865,6 @@ Serializes the worksheet document
diff --git a/doc/file.README.html b/doc/file.README.html
index 028a3e27..547e4874 100644
--- a/doc/file.README.html
+++ b/doc/file.README.html
@@ -61,14 +61,14 @@
Author: Randy Morgan Copyright: 2011 License: MIT License
-Latest Version: 1.0.7
+Latest Version: 1.0.8 Ruby Version: 1.8.7 Release Date: November 23nd 2011
Synopsis
Axlsx is an Office Open XML Spreadsheet generator for the Ruby programming language.
-It enables the you to generate 100% valid xlsx files that include customised styling 3D pie, bar and line charts. Below is a summary of salient features.
+It enables the you to generate 100% valid xlsx files that include customised styling, images, 3D pie, bar and line charts and auto-width columns. Below is a summary of salient features.
Feature List
@@ -84,6 +84,8 @@ It enables the you to generate 100% valid xlsx files that include customised sty
**6. Support for both 1904 and 1900 epocs configurable in the workbook.
+
**7. Add jpg, gif and png images to worksheets
+
Installing
To install Axlsx, use the following command:
@@ -193,6 +195,19 @@ It enables the you to generate 100% valid xlsx files that include customised sty
p.serialize("example6.xlsx")
+
Adding an Image
+
+
p=Axlsx::Package.new
+ p.workbook.add_worksheetdo|sheet|
+ sheet.add_image(:image_src=>(File.dirname(__FILE__)+"/image1.png"))do|image|
+ image.width=720
+ image.height=666
+ image.start_at2,2
+ end
+ end
+ p.serialize("example7.xlsx")
+
+
Documentation
This gem is 100% documented with YARD, an exceptional documentation library. To see documentation for this, and all the gems installed on your system use:
@@ -208,7 +223,13 @@ It enables the you to generate 100% valid xlsx files that include customised sty
Changelog
-
October.23.11: 1.0.7 released
+
October.23.11: 1.0.8 release
+
+
+
Added support for images (jpg, gif, png) in worksheets.
+
+
+
October.23.11: 1.0.7 released
Added support for 3D options when creating a new chart. This lets you set the persective, rotation and other 3D attributes when using worksheet.add_chart
@@ -227,6 +248,10 @@ It enables the you to generate 100% valid xlsx files that include customised sty
Please see the CHANGELOG document for past release information.
+
Help Wanted
+
+
I'd really like to get rid of the depenency on RMagick in this gem. RMagic is being used to calculate the column widths in a worksheet based on the content the user specified. If there happens to be anyone out there with the background and skill set to write an extenstion that can determine the width of a singel character render with a specific font at a specific size please give me a shout.
Axlsx is an Office Open XML Spreadsheet generator for the Ruby programming language.
-It enables the you to generate 100% valid xlsx files that include customised styling 3D pie, bar and line charts. Below is a summary of salient features.
+It enables the you to generate 100% valid xlsx files that include customised styling, images, 3D pie, bar and line charts and auto-width columns. Below is a summary of salient features.
Feature List
@@ -84,6 +84,8 @@ It enables the you to generate 100% valid xlsx files that include customised sty
**6. Support for both 1904 and 1900 epocs configurable in the workbook.
+
**7. Add jpg, gif and png images to worksheets
+
Installing
To install Axlsx, use the following command:
@@ -193,6 +195,19 @@ It enables the you to generate 100% valid xlsx files that include customised sty
p.serialize("example6.xlsx")
+
Adding an Image
+
+
p=Axlsx::Package.new
+ p.workbook.add_worksheetdo|sheet|
+ sheet.add_image(:image_src=>(File.dirname(__FILE__)+"/image1.png"))do|image|
+ image.width=720
+ image.height=666
+ image.start_at2,2
+ end
+ end
+ p.serialize("example7.xlsx")
+
+
Documentation
This gem is 100% documented with YARD, an exceptional documentation library. To see documentation for this, and all the gems installed on your system use:
@@ -208,7 +223,13 @@ It enables the you to generate 100% valid xlsx files that include customised sty
Changelog
-
October.23.11: 1.0.7 released
+
October.23.11: 1.0.8 release
+
+
+
Added support for images (jpg, gif, png) in worksheets.
+
+
+
October.23.11: 1.0.7 released
Added support for 3D options when creating a new chart. This lets you set the persective, rotation and other 3D attributes when using worksheet.add_chart
@@ -227,6 +248,10 @@ It enables the you to generate 100% valid xlsx files that include customised sty
Please see the CHANGELOG document for past release information.
+
Help Wanted
+
+
I'd really like to get rid of the depenency on RMagick in this gem. RMagic is being used to calculate the column widths in a worksheet based on the content the user specified. If there happens to be anyone out there with the background and skill set to write an extenstion that can determine the width of a singel character render with a specific font at a specific size please give me a shout.