summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/experimental/evolving/TimeSpec.lua
blob: 13d453f1fd67cc7ce4f161f665e465c08ecf17f8 (plain)
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
-- Copyright 2015 by Malte Skambath
--
-- This file may be distributed and/or modified
--
-- 1. under the LaTeX Project Public License and/or
-- 2. under the GNU Public License
--
-- See the file doc/generic/pgf/licenses/LICENSE for more information


-- Imports
local declare = require("pgf.gd.interface.InterfaceToAlgorithms").declare

---

declare {
   key     = "snapshot",
   type    = "time",
   initial = "0s",
   summary = "The time of the snapshot in which a PGF node should be visible.",
   documentation = [["
   This option defines the time in seconds when respectively in which
   state or snapshot of the graph the PGF represents a graph node.
"]]
}

---

declare {
   key     = "supernode",
   type    = "string",
   initial = "null",
   summary = "A unique name for a node a given PGF node should be assigned to.",
   documentation = [["
     Because it should be possible that nodes can change their
     appearance, they are represented by separate PGF nodes in each
     snapshot. To identify PGF nodes of the same supernode we have to
     specify this key.
"]]
}

---

declare {
   key     = "fadein time",
   type    = "time",
   initial = "0.5s",
   summary = [["The time in seconds it should take that a nodes will be fade in
   when it disappears in the graph"]],
}

---

declare {
   key     = "fadeout time",
   type    = "time",
   initial = "0.5s",
   summary = "",
   documentation = "The same as |fadein time| but for disappearing nodes."
}