Ticket #443 (closed Defect: fixed)

Opened 8 years ago

Last modified 7 years ago

Remove HTML5 Canvas specific parts from default topicmap view model

Reported by: jri Owned by: jri
Priority: Major Milestone: Release 4.2
Component: DeepaMehta Standard Distribution Version: 4.1
Keywords: Cc: dgf, Malte, joern
Complexity: 3 Area: Application Framework / API
Module: deepamehta-webclient

Description

The default topicmap view model is supposed to be topicmap renderer agnostic. It is supposed to be reusable by other renderer implementations, e.g. the SVG Topicmap Renderer.

Currently the default topicmap view model relies on a HTML5 Canvas 2D Context in order to measure text (used for wrapping long topic labels).

See Webclient /script/renderers/topicmap_renderers/topicmap_view_model.js

Thanks joern for reporting!

Change History

comment:1 Changed 8 years ago by jri

  • Status changed from new to accepted

comment:2 Changed 7 years ago by jri

  • Status changed from accepted to closed
  • Resolution set to fixed

Fixed on Mar 25, 2013:

The default topicmap view model is now renderer agnostic.
It is not coupled to a HTML5 Canvas 2D Context anymore.

BREAKING CHANGES

DefaultTopicmapRenderer?.Model

  • class is renamed to DefaultTopicmapViewmodel?
  • add_topic() returns the created topic view model (formerly void)
  • add_association() returns the created association view model (formerly void)

Canvas Topic (the topic view model):

  • "truncated_label" is a new property

Changeset: f1f628dbddb1525069fea6113ed1de6cf3d03b6d

Note: See TracTickets for help on using tickets.