SnapshotTextNode

GoogleApi.ContentWarehouse.V1.Model.SnapshotTextNode


Table of Contents ▼

Jump to a specific part of the page:

Description

The SnapshotDocument contains a list of TextNode's. Each node contains a string of text of the webpage, its bounding box in the agove snapshot image, and its font size (in number of pixels in the snapshot, which could be a fraction number since the snapshot image is typically shrinked). This list of text nodes are extracted from the output from the rendering service: htmlrender_webkit_headless_proto.Document The extraction is done by TrimDocument defined in ./shared/doctrimmer.cc

Attributes List

This module has the following attributes (case-insensitive ascending order):

View Attributes

Attributes

  1. boundingBox (type: GoogleApi.ContentWarehouse.V1.Model.SnapshotBox, default: nil)
    -
  2. fontSize (type: number(), default: nil)
    -
  3. maxSplit (type: integer(), default: nil)
    - A value in the range [0,7] (zero if not present) indicating the most "powerful" splitting tag since the last text node. See "enum Category" in mustang/snippets/taginfo.h.
  4. text (type: String.t, default: nil)
    -

Type

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.SnapshotTextNode{
boundingBox: GoogleApi.ContentWarehouse.V1.Model.SnapshotBox.t() | nil,
fontSize: number() | nil,
inLink: integer() | nil,
maxSplit: integer() | nil,
text: String.t() | nil
}

Function

@spec decode(struct(), keyword()) :: struct()

Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.SnapshotTextNode