gws.plugin.annotate_tool.action

The annotate action.

Source code: gws.plugin.annotate_tool.action

Module Contents

class gws.plugin.annotate_tool.action.Config

Bases: gws.base.action.Config

Map annotations with measurement labels.

labels: dict | None

Label templates per shape type.

storage: gws.base.storage.Config | None

Storage for saved annotations.

class gws.plugin.annotate_tool.action.Object

Bases: gws.base.action.Object

Annotate action.

labels: dict | None

Label templates per shape type, passed to the client.

storage: gws.base.storage.Object | None

Storage for saved annotations, or None if not configured.

configure()
handle_storage(req: gws.WebRequester, p: gws.base.storage.Request) → gws.base.storage.Response

Read or write saved annotations.

props(user)
class gws.plugin.annotate_tool.action.Props

Bases: gws.base.action.Props

labels: dict
storage: gws.base.storage.Props