lib/groupdocs/document/annotation.rb in groupdocs-1.6.0 vs lib/groupdocs/document/annotation.rb in groupdocs-1.7.0

- old
+ new

@@ -4,14 +4,14 @@ require 'groupdocs/document/annotation/reply' require 'groupdocs/document/annotation/reviewer' include Api::Helpers::AccessMode - #AnnotationType = { Text: 0, Area: 1, Point: 2, TextStrikeout: 3, Polyline: 4, TextField: 5, Watermark: 6, TextReplacement: 7, TextRemoval: 8 } + #AnnotationType = { Text: 0, Area: 1, Point: 2, TextStrikeout: 3, Polyline: 4, TextField: 5, Watermark: 6, TextReplacement: 7, Arrow: 8, TextRedaction 9, ResourceRedaction 10, TextUnderline 11, Distance 12, All 13 } - # updateed in release 1.6.0 - TYPES = %w(Text Area Point TextStrikeout Polyline TextField Watermark TextReplacement TextRemoval ) + # updated in release 1.7.0 + TYPES = %w(Text Area Point TextStrikeout Polyline TextField Watermark TextReplacement Arrow TextRedaction ResourceRedaction ResourceRedaction TextUnderline Distance All) # @attr [GroupDocs::Document] document attr_accessor :document # @attr [Integer] id attr_accessor :id @@ -52,23 +52,26 @@ attr_accessor :pageNumber #@attr [Long] serverTime attr_accessor :serverTime #attr [Array] - #added in release 1.6.0 + #added in release 1.7.0 #@attr [Int] penColor attr_accessor :penColor #@attr [Int] penWidth attr_accessor :penWidth #@attr [Int] penStyle attr_accessor :penStyle #@attr [Int] creatorName attr_accessor :creatorName #@attr [Int] creatorEmail attr_accessor :creatorEmail + #@attr [Long] penColor + attr_accessor :layerId + #@attr [Int] penWidth + attr_accessor :backgroundColor - # Compatibility with response JSON alias_method :annotationGuid=, :guid= # Human-readable accessors alias_accessor :session_guid, :sessionGuid @@ -80,15 +83,17 @@ #added in release 1.5.8 alias_accessor :page_number, :pageNumber alias_accessor :server_time, :serverTime - #added in release 1.6.0 + #added in release 1.7.0 alias_accessor :pen_color, :penColor alias_accessor :pen_width, :penWidth alias_accessor :pen_style, :penStyle alias_accessor :creator_name, :creatorName alias_accessor :creator_email, :creatorEmail + alias_accessor :layer_id, :layerId + alias_accessor :background_color, :backgroundColor # # Creates new GroupDocs::Document::Annotation. # # @raise [ArgumentError] If document is not passed or is not an instance of GroupDocs::Document