lib/psd/node_layer.rb in psd-1.3.3 vs lib/psd/node_layer.rb in psd-1.4.0

- old
+ new

@@ -56,10 +56,16 @@ def to_hash super.merge({ type: :layer, text: @layer.text, ref_x: @layer.reference_point.x, - ref_y: @layer.reference_point.y + ref_y: @layer.reference_point.y, + mask: @layer.mask.snapshot, + image: { + width: @layer.image.width, + height: @layer.image.height, + channels: @layer.channels_info + } }) end # If the method is missing, we blindly send it to the layer. # The layer handles the case in which the method doesn't exist. \ No newline at end of file