File: hyperlink.rst

package info (click to toggle)
svgwrite 1.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,304 kB
  • sloc: python: 12,524; makefile: 116; sh: 5
file content (83 lines) | stat: -rw-r--r-- 2,979 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
Hyperlink
=========

The **Hyperlink** class represents the SVG **a** element.

.. autoclass:: svgwrite.container.Hyperlink

.. seealso:: http://www.w3.org/TR/SVG11/linking.html#AElement

.. automethod:: svgwrite.container.Hyperlink.__init__

Parent Classes
--------------

* :class:`svgwrite.base.BaseElement`
* :class:`svgwrite.mixins.Transform`
* :class:`svgwrite.mixins.Presentation`

SVG Attributes
--------------

* **class** -- `string`

  assigns one or more css-class-names to an element

* **style** -- `string`

  allows per-element css-style rules to be specified directly on a given
  element

* **externalResourcesRequired** -- `bool`

  *False*: if document rendering can proceed even if external resources are
  unavailable else: *True*

* **transform** -- use :class:`svgwrite.mixins.Transform` interface

* **xlink:href** -- `string` -- **href** parameter

* **xlink:show** -- ``'new|replace'``

  use the **target** attribute

* **xlink:acuate** -- ``'onRequest'``

  This attribute provides documentation to XLink-aware processors that an
  application should traverse from the starting resource to the ending
  resource only on a post-loading event triggered for the purpose of traversal.

* **target** -- `string` -- **target** parameter

  This attribute specifies the name or portion of
  the target window, frame, pane, tab, or other relevant presentation
  context (e.g., an HTML or XHTML frame, iframe, or object element)
  into which a document is to be opened when the link is activated.

  - ``_replace``: The current SVG image is replaced by the linked
    content in the same rectangular area in the same frame as the
    current SVG image.
  - ``_self``: The current SVG image is replaced by the linked content
     in the same frame as the current SVG image. This is the lacuna
     value, if the target attribute is not specified.
  - ``_parent``: The immediate frameset parent of the SVG image is
    replaced by the linked content.
  - ``_top``: The content of the full window or tab, including any
    frames, is replaced by the linked content
  - ``_blank``: A new un-named window or tab is requested for the
    display of the linked content. If this fails, the result is the
    same as ``_top``
  - ``<XML-Name>``: Specifies the name of the frame, pane, or other
    relevant presentation context for display of the linked content.
    If this already exists, it is re-used, replacing the existing
    content. If it does not exist, it is created (the same as ``_blank``,
    except that it now has a name).

Standard SVG Attributes
-----------------------

* :doc:`Core Attributes </attributes/core>`
* :doc:`Conditional Processing Attributes </attributes/conditional_processing>`
* :doc:`Graphical Event Attributes </attributes/graphical_event>`
* :doc:`Presentation Attributes </attributes/presentation>`
* :doc:`XLink Attributes </attributes/xlink>`