examples/shape8.rb in write_xlsx-0.64.1 vs examples/shape8.rb in write_xlsx-0.65.0
- old
+ new
@@ -49,25 +49,25 @@
p3 = worksheet.insert_shape('A1', plus, 150, 350)
p4 = worksheet.insert_shape('A1', plus, 150, 150)
cxn_shape = workbook.add_shape(:type => 'bentConnector3', :fill => 0)
-cxn_shape[:start] = ellipse[:id]
-cxn_shape[:start_index] = 2 # 2nd connection pt, clockwise from top(0).
-cxn_shape[:start_side] = 'r' # r)ight or b)ottom.
+cxn_shape.start = ellipse.id
+cxn_shape.start_index = 2 # 2nd connection pt, clockwise from top(0).
+cxn_shape.start_side = 'r' # r)ight or b)ottom.
-cxn_shape[:end] = p1[:id]
-cxn_shape[:end_index] = 3 # 3rd connection point on plus, right side
-cxn_shape[:end_side] = 'l' # l)eft or t)op.
+cxn_shape.end = p1.id
+cxn_shape.end_index = 3 # 3rd connection point on plus, right side
+cxn_shape.end_side = 'l' # l)eft or t)op.
worksheet.insert_shape('A1', cxn_shape, 0, 0)
-cxn_shape[:end] = p2[:id]
+cxn_shape.end = p2.id
worksheet.insert_shape('A1', cxn_shape, 0, 0)
-cxn_shape[:end] = p3[:id]
+cxn_shape.end = p3.id
worksheet.insert_shape('A1', cxn_shape, 0, 0)
-cxn_shape[:end] = p4[:id]
-cxn_shape[:adjustments] = [-50, 45, 120]
+cxn_shape.end = p4.id
+cxn_shape.adjustments = [-50, 45, 120]
worksheet.insert_shape('A1', cxn_shape, 0, 0)
workbook.close