Skip to content

v0.4.0

Choose a tag to compare

@bcamper bcamper released this 11 Jun 17:40
· 45 commits to master since this release
b21a05e
  • Convert rich text to plain text on paste #2
  • Add ability to drag notes #3
    • Notes can be dragged by the user, with the note location constrained according to the graphic's geometry type. The note snaps to the nearest allowable location.
      • Along the path of a line (either side)
      • Along the outer ring of a polygon (exterior side only)
      • At one of up to 8 cardinal and diagonal positions, configurable per-note (see below).
    • Notes are draggable when editable (dragging controls are hidden otherwise).
    • Editable text div is now wrapped by an outer container, which can be draggable.
    • HubTextNotesLayer constructor parameters:
      • cssClass replaces textClass
      • cssClass is used to style outer/draggable container
      • note-text is used to style the inner/text container
    • HubTextNotesLayer.addNoteForGraphic() parameters:
      • placementAlignments defines a list (array) of allowed placement positions for notes attached to point graphics. Allowed values are: right, top-right, top, top-left, left, bottom-left, bottom, bottom-right.
  • Use alpha channel when converting text notes to graphics, for Web Map export ae93362
  • Explicitly remove event listeners to guard against memory leaks 544bc3f