@cardenelabs/dragon 0.45.5 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/cli.cjs +90 -99
  2. package/dist/cli.cjs.map +1 -1
  3. package/dist/cli.js +90 -99
  4. package/dist/cli.js.map +1 -1
  5. package/dist/export.cjs +84 -99
  6. package/dist/export.cjs.map +1 -1
  7. package/dist/export.js +84 -99
  8. package/dist/export.js.map +1 -1
  9. package/dist/index.cjs +48 -57
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.js +48 -57
  12. package/dist/index.js.map +1 -1
  13. package/dist/light/chunk-CLS6JVKK.cjs.map +1 -1
  14. package/dist/light/{chunk-EHTQUCW4.js → chunk-DVGDEPCV.js} +6 -2
  15. package/dist/light/chunk-DVGDEPCV.js.map +1 -0
  16. package/dist/light/{chunk-5OQV42W3.cjs → chunk-SUL4AJLI.cjs} +6 -2
  17. package/dist/light/chunk-SUL4AJLI.cjs.map +1 -0
  18. package/dist/light/{chunk-JCEKXALJ.cjs → chunk-V34DCH34.cjs} +90 -87
  19. package/dist/light/chunk-V34DCH34.cjs.map +1 -0
  20. package/dist/light/{chunk-YEQSLVIN.js → chunk-YO3UBEC3.js} +12 -9
  21. package/dist/light/chunk-YO3UBEC3.js.map +1 -0
  22. package/dist/light/{git-K3KAAAWW.cjs → git-WBGFDRBD.cjs} +59 -59
  23. package/dist/light/git-WBGFDRBD.cjs.map +1 -0
  24. package/dist/light/{git-GESUYKGR.js → git-WEJL6VAY.js} +3 -3
  25. package/dist/light/index.cjs +358 -372
  26. package/dist/light/index.cjs.map +1 -1
  27. package/dist/light/index.js +43 -57
  28. package/dist/light/index.js.map +1 -1
  29. package/dist/light/{lineup-2V2U7HZH.js → lineup-6LN6Z5T2.js} +3 -3
  30. package/dist/light/{lineup-623J25LU.cjs → lineup-WLGNGTFX.cjs} +40 -40
  31. package/dist/light/lineup-WLGNGTFX.cjs.map +1 -0
  32. package/dist/light/{state-T4OTVING.js → state-DFYTMQI7.js} +2 -2
  33. package/dist/light/{state-OZVCHX7H.cjs → state-JVAH4TSM.cjs} +41 -41
  34. package/dist/light/state-JVAH4TSM.cjs.map +1 -0
  35. package/dist/light/{time-KVMZIKYF.cjs → time-EXRPI34B.cjs} +84 -84
  36. package/dist/light/time-EXRPI34B.cjs.map +1 -0
  37. package/dist/light/{time-O4CMTUV5.js → time-M3EGEFDU.js} +3 -3
  38. package/dist/light/{tree-6D7KI57H.cjs → tree-DECHTXFU.cjs} +62 -62
  39. package/dist/light/tree-DECHTXFU.cjs.map +1 -0
  40. package/dist/light/{tree-ZJZQI5QT.js → tree-MFU54QKY.js} +3 -3
  41. package/dist/node.cjs +27 -48
  42. package/dist/node.cjs.map +1 -1
  43. package/dist/node.js +27 -48
  44. package/dist/node.js.map +1 -1
  45. package/dist/player.global.js +3 -3
  46. package/package.json +1 -1
  47. package/src/look/values.ts +5 -1
  48. package/src/messages.ts +4 -1
  49. package/src/parser.ts +4 -2
  50. package/src/render/draw.ts +2 -1
  51. package/src/render/parts.ts +28 -7
  52. package/src/schema.ts +6 -0
  53. package/src/schemas/diagram.schema.json +3 -2
  54. package/src/schemas/validate-diagram.js +1 -1
  55. package/dist/light/chunk-5OQV42W3.cjs.map +0 -1
  56. package/dist/light/chunk-EHTQUCW4.js.map +0 -1
  57. package/dist/light/chunk-JCEKXALJ.cjs.map +0 -1
  58. package/dist/light/chunk-YEQSLVIN.js.map +0 -1
  59. package/dist/light/git-K3KAAAWW.cjs.map +0 -1
  60. package/dist/light/lineup-623J25LU.cjs.map +0 -1
  61. package/dist/light/state-OZVCHX7H.cjs.map +0 -1
  62. package/dist/light/time-KVMZIKYF.cjs.map +0 -1
  63. package/dist/light/tree-6D7KI57H.cjs.map +0 -1
  64. /package/dist/light/{git-GESUYKGR.js.map → git-WEJL6VAY.js.map} +0 -0
  65. /package/dist/light/{lineup-2V2U7HZH.js.map → lineup-6LN6Z5T2.js.map} +0 -0
  66. /package/dist/light/{state-T4OTVING.js.map → state-DFYTMQI7.js.map} +0 -0
  67. /package/dist/light/{time-O4CMTUV5.js.map → time-M3EGEFDU.js.map} +0 -0
  68. /package/dist/light/{tree-ZJZQI5QT.js.map → tree-MFU54QKY.js.map} +0 -0
@@ -31,6 +31,7 @@ import {
31
31
  action,
32
32
  badge,
33
33
  band,
34
+ boxTextY,
34
35
  card,
35
36
  carrier,
36
37
  cs,
@@ -50,7 +51,7 @@ import {
50
51
  sansOf,
51
52
  side,
52
53
  strip
53
- } from "./chunk-YEQSLVIN.js";
54
+ } from "./chunk-YO3UBEC3.js";
54
55
  import {
55
56
  DEFAULT_PALETTE,
56
57
  EASE,
@@ -93,7 +94,7 @@ import {
93
94
  slotRooms,
94
95
  stripNeed,
95
96
  textWidth
96
- } from "./chunk-EHTQUCW4.js";
97
+ } from "./chunk-DVGDEPCV.js";
97
98
 
98
99
  // src/kinds/registry.ts
99
100
  var LATER_KINDS = ["git", "lineup", "state", "time", "tree"];
@@ -211,7 +212,7 @@ function ucs2length(str) {
211
212
  return length;
212
213
  }
213
214
  var validate_diagram_default = validate10;
214
- var schema11 = { "title": "dragon \u306E\u56F3\u306E\u539F\u672C", "description": "\u533A\u753B\u3001\u7BB1\u3001\u7DDA\u3001\u904B\u3076\u7269\u3001\u6BB5\u3001\u4E2D\u8EAB\u306E\u5E2F\u306E 6 \u90E8\u54C1\u3092\u5171\u901A\u306E\u9AA8\u7D44\u307F\u306B\u7F6E\u304D\u3001\u56F3\u306E\u7A2E\u985E\u3060\u3051\u306E\u7269\u306F\u7A2E\u985E\u306E\u6B04\u306B\u7F6E\u304F\u3002\u5EA7\u6A19\u306F\u6301\u305F\u306A\u3044\u3002\u7BB1\u306F\u679D\u5206\u304B\u308C\u306E\u56F3\u3068\u6642\u9593\u8EF8\u306E\u56F3\u3068\u6728\u306E\u56F3\u3060\u3051\u304C\u6301\u305F\u306A\u304F\u3066\u3088\u3044\u3002\u5217\u306E\u56F3\u306E\u7BB1\u306F\u5217\u306B\u306A\u308B\u3002", "type": "object", "additionalProperties": false, "required": ["version", "kind", "title", "boxes", "steps"], "properties": { "version": { "description": "\u5F62\u5F0F\u306E\u7248", "type": "integer", "minimum": 1 }, "kind": { "description": "\u56F3\u306E\u7A2E\u985E", "enum": ["sequence", "architecture", "state", "git", "time", "tree", "lineup"] }, "title": { "$ref": "#/definitions/text" }, "view": { "description": "\u898B\u305B\u65B9\u3002\u66F8\u304B\u306A\u3051\u308C\u3070\u5B57\u306E\u5927\u304D\u3055\u3067\u9078\u3076\u3002fixed \u306F\u5168\u4F53\u3092\u6B62\u3081\u3066\u4E2D\u3060\u3051\u52D5\u304B\u3057\u3001follow \u306F\u5BC4\u3063\u3066\u52D5\u304B\u3057\u5168\u4F53\u56F3\u3067\u4ECA\u3069\u3053\u304B\u3092\u793A\u3059", "enum": ["fixed", "follow"] }, "regions": { "type": "array", "items": { "$ref": "#/definitions/region" } }, "boxes": { "type": "array", "items": { "$ref": "#/definitions/box" } }, "strip": { "$ref": "#/definitions/strip" }, "steps": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/step" } }, "sequence": { "$ref": "#/definitions/sequence" }, "state": { "$ref": "#/definitions/state" }, "git": { "$ref": "#/definitions/git" }, "time": { "$ref": "#/definitions/time" }, "lineup": { "$ref": "#/definitions/lineup" } }, "if": { "required": ["kind"], "properties": { "kind": { "const": "sequence" } } }, "then": { "required": ["sequence"], "properties": { "boxes": { "minItems": 1 }, "steps": { "$ref": "#/definitions/plainSteps" }, "strip": { "$ref": "#/definitions/plainStrip" }, "state": { "$ref": "#/definitions/absent" }, "git": { "$ref": "#/definitions/absent" }, "time": { "$ref": "#/definitions/absent" }, "lineup": { "$ref": "#/definitions/absent" } } }, "else": { "properties": { "sequence": { "$ref": "#/definitions/absent" } }, "if": { "required": ["kind"], "properties": { "kind": { "const": "state" } } }, "then": { "properties": { "boxes": { "minItems": 1, "items": { "properties": { "id": { "description": "\u59CB\u307E\u308A\u3068\u7D42\u308F\u308A\u306E\u5370\u306E\u540D\u524D\u306F\u7BB1\u306E\u540D\u672D\u306B\u4F7F\u3048\u306A\u3044", "not": { "enum": ["start", "finish"] } } } } }, "steps": { "$ref": "#/definitions/plainSteps" }, "strip": { "$ref": "#/definitions/plainStrip" }, "git": { "$ref": "#/definitions/absent" }, "time": { "$ref": "#/definitions/absent" }, "lineup": { "$ref": "#/definitions/absent" } } }, "else": { "if": { "required": ["kind"], "properties": { "kind": { "const": "git" } } }, "then": { "required": ["git"], "properties": { "steps": { "$ref": "#/definitions/gitSteps" }, "strip": { "$ref": "#/definitions/plainStrip" }, "state": { "$ref": "#/definitions/absent" }, "regions": { "$ref": "#/definitions/absent" }, "time": { "$ref": "#/definitions/absent" }, "lineup": { "$ref": "#/definitions/absent" } } }, "else": { "if": { "required": ["kind"], "properties": { "kind": { "const": "time" } } }, "then": { "required": ["time"], "properties": { "steps": { "$ref": "#/definitions/timeSteps" }, "state": { "$ref": "#/definitions/absent" }, "git": { "$ref": "#/definitions/absent" }, "regions": { "$ref": "#/definitions/absent" }, "lineup": { "$ref": "#/definitions/absent" } } }, "else": { "if": { "required": ["kind"], "properties": { "kind": { "const": "tree" } } }, "then": { "properties": { "steps": { "$ref": "#/definitions/treeSteps" }, "strip": { "$ref": "#/definitions/plainStrip" }, "state": { "$ref": "#/definitions/absent" }, "git": { "$ref": "#/definitions/absent" }, "time": { "$ref": "#/definitions/absent" }, "regions": { "$ref": "#/definitions/absent" }, "lineup": { "$ref": "#/definitions/absent" } } }, "else": { "if": { "required": ["kind"], "properties": { "kind": { "const": "lineup" } } }, "then": { "required": ["lineup"], "properties": { "boxes": { "minItems": 1, "items": { "properties": { "icon": { "$ref": "#/definitions/absent" }, "link": { "$ref": "#/definitions/absent" }, "region": { "$ref": "#/definitions/absent" } } } }, "steps": { "$ref": "#/definitions/lineupSteps" }, "strip": { "$ref": "#/definitions/plainStrip" }, "state": { "$ref": "#/definitions/absent" }, "git": { "$ref": "#/definitions/absent" }, "time": { "$ref": "#/definitions/absent" }, "regions": { "$ref": "#/definitions/absent" } } }, "else": { "properties": { "boxes": { "minItems": 1 }, "steps": { "$ref": "#/definitions/plainSteps" }, "strip": { "$ref": "#/definitions/plainStrip" }, "state": { "$ref": "#/definitions/absent" }, "git": { "$ref": "#/definitions/absent" }, "time": { "$ref": "#/definitions/absent" }, "lineup": { "$ref": "#/definitions/absent" } } } } } } } }, "definitions": { "text": { "type": "string", "minLength": 1 }, "absent": { "description": "\u3053\u306E\u56F3\u306E\u7A2E\u985E\u3067\u306F\u66F8\u3051\u306A\u3044\u6B04", "not": {} }, "plainSteps": { "description": "\u679D\u5206\u304B\u308C\u306E\u56F3\u3067\u3082\u6642\u9593\u8EF8\u306E\u56F3\u3067\u3082\u6728\u306E\u56F3\u3067\u3082\u5217\u306E\u56F3\u3067\u3082\u306A\u3044\u56F3\u306E\u6BB5\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (commit \u3068 branch) \u3068\u3001\u6642\u9593\u8EF8\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (now \u3068 mark \u3068 span) \u3068\u6B04 (at \u3068 into \u3068 color) \u3068\u3001\u6728\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (leaf \u3068 node) \u3068\u3001\u5217\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (line \u3068 seal \u3068 open \u3068 pick \u3068 stamp) \u3092\u66F8\u3051\u306A\u3044", "items": { "properties": { "events": { "items": { "not": { "$ref": "#/definitions/timeEvent" }, "allOf": [{ "not": { "$ref": "#/definitions/treeEvent" } }, { "$ref": "#/definitions/notLineupEvent" }], "properties": { "type": { "not": { "enum": ["commit", "branch"] } }, "at": { "$ref": "#/definitions/absent" }, "into": { "$ref": "#/definitions/absent" }, "color": { "$ref": "#/definitions/absent" } } } } } } }, "gitSteps": { "description": "\u679D\u5206\u304B\u308C\u306E\u56F3\u306E\u6BB5\u3002\u6642\u9593\u8EF8\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (now \u3068 mark \u3068 span) \u3068\u6B04 (at \u3068 into \u3068 color) \u3068\u3001\u6728\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (leaf \u3068 node) \u3068\u3001\u5217\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (line \u3068 seal \u3068 open \u3068 pick \u3068 stamp) \u3092\u66F8\u3051\u306A\u3044", "items": { "properties": { "events": { "items": { "not": { "$ref": "#/definitions/timeEvent" }, "allOf": [{ "not": { "$ref": "#/definitions/treeEvent" } }, { "$ref": "#/definitions/notLineupEvent" }], "properties": { "at": { "$ref": "#/definitions/absent" }, "into": { "$ref": "#/definitions/absent" }, "color": { "$ref": "#/definitions/absent" } } } } } } }, "timeSteps": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u6BB5\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (commit \u3068 branch) \u3068\u3001\u6728\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (leaf \u3068 node) \u3068\u3001\u5217\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (line \u3068 seal \u3068 open \u3068 pick \u3068 stamp) \u3092\u66F8\u3051\u306A\u3044", "items": { "properties": { "events": { "items": { "allOf": [{ "not": { "$ref": "#/definitions/treeEvent" } }, { "$ref": "#/definitions/notLineupEvent" }], "properties": { "type": { "not": { "enum": ["commit", "branch"] } } } } } } } }, "treeSteps": { "description": "\u6728\u306E\u56F3\u306E\u6BB5\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (commit \u3068 branch) \u3068\u3001\u6642\u9593\u8EF8\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (now \u3068 mark \u3068 span) \u3068\u6B04 (at \u3068 into \u3068 color) \u3068\u3001\u5217\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (line \u3068 seal \u3068 open \u3068 pick \u3068 stamp) \u3092\u66F8\u3051\u306A\u3044", "items": { "properties": { "events": { "items": { "not": { "$ref": "#/definitions/timeEvent" }, "allOf": [{ "$ref": "#/definitions/notLineupEvent" }], "properties": { "type": { "not": { "enum": ["commit", "branch"] } }, "at": { "$ref": "#/definitions/absent" }, "into": { "$ref": "#/definitions/absent" }, "color": { "$ref": "#/definitions/absent" } } } } } } }, "lineupSteps": { "description": "\u5217\u306E\u56F3\u306E\u6BB5\u3002\u7DDA\u3068\u51E6\u7406\u3068\u3001\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (commit \u3068 branch) \u3068\u3001\u6642\u9593\u8EF8\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (now \u3068 mark \u3068 span) \u3068\u6B04 (color) \u3068\u3001\u6728\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (leaf \u3068 node) \u3092\u66F8\u3051\u306A\u3044", "items": { "properties": { "events": { "items": { "not": { "$ref": "#/definitions/timeEvent" }, "allOf": [{ "not": { "$ref": "#/definitions/treeEvent" } }, { "$ref": "#/definitions/notWiredEvent" }], "properties": { "type": { "not": { "enum": ["commit", "branch"] } }, "color": { "$ref": "#/definitions/absent" } } } } } } }, "treeEvent": { "description": "\u6728\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u51FA\u6765\u4E8B", "required": ["type"], "properties": { "type": { "enum": ["leaf", "node"] } } }, "notLineupEvent": { "description": "\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u51FA\u6765\u4E8B\u3092\u66F8\u3051\u306A\u3044", "not": { "required": ["type"], "properties": { "type": { "enum": ["line", "seal", "open", "pick", "stamp"] } } } }, "notWiredEvent": { "description": "\u7BB1\u3068\u7DDA\u306E\u56F3\u306E\u51FA\u6765\u4E8B\u3092\u66F8\u3051\u306A\u3044", "not": { "required": ["type"], "properties": { "type": { "enum": ["edge", "action"] } } } }, "timeEvent": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u51FA\u6765\u4E8B", "required": ["type"], "properties": { "type": { "enum": ["now", "mark", "span"] } } }, "plainStrip": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u3067\u306A\u3044\u56F3\u306E\u4E2D\u8EAB\u306E\u5E2F\u3002\u7269\u5DEE\u3057\u3092\u66F8\u3051\u306A\u3044", "properties": { "meters": { "$ref": "#/definitions/absent" } } }, "id": { "type": "string", "pattern": "^[^\\s\\[\\]\u300C\u300D=:]+$" }, "color": { "enum": ["blue", "amber", "green", "violet", "rose", "slate", "coin"] }, "region": { "type": "object", "additionalProperties": false, "required": ["id", "name"], "properties": { "id": { "$ref": "#/definitions/id" }, "name": { "$ref": "#/definitions/text" }, "note": { "$ref": "#/definitions/text" }, "color": { "$ref": "#/definitions/color" }, "icon": { "$ref": "#/definitions/text" } } }, "box": { "type": "object", "additionalProperties": false, "required": ["id", "name"], "properties": { "id": { "$ref": "#/definitions/id" }, "name": { "$ref": "#/definitions/text" }, "sub": { "$ref": "#/definitions/text" }, "color": { "$ref": "#/definitions/color" }, "icon": { "$ref": "#/definitions/text" }, "region": { "$ref": "#/definitions/id" }, "link": { "description": "\u98DB\u3073\u5148\u3002\u63CF\u3044\u305F\u56F3\u3067\u306F\u3053\u306E\u7BB1\u304C\u3053\u3053\u3078\u306E link \u306B\u306A\u308B", "$ref": "#/definitions/url" } } }, "strip": { "type": "object", "additionalProperties": false, "required": ["title", "fields"], "properties": { "title": { "$ref": "#/definitions/text" }, "fields": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/text" } }, "meters": { "description": "\u7269\u5DEE\u3057\u306B\u3059\u308B\u6B04\u3002\u6642\u9593\u8EF8\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/meter" } } } }, "meter": { "description": "\u7269\u5DEE\u3057\u306E\u6B04\u3002line \u306E\u5272\u5408\u306E\u6240\u306B\u7DDA\u3092\u5F15\u304D\u3001set \u306E\u5024\u307E\u3067\u91DD\u3068\u4E00\u7DD2\u306B\u6E80\u3061\u308B", "type": "object", "additionalProperties": false, "required": ["field", "line"], "properties": { "field": { "$ref": "#/definitions/text" }, "line": { "$ref": "#/definitions/ratio" } } }, "ratio": { "description": "\u5272\u5408\u3002\u5206\u6570 (2/3) \u304B\u767E\u5206\u7387 (97%)", "type": "string", "pattern": "^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$" }, "step": { "type": "object", "additionalProperties": false, "required": ["title", "body", "events"], "properties": { "title": { "$ref": "#/definitions/text" }, "body": { "$ref": "#/definitions/text" }, "code": { "$ref": "#/definitions/text" }, "sources": { "description": "\u6BB5\u306E\u51FA\u5178\u3002\u8AAD\u307F\u4E0A\u3052\u306E\u6BB5\u306E\u4E00\u89A7\u306B\u3001\u540D\u524D\u3092 URL \u3078\u306E link \u306B\u3057\u3066\u66F8\u3044\u305F\u9806\u306B\u51FA\u3059", "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/source" } }, "events": { "type": "array", "items": { "$ref": "#/definitions/event" } } } }, "source": { "type": "object", "additionalProperties": false, "required": ["name", "url"], "properties": { "name": { "$ref": "#/definitions/text" }, "url": { "$ref": "#/definitions/url" } } }, "url": { "description": "\u9801\u3092\u79FB\u308B\u5F62\u3002/ \u3067\u59CB\u307E\u308B path \u304B\u3001http:// \u304B https:// \u3067\u59CB\u307E\u308B URL", "type": "string", "pattern": "^(/|https?://)" }, "event": { "description": "\u6BB5\u306E\u4E2D\u3067\u8D77\u304D\u308B\u3053\u3068\u3002\u8D77\u304D\u308B\u9806\u306B\u4E26\u3079\u308B", "type": "object", "required": ["type"], "discriminator": { "propertyName": "type" }, "oneOf": [{ "description": "\u7DDA\u3002\u904B\u3076\u7269\u3092\u8F09\u305B\u3066\u9001\u308B\u5074\u304B\u3089\u53D7\u3051\u308B\u5074\u3078\u8D70\u308B", "type": "object", "additionalProperties": false, "required": ["type", "from", "to", "carry"], "properties": { "type": { "const": "edge" }, "from": { "$ref": "#/definitions/id" }, "to": { "$ref": "#/definitions/id" }, "label": { "$ref": "#/definitions/text" }, "carry": { "$ref": "#/definitions/carry" }, "labelSide": { "description": "\u7DDA\u306E\u540D\u524D\u3092\u7F6E\u304F\u5074 (\u5BC4\u305B\u306E\u6307\u793A)", "enum": ["above", "below", "left", "right"] }, "at": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u62E1\u5927\u306E\u5E2F\u3067\u3001\u7DDA\u3092\u5F15\u304F\u5217\u306E\u76EE\u76DB\u308A", "$ref": "#/definitions/unit" }, "into": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u62E1\u5927\u306E\u5E2F\u3067\u3001\u53D7\u3051\u308B\u7BB1\u3092\u9078\u3076\u5217\u306E\u76EE\u76DB\u308A\u3002\u66F8\u304B\u306A\u3051\u308C\u3070 at \u306E\u5217", "$ref": "#/definitions/unit" } } }, { "description": "\u7BB1\u306E\u4E2D\u306E\u51E6\u7406", "type": "object", "additionalProperties": false, "required": ["type", "box", "label"], "properties": { "type": { "const": "action" }, "box": { "$ref": "#/definitions/id" }, "label": { "$ref": "#/definitions/text" } } }, { "description": "\u7BB1\u306E\u4E0B\u306E\u5C0F\u3055\u306A\u5B57\u306E\u66F8\u304D\u63DB\u3048", "type": "object", "additionalProperties": false, "required": ["type", "box", "text"], "properties": { "type": { "const": "swap" }, "box": { "$ref": "#/definitions/id" }, "text": { "$ref": "#/definitions/text" }, "color": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u7BC0\u76EE\u306E\u4E38\u306E\u8272", "$ref": "#/definitions/color" } } }, { "description": "commit \u3092\u7A4D\u3080\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u7A4D\u3093\u3060\u679D\u306E\u672D\u3068\u3001\u305D\u306E\u679D\u3092\u6307\u3059 HEAD \u304C\u9032\u3080\u3002\u5F53\u3066\u76F4\u3057 (copy) \u306F\u679D\u306E\u672D\u3092\u52D5\u304B\u3055\u305A\u3001merge commit (merge) \u306F\u53D6\u308A\u8FBC\u3080\u679D\u306E\u5148\u7AEF\u3082\u89AA\u306B\u6301\u3064", "type": "object", "additionalProperties": false, "required": ["type", "id", "branch"], "properties": { "type": { "const": "commit" }, "id": { "$ref": "#/definitions/id" }, "branch": { "$ref": "#/definitions/id" }, "copy": { "$ref": "#/definitions/id" }, "merge": { "$ref": "#/definitions/id" }, "hash": { "$ref": "#/definitions/hash" }, "note": { "$ref": "#/definitions/text" } } }, { "description": "\u679D\u3092\u5207\u308B\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u679D\u306E\u672D\u3092 from \u306E commit \u3078\u7F6E\u304D\u3001HEAD \u3092\u305D\u306E\u679D\u3078\u79FB\u3059", "type": "object", "additionalProperties": false, "required": ["type", "branch", "from"], "properties": { "type": { "const": "branch" }, "branch": { "$ref": "#/definitions/id" }, "from": { "$ref": "#/definitions/id" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u4ECA\u306E\u6642\u523B\u306E\u91DD\u3092\u3001to \u306E\u76EE\u76DB\u308A\u306E\u7D42\u308F\u308A\u307E\u3067\u9032\u3081\u308B", "type": "object", "additionalProperties": false, "required": ["type", "to"], "properties": { "type": { "const": "now" }, "to": { "$ref": "#/definitions/unit" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u5370\u306E\u5217 row \u306E\u3001from \u304B\u3089 to \u306E\u76EE\u76DB\u308A\u306E\u5370\u306E\u8272\u3092\u5909\u3048\u308B", "type": "object", "additionalProperties": false, "required": ["type", "row", "from", "to", "color"], "properties": { "type": { "const": "mark" }, "row": { "$ref": "#/definitions/id" }, "from": { "$ref": "#/definitions/unit" }, "to": { "$ref": "#/definitions/unit" }, "color": { "$ref": "#/definitions/color" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E from \u304B\u3089 to \u306E\u76EE\u76DB\u308A\u306B\u3001\u62EC\u5F27\u3068\u5B57\u3092\u51FA\u3059\u3002shape \u304C box \u306A\u3089\u5370\u306E\u5217\u3092\u56F2\u307F\u3001\u5B57\u3092\u7E01\u306E\u672D\u306B\u3059\u308B", "type": "object", "additionalProperties": false, "required": ["type", "from", "to", "text"], "properties": { "type": { "const": "span" }, "from": { "$ref": "#/definitions/unit" }, "to": { "$ref": "#/definitions/unit" }, "text": { "$ref": "#/definitions/text" }, "shape": { "enum": ["box"] }, "color": { "$ref": "#/definitions/color" } } }, { "description": "\u8449\u3092\u51FA\u3059\u3002\u6728\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u66F8\u3044\u305F\u6BB5\u3067\u8449\u306E\u7BB1\u304C\u73FE\u308C\u308B\u3002hash \u3092\u66F8\u304F\u3068\u7BB1\u306B\u5024\u3092\u51FA\u3057\u3001\u540D\u672D\u3092\u8449\u306E\u4E0B\u306E\u672D\u306B\u51FA\u3059", "type": "object", "additionalProperties": false, "required": ["type", "id"], "properties": { "type": { "const": "leaf" }, "id": { "$ref": "#/definitions/id" }, "hash": { "$ref": "#/definitions/hash" } } }, { "description": "1 \u3064\u4EE5\u4E0A\u306E\u5B50\u304B\u3089\u89AA\u3092\u7D44\u3080\u3002\u6728\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u66F8\u3044\u305F\u6BB5\u3067\u89AA\u306E\u7BB1\u3068\u3001\u5B50\u304B\u3089\u89AA\u3078\u306E\u6728\u306E\u7DDA\u304C\u73FE\u308C\u308B", "type": "object", "additionalProperties": false, "required": ["type", "id", "children"], "properties": { "type": { "const": "node" }, "id": { "$ref": "#/definitions/id" }, "children": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/id" } }, "hash": { "$ref": "#/definitions/hash" } } }, { "description": "\u5217\u306E box \u306E\u4E26\u3073\u3092 items \u306B\u66F8\u304D\u63DB\u3048\u308B\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u30C1\u30C3\u30D7\u306F\u524D\u306B\u5C45\u305F\u5217\u304B\u3089\u6ED1\u308A\u3001\u3069\u306E\u5217\u306B\u3082\u5C45\u306A\u304B\u3063\u305F\u30C1\u30C3\u30D7\u306F\u5F3E\u3093\u3067\u73FE\u308C\u3001\u5217\u304B\u3089\u5916\u308C\u305F\u30C1\u30C3\u30D7\u306F\u6D88\u3048\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box", "items"], "properties": { "type": { "const": "line" }, "box": { "$ref": "#/definitions/id" }, "items": { "type": "array", "minItems": 1, "maxItems": 12, "items": { "$ref": "#/definitions/id" } } } }, { "description": "\u5217 box \u306B\u5C01\u3092\u3057\u3066\u3001\u30C1\u30C3\u30D7\u3092\u96A0\u3059\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box"], "properties": { "type": { "const": "seal" }, "box": { "$ref": "#/definitions/id" } } }, { "description": "\u5217 box \u306E\u5C01\u3092\u958B\u3051\u308B\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box"], "properties": { "type": { "const": "open" }, "box": { "$ref": "#/definitions/id" } } }, { "description": "\u5217 box \u3092\u9078\u3076\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u5217\u306E\u7E01\u306B\u8272\u304C\u4ED8\u304D\u3001\u307B\u304B\u306E\u5217\u304C\u8584\u304F\u306A\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box"], "properties": { "type": { "const": "pick" }, "box": { "$ref": "#/definitions/id" } } }, { "description": "\u5217 box \u306E\u53F3\u306B text \u306E\u672D\u3092\u62BC\u3059\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box", "text"], "properties": { "type": { "const": "stamp" }, "box": { "$ref": "#/definitions/id" }, "text": { "$ref": "#/definitions/text" } } }, { "description": "\u4E2D\u8EAB\u306E\u5E2F\u306E\u6B04\u306E\u5024\u3068\u672D", "type": "object", "additionalProperties": false, "required": ["type", "field"], "anyOf": [{ "required": ["value"] }, { "required": ["tag"] }], "properties": { "type": { "const": "strip" }, "field": { "$ref": "#/definitions/text" }, "value": { "$ref": "#/definitions/text" }, "tag": { "$ref": "#/definitions/text" } } }] }, "carry": { "description": "\u7DDA\u306E\u4E0A\u3092\u8D70\u308B\u7269\u3002\u5C01\u7B52 (\u30E1\u30C3\u30BB\u30FC\u30B8\u3084\u8981\u6C42)\u3001\u672D (\u540D\u524D\u306E\u3042\u308B\u5024)\u3001\u786C\u8CA8 (\u4FA1\u5024)\u3001\u7121\u3057", "type": "object", "additionalProperties": false, "required": ["kind"], "properties": { "kind": { "enum": ["envelope", "tag", "coin", "none"] }, "text": { "$ref": "#/definitions/text" } }, "if": { "required": ["kind"], "properties": { "kind": { "const": "tag" } } }, "then": { "required": ["text"] }, "else": { "not": { "required": ["text"] } } }, "sequence": { "description": "\u6642\u7CFB\u5217\u56F3\u306E\u7A2E\u985E\u306E\u6B04\u3002\u751F\u5B58\u7DDA\u3092\u5DE6\u304B\u3089\u4E26\u3079\u308B\u9806", "type": "object", "additionalProperties": false, "required": ["lifelines"], "properties": { "lifelines": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/id" } } } }, "state": { "description": "\u72B6\u614B\u9077\u79FB\u56F3\u306E\u7A2E\u985E\u306E\u6B04\u3002\u6700\u521D\u306E\u6BB5\u3088\u308A\u524D\u306B\u66F8\u3044\u305F\u3001\u79FB\u308C\u308B\u304C\u6BB5\u3067\u901A\u308B\u3068\u306F\u9650\u3089\u306A\u3044\u7DDA", "type": "object", "additionalProperties": false, "required": ["paths"], "properties": { "paths": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/path" } } } }, "git": { "description": "\u679D\u5206\u304B\u308C\u306E\u56F3\u306E\u7A2E\u985E\u306E\u6B04\u3002\u679D\u3092\u4E0A\u304B\u3089\u5E2F\u306B\u4E26\u3079\u308B\u9806", "type": "object", "additionalProperties": false, "required": ["branches"], "properties": { "branches": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/branch" } } } }, "branch": { "description": "\u679D\u3002\u5E2F\u306E\u5DE6\u306B\u540D\u672D\u3068\u6DFB\u3048\u66F8\u304D\u3092\u7F6E\u304F", "type": "object", "additionalProperties": false, "required": ["id"], "properties": { "id": { "$ref": "#/definitions/id" }, "note": { "$ref": "#/definitions/text" } } }, "hash": { "description": "commit \u3068\u6728\u306E\u7BB1\u306E hash\u300216 \u9032\u306E\u5B57\u3067 4 \u304B\u3089 40 \u5B57", "type": "string", "pattern": "^[0-9a-f]{4,40}$" }, "lineup": { "description": "\u5217\u306E\u56F3\u306E\u7A2E\u985E\u306E\u6B04\u3002\u5217\u306B\u4E26\u3079\u308B\u30C1\u30C3\u30D7", "type": "object", "additionalProperties": false, "required": ["items"], "properties": { "items": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/item" } } } }, "item": { "description": "\u30C1\u30C3\u30D7\u3002color \u3092\u66F8\u304B\u306A\u3044\u30C1\u30C3\u30D7\u306F\u8584\u3044\u8272\u3067\u3001label \u3092\u66F8\u304B\u306A\u3044\u30C1\u30C3\u30D7\u306F\u8272\u3060\u3051\u3067\u51FA\u3059", "type": "object", "additionalProperties": false, "required": ["id"], "properties": { "id": { "$ref": "#/definitions/id" }, "color": { "$ref": "#/definitions/color" }, "label": { "description": "\u30C1\u30C3\u30D7\u306B\u8F09\u305B\u308B\u5B57", "type": "string", "minLength": 1, "maxLength": 4 } } }, "time": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u7A2E\u985E\u306E\u6B04\u3002\u76EE\u76DB\u308A\u3001\u533A\u5207\u308A\u3001\u5370\u306E\u5217\u3001\u7BC0\u76EE\u3001\u62E1\u5927\u306E\u7BC4\u56F2", "type": "object", "additionalProperties": false, "required": ["scale", "rows"], "properties": { "scale": { "$ref": "#/definitions/scale" }, "period": { "$ref": "#/definitions/period" }, "rows": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/row" } }, "points": { "type": "array", "items": { "$ref": "#/definitions/point" } }, "zoom": { "$ref": "#/definitions/zoom" } } }, "scale": { "description": "\u76EE\u76DB\u308A\u3002unit \u306E\u540D\u524D\u306E\u76EE\u76DB\u308A\u3092 length \u306E\u9577\u3055\u3067 count \u500B\u4E26\u3079\u3001\u6700\u521D\u306E\u76EE\u76DB\u308A\u306E\u756A\u53F7\u3092 from \u306B\u3059\u308B", "type": "object", "additionalProperties": false, "required": ["unit", "length", "count"], "properties": { "unit": { "$ref": "#/definitions/text" }, "length": { "$ref": "#/definitions/duration" }, "count": { "type": "integer", "minimum": 1 }, "from": { "type": "integer", "minimum": 0 } } }, "duration": { "description": "\u9577\u3055\u3002\u6570\u3068\u5358\u4F4D (ms\u3001s\u3001min\u3001h\u3001d) \u306E\u7D44", "type": "string", "pattern": "^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$" }, "unit": { "description": "\u76EE\u76DB\u308A\u306E\u4F4D\u7F6E\u30020 \u304B\u3089\u6570\u3048\u308B", "type": "integer", "minimum": 0 }, "period": { "description": "\u533A\u5207\u308A\u3002\u76EE\u76DB\u308A length \u500B\u3054\u3068\u306B name \u306E\u533A\u5207\u308A\u3092\u7F6E\u304D\u3001\u6700\u521D\u306E\u533A\u5207\u308A\u306E\u756A\u53F7\u3092 from \u306B\u3059\u308B", "type": "object", "additionalProperties": false, "required": ["name", "length"], "properties": { "name": { "$ref": "#/definitions/text" }, "length": { "type": "integer", "minimum": 1 }, "from": { "type": "integer", "minimum": 0 } } }, "row": { "description": "\u5370\u306E\u5217\u3002\u76EE\u76DB\u308A\u3054\u3068\u306B\u5370\u3092 1 \u3064\u7F6E\u304D\u3001empty \u306E\u76EE\u76DB\u308A\u306F\u7A7A\u304D\u306E\u5370\u306B\u3059\u308B", "type": "object", "additionalProperties": false, "required": ["id", "name"], "properties": { "id": { "$ref": "#/definitions/id" }, "name": { "$ref": "#/definitions/text" }, "color": { "$ref": "#/definitions/color" }, "empty": { "type": "array", "items": { "$ref": "#/definitions/unit" } } } }, "point": { "description": "\u7BC0\u76EE\u3002at \u306E\u76EE\u76DB\u308A\u306E\u5370\u306E\u4E0B\u306B\u65D7\u306E\u4E38\u3068\u540D\u672D\u3092\u7F6E\u304F", "type": "object", "additionalProperties": false, "required": ["id", "at"], "properties": { "id": { "$ref": "#/definitions/id" }, "at": { "$ref": "#/definitions/unit" } } }, "zoom": { "description": "\u62E1\u5927\u306E\u7BC4\u56F2\u3002from \u304B\u3089 to \u306E\u76EE\u76DB\u308A\u3054\u3068\u306B\u62E1\u5927\u306E\u5E2F\u306B\u5217\u3092\u4F5C\u308B", "type": "object", "additionalProperties": false, "required": ["from", "to"], "properties": { "from": { "$ref": "#/definitions/unit" }, "to": { "$ref": "#/definitions/unit" } } }, "path": { "description": "\u79FB\u308C\u308B\u9053\u3002\u9001\u308B\u5074\u306B\u59CB\u307E\u308A\u306E\u5370 start\u3001\u53D7\u3051\u308B\u5074\u306B\u7D42\u308F\u308A\u306E\u5370 finish \u3092\u66F8\u3051\u308B\u3002\u3069\u306E\u6BB5\u306B\u3082\u51FA\u306A\u3044\u9053\u306F\u70B9\u7DDA\u3067\u63CF\u304D\u3001\u904B\u3076\u7269\u3092\u8D70\u3089\u305B\u306A\u3044", "type": "object", "additionalProperties": false, "required": ["from", "to"], "properties": { "from": { "$ref": "#/definitions/id" }, "to": { "$ref": "#/definitions/id" }, "label": { "$ref": "#/definitions/text" } } } } };
215
+ var schema11 = { "title": "dragon \u306E\u56F3\u306E\u539F\u672C", "description": "\u533A\u753B\u3001\u7BB1\u3001\u7DDA\u3001\u904B\u3076\u7269\u3001\u6BB5\u3001\u4E2D\u8EAB\u306E\u5E2F\u306E 6 \u90E8\u54C1\u3092\u5171\u901A\u306E\u9AA8\u7D44\u307F\u306B\u7F6E\u304D\u3001\u56F3\u306E\u7A2E\u985E\u3060\u3051\u306E\u7269\u306F\u7A2E\u985E\u306E\u6B04\u306B\u7F6E\u304F\u3002\u5EA7\u6A19\u306F\u6301\u305F\u306A\u3044\u3002\u7BB1\u306F\u679D\u5206\u304B\u308C\u306E\u56F3\u3068\u6642\u9593\u8EF8\u306E\u56F3\u3068\u6728\u306E\u56F3\u3060\u3051\u304C\u6301\u305F\u306A\u304F\u3066\u3088\u3044\u3002\u5217\u306E\u56F3\u306E\u7BB1\u306F\u5217\u306B\u306A\u308B\u3002", "type": "object", "additionalProperties": false, "required": ["version", "kind", "title", "boxes", "steps"], "properties": { "version": { "description": "\u5F62\u5F0F\u306E\u7248", "type": "integer", "minimum": 1 }, "kind": { "description": "\u56F3\u306E\u7A2E\u985E", "enum": ["sequence", "architecture", "state", "git", "time", "tree", "lineup"] }, "title": { "$ref": "#/definitions/text" }, "view": { "description": "\u898B\u305B\u65B9\u3002\u66F8\u304B\u306A\u3051\u308C\u3070\u5B57\u306E\u5927\u304D\u3055\u3067\u9078\u3076\u3002fixed \u306F\u5168\u4F53\u3092\u6B62\u3081\u3066\u4E2D\u3060\u3051\u52D5\u304B\u3057\u3001follow \u306F\u5BC4\u3063\u3066\u52D5\u304B\u3057\u5168\u4F53\u56F3\u3067\u4ECA\u3069\u3053\u304B\u3092\u793A\u3059", "enum": ["fixed", "follow"] }, "regions": { "type": "array", "items": { "$ref": "#/definitions/region" } }, "boxes": { "type": "array", "items": { "$ref": "#/definitions/box" } }, "strip": { "$ref": "#/definitions/strip" }, "steps": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/step" } }, "sequence": { "$ref": "#/definitions/sequence" }, "state": { "$ref": "#/definitions/state" }, "git": { "$ref": "#/definitions/git" }, "time": { "$ref": "#/definitions/time" }, "lineup": { "$ref": "#/definitions/lineup" } }, "if": { "required": ["kind"], "properties": { "kind": { "const": "sequence" } } }, "then": { "required": ["sequence"], "properties": { "boxes": { "minItems": 1 }, "steps": { "$ref": "#/definitions/plainSteps" }, "strip": { "$ref": "#/definitions/plainStrip" }, "state": { "$ref": "#/definitions/absent" }, "git": { "$ref": "#/definitions/absent" }, "time": { "$ref": "#/definitions/absent" }, "lineup": { "$ref": "#/definitions/absent" } } }, "else": { "properties": { "sequence": { "$ref": "#/definitions/absent" } }, "if": { "required": ["kind"], "properties": { "kind": { "const": "state" } } }, "then": { "properties": { "boxes": { "minItems": 1, "items": { "properties": { "id": { "description": "\u59CB\u307E\u308A\u3068\u7D42\u308F\u308A\u306E\u5370\u306E\u540D\u524D\u306F\u7BB1\u306E\u540D\u672D\u306B\u4F7F\u3048\u306A\u3044", "not": { "enum": ["start", "finish"] } } } } }, "steps": { "$ref": "#/definitions/plainSteps" }, "strip": { "$ref": "#/definitions/plainStrip" }, "git": { "$ref": "#/definitions/absent" }, "time": { "$ref": "#/definitions/absent" }, "lineup": { "$ref": "#/definitions/absent" } } }, "else": { "if": { "required": ["kind"], "properties": { "kind": { "const": "git" } } }, "then": { "required": ["git"], "properties": { "steps": { "$ref": "#/definitions/gitSteps" }, "strip": { "$ref": "#/definitions/plainStrip" }, "state": { "$ref": "#/definitions/absent" }, "regions": { "$ref": "#/definitions/absent" }, "time": { "$ref": "#/definitions/absent" }, "lineup": { "$ref": "#/definitions/absent" } } }, "else": { "if": { "required": ["kind"], "properties": { "kind": { "const": "time" } } }, "then": { "required": ["time"], "properties": { "steps": { "$ref": "#/definitions/timeSteps" }, "state": { "$ref": "#/definitions/absent" }, "git": { "$ref": "#/definitions/absent" }, "regions": { "$ref": "#/definitions/absent" }, "lineup": { "$ref": "#/definitions/absent" } } }, "else": { "if": { "required": ["kind"], "properties": { "kind": { "const": "tree" } } }, "then": { "properties": { "steps": { "$ref": "#/definitions/treeSteps" }, "strip": { "$ref": "#/definitions/plainStrip" }, "state": { "$ref": "#/definitions/absent" }, "git": { "$ref": "#/definitions/absent" }, "time": { "$ref": "#/definitions/absent" }, "regions": { "$ref": "#/definitions/absent" }, "lineup": { "$ref": "#/definitions/absent" } } }, "else": { "if": { "required": ["kind"], "properties": { "kind": { "const": "lineup" } } }, "then": { "required": ["lineup"], "properties": { "boxes": { "minItems": 1, "items": { "properties": { "icon": { "$ref": "#/definitions/absent" }, "link": { "$ref": "#/definitions/absent" }, "region": { "$ref": "#/definitions/absent" } } } }, "steps": { "$ref": "#/definitions/lineupSteps" }, "strip": { "$ref": "#/definitions/plainStrip" }, "state": { "$ref": "#/definitions/absent" }, "git": { "$ref": "#/definitions/absent" }, "time": { "$ref": "#/definitions/absent" }, "regions": { "$ref": "#/definitions/absent" } } }, "else": { "properties": { "boxes": { "minItems": 1 }, "steps": { "$ref": "#/definitions/plainSteps" }, "strip": { "$ref": "#/definitions/plainStrip" }, "state": { "$ref": "#/definitions/absent" }, "git": { "$ref": "#/definitions/absent" }, "time": { "$ref": "#/definitions/absent" }, "lineup": { "$ref": "#/definitions/absent" } } } } } } } }, "definitions": { "text": { "type": "string", "minLength": 1 }, "absent": { "description": "\u3053\u306E\u56F3\u306E\u7A2E\u985E\u3067\u306F\u66F8\u3051\u306A\u3044\u6B04", "not": {} }, "plainSteps": { "description": "\u679D\u5206\u304B\u308C\u306E\u56F3\u3067\u3082\u6642\u9593\u8EF8\u306E\u56F3\u3067\u3082\u6728\u306E\u56F3\u3067\u3082\u5217\u306E\u56F3\u3067\u3082\u306A\u3044\u56F3\u306E\u6BB5\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (commit \u3068 branch) \u3068\u3001\u6642\u9593\u8EF8\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (now \u3068 mark \u3068 span) \u3068\u6B04 (at \u3068 into \u3068 color) \u3068\u3001\u6728\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (leaf \u3068 node) \u3068\u3001\u5217\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (line \u3068 seal \u3068 open \u3068 pick \u3068 stamp) \u3092\u66F8\u3051\u306A\u3044", "items": { "properties": { "events": { "items": { "not": { "$ref": "#/definitions/timeEvent" }, "allOf": [{ "not": { "$ref": "#/definitions/treeEvent" } }, { "$ref": "#/definitions/notLineupEvent" }], "properties": { "type": { "not": { "enum": ["commit", "branch"] } }, "at": { "$ref": "#/definitions/absent" }, "into": { "$ref": "#/definitions/absent" }, "color": { "$ref": "#/definitions/absent" } } } } } } }, "gitSteps": { "description": "\u679D\u5206\u304B\u308C\u306E\u56F3\u306E\u6BB5\u3002\u6642\u9593\u8EF8\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (now \u3068 mark \u3068 span) \u3068\u6B04 (at \u3068 into \u3068 color) \u3068\u3001\u6728\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (leaf \u3068 node) \u3068\u3001\u5217\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (line \u3068 seal \u3068 open \u3068 pick \u3068 stamp) \u3092\u66F8\u3051\u306A\u3044", "items": { "properties": { "events": { "items": { "not": { "$ref": "#/definitions/timeEvent" }, "allOf": [{ "not": { "$ref": "#/definitions/treeEvent" } }, { "$ref": "#/definitions/notLineupEvent" }], "properties": { "at": { "$ref": "#/definitions/absent" }, "into": { "$ref": "#/definitions/absent" }, "color": { "$ref": "#/definitions/absent" } } } } } } }, "timeSteps": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u6BB5\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (commit \u3068 branch) \u3068\u3001\u6728\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (leaf \u3068 node) \u3068\u3001\u5217\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (line \u3068 seal \u3068 open \u3068 pick \u3068 stamp) \u3092\u66F8\u3051\u306A\u3044", "items": { "properties": { "events": { "items": { "allOf": [{ "not": { "$ref": "#/definitions/treeEvent" } }, { "$ref": "#/definitions/notLineupEvent" }], "properties": { "type": { "not": { "enum": ["commit", "branch"] } } } } } } } }, "treeSteps": { "description": "\u6728\u306E\u56F3\u306E\u6BB5\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (commit \u3068 branch) \u3068\u3001\u6642\u9593\u8EF8\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (now \u3068 mark \u3068 span) \u3068\u6B04 (at \u3068 into \u3068 color) \u3068\u3001\u5217\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (line \u3068 seal \u3068 open \u3068 pick \u3068 stamp) \u3092\u66F8\u3051\u306A\u3044", "items": { "properties": { "events": { "items": { "not": { "$ref": "#/definitions/timeEvent" }, "allOf": [{ "$ref": "#/definitions/notLineupEvent" }], "properties": { "type": { "not": { "enum": ["commit", "branch"] } }, "at": { "$ref": "#/definitions/absent" }, "into": { "$ref": "#/definitions/absent" }, "color": { "$ref": "#/definitions/absent" } } } } } } }, "lineupSteps": { "description": "\u5217\u306E\u56F3\u306E\u6BB5\u3002\u7DDA\u3068\u51E6\u7406\u3068\u3001\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (commit \u3068 branch) \u3068\u3001\u6642\u9593\u8EF8\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (now \u3068 mark \u3068 span) \u3068\u6B04 (color) \u3068\u3001\u6728\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (leaf \u3068 node) \u3092\u66F8\u3051\u306A\u3044", "items": { "properties": { "events": { "items": { "not": { "$ref": "#/definitions/timeEvent" }, "allOf": [{ "not": { "$ref": "#/definitions/treeEvent" } }, { "$ref": "#/definitions/notWiredEvent" }], "properties": { "type": { "not": { "enum": ["commit", "branch"] } }, "color": { "$ref": "#/definitions/absent" } } } } } } }, "treeEvent": { "description": "\u6728\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u51FA\u6765\u4E8B", "required": ["type"], "properties": { "type": { "enum": ["leaf", "node"] } } }, "notLineupEvent": { "description": "\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u51FA\u6765\u4E8B\u3092\u66F8\u3051\u306A\u3044", "not": { "required": ["type"], "properties": { "type": { "enum": ["line", "seal", "open", "pick", "stamp"] } } } }, "notWiredEvent": { "description": "\u7BB1\u3068\u7DDA\u306E\u56F3\u306E\u51FA\u6765\u4E8B\u3092\u66F8\u3051\u306A\u3044", "not": { "required": ["type"], "properties": { "type": { "enum": ["edge", "action"] } } } }, "timeEvent": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u51FA\u6765\u4E8B", "required": ["type"], "properties": { "type": { "enum": ["now", "mark", "span"] } } }, "plainStrip": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u3067\u306A\u3044\u56F3\u306E\u4E2D\u8EAB\u306E\u5E2F\u3002\u7269\u5DEE\u3057\u3092\u66F8\u3051\u306A\u3044", "properties": { "meters": { "$ref": "#/definitions/absent" } } }, "id": { "type": "string", "pattern": "^[^\\s\\[\\]\u300C\u300D=:]+$" }, "color": { "enum": ["blue", "amber", "green", "violet", "rose", "slate", "coin"] }, "icon": { "description": "\u7BB1\u3068\u533A\u753B\u306E\u30A2\u30A4\u30B3\u30F3\u540D\u3002\u63CF\u304F\u90E8\u54C1\u306E\u30A2\u30A4\u30B3\u30F3\u306E\u8868 (ICONS) \u306B\u5728\u308B\u540D\u524D\u3060\u3051", "enum": ["app", "router", "on", "off", "pool", "db", "exe", "idx", "sign", "env", "lock", "check", "flag", "x", "chain", "net", "user", "server", "key", "shield", "globe", "bolt", "doc", "box", "truck", "card", "cart", "clock", "branch", "cloud", "refresh", "undo", "yen", "layers", "code", "paint", "tree", "block"] }, "region": { "type": "object", "additionalProperties": false, "required": ["id", "name"], "properties": { "id": { "$ref": "#/definitions/id" }, "name": { "$ref": "#/definitions/text" }, "note": { "$ref": "#/definitions/text" }, "color": { "$ref": "#/definitions/color" }, "icon": { "$ref": "#/definitions/icon" } } }, "box": { "type": "object", "additionalProperties": false, "required": ["id", "name"], "properties": { "id": { "$ref": "#/definitions/id" }, "name": { "$ref": "#/definitions/text" }, "sub": { "$ref": "#/definitions/text" }, "color": { "$ref": "#/definitions/color" }, "icon": { "$ref": "#/definitions/icon" }, "region": { "$ref": "#/definitions/id" }, "link": { "description": "\u98DB\u3073\u5148\u3002\u63CF\u3044\u305F\u56F3\u3067\u306F\u3053\u306E\u7BB1\u304C\u3053\u3053\u3078\u306E link \u306B\u306A\u308B", "$ref": "#/definitions/url" } } }, "strip": { "type": "object", "additionalProperties": false, "required": ["title", "fields"], "properties": { "title": { "$ref": "#/definitions/text" }, "fields": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/text" } }, "meters": { "description": "\u7269\u5DEE\u3057\u306B\u3059\u308B\u6B04\u3002\u6642\u9593\u8EF8\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/meter" } } } }, "meter": { "description": "\u7269\u5DEE\u3057\u306E\u6B04\u3002line \u306E\u5272\u5408\u306E\u6240\u306B\u7DDA\u3092\u5F15\u304D\u3001set \u306E\u5024\u307E\u3067\u91DD\u3068\u4E00\u7DD2\u306B\u6E80\u3061\u308B", "type": "object", "additionalProperties": false, "required": ["field", "line"], "properties": { "field": { "$ref": "#/definitions/text" }, "line": { "$ref": "#/definitions/ratio" } } }, "ratio": { "description": "\u5272\u5408\u3002\u5206\u6570 (2/3) \u304B\u767E\u5206\u7387 (97%)", "type": "string", "pattern": "^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$" }, "step": { "type": "object", "additionalProperties": false, "required": ["title", "body", "events"], "properties": { "title": { "$ref": "#/definitions/text" }, "body": { "$ref": "#/definitions/text" }, "code": { "$ref": "#/definitions/text" }, "sources": { "description": "\u6BB5\u306E\u51FA\u5178\u3002\u8AAD\u307F\u4E0A\u3052\u306E\u6BB5\u306E\u4E00\u89A7\u306B\u3001\u540D\u524D\u3092 URL \u3078\u306E link \u306B\u3057\u3066\u66F8\u3044\u305F\u9806\u306B\u51FA\u3059", "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/source" } }, "events": { "type": "array", "items": { "$ref": "#/definitions/event" } } } }, "source": { "type": "object", "additionalProperties": false, "required": ["name", "url"], "properties": { "name": { "$ref": "#/definitions/text" }, "url": { "$ref": "#/definitions/url" } } }, "url": { "description": "\u9801\u3092\u79FB\u308B\u5F62\u3002/ \u3067\u59CB\u307E\u308B path \u304B\u3001http:// \u304B https:// \u3067\u59CB\u307E\u308B URL", "type": "string", "pattern": "^(/|https?://)" }, "event": { "description": "\u6BB5\u306E\u4E2D\u3067\u8D77\u304D\u308B\u3053\u3068\u3002\u8D77\u304D\u308B\u9806\u306B\u4E26\u3079\u308B", "type": "object", "required": ["type"], "discriminator": { "propertyName": "type" }, "oneOf": [{ "description": "\u7DDA\u3002\u904B\u3076\u7269\u3092\u8F09\u305B\u3066\u9001\u308B\u5074\u304B\u3089\u53D7\u3051\u308B\u5074\u3078\u8D70\u308B", "type": "object", "additionalProperties": false, "required": ["type", "from", "to", "carry"], "properties": { "type": { "const": "edge" }, "from": { "$ref": "#/definitions/id" }, "to": { "$ref": "#/definitions/id" }, "label": { "$ref": "#/definitions/text" }, "carry": { "$ref": "#/definitions/carry" }, "labelSide": { "description": "\u7DDA\u306E\u540D\u524D\u3092\u7F6E\u304F\u5074 (\u5BC4\u305B\u306E\u6307\u793A)", "enum": ["above", "below", "left", "right"] }, "at": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u62E1\u5927\u306E\u5E2F\u3067\u3001\u7DDA\u3092\u5F15\u304F\u5217\u306E\u76EE\u76DB\u308A", "$ref": "#/definitions/unit" }, "into": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u62E1\u5927\u306E\u5E2F\u3067\u3001\u53D7\u3051\u308B\u7BB1\u3092\u9078\u3076\u5217\u306E\u76EE\u76DB\u308A\u3002\u66F8\u304B\u306A\u3051\u308C\u3070 at \u306E\u5217", "$ref": "#/definitions/unit" } } }, { "description": "\u7BB1\u306E\u4E2D\u306E\u51E6\u7406", "type": "object", "additionalProperties": false, "required": ["type", "box", "label"], "properties": { "type": { "const": "action" }, "box": { "$ref": "#/definitions/id" }, "label": { "$ref": "#/definitions/text" } } }, { "description": "\u7BB1\u306E\u4E0B\u306E\u5C0F\u3055\u306A\u5B57\u306E\u66F8\u304D\u63DB\u3048", "type": "object", "additionalProperties": false, "required": ["type", "box", "text"], "properties": { "type": { "const": "swap" }, "box": { "$ref": "#/definitions/id" }, "text": { "$ref": "#/definitions/text" }, "color": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u7BC0\u76EE\u306E\u4E38\u306E\u8272", "$ref": "#/definitions/color" } } }, { "description": "commit \u3092\u7A4D\u3080\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u7A4D\u3093\u3060\u679D\u306E\u672D\u3068\u3001\u305D\u306E\u679D\u3092\u6307\u3059 HEAD \u304C\u9032\u3080\u3002\u5F53\u3066\u76F4\u3057 (copy) \u306F\u679D\u306E\u672D\u3092\u52D5\u304B\u3055\u305A\u3001merge commit (merge) \u306F\u53D6\u308A\u8FBC\u3080\u679D\u306E\u5148\u7AEF\u3082\u89AA\u306B\u6301\u3064", "type": "object", "additionalProperties": false, "required": ["type", "id", "branch"], "properties": { "type": { "const": "commit" }, "id": { "$ref": "#/definitions/id" }, "branch": { "$ref": "#/definitions/id" }, "copy": { "$ref": "#/definitions/id" }, "merge": { "$ref": "#/definitions/id" }, "hash": { "$ref": "#/definitions/hash" }, "note": { "$ref": "#/definitions/text" } } }, { "description": "\u679D\u3092\u5207\u308B\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u679D\u306E\u672D\u3092 from \u306E commit \u3078\u7F6E\u304D\u3001HEAD \u3092\u305D\u306E\u679D\u3078\u79FB\u3059", "type": "object", "additionalProperties": false, "required": ["type", "branch", "from"], "properties": { "type": { "const": "branch" }, "branch": { "$ref": "#/definitions/id" }, "from": { "$ref": "#/definitions/id" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u4ECA\u306E\u6642\u523B\u306E\u91DD\u3092\u3001to \u306E\u76EE\u76DB\u308A\u306E\u7D42\u308F\u308A\u307E\u3067\u9032\u3081\u308B", "type": "object", "additionalProperties": false, "required": ["type", "to"], "properties": { "type": { "const": "now" }, "to": { "$ref": "#/definitions/unit" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u5370\u306E\u5217 row \u306E\u3001from \u304B\u3089 to \u306E\u76EE\u76DB\u308A\u306E\u5370\u306E\u8272\u3092\u5909\u3048\u308B", "type": "object", "additionalProperties": false, "required": ["type", "row", "from", "to", "color"], "properties": { "type": { "const": "mark" }, "row": { "$ref": "#/definitions/id" }, "from": { "$ref": "#/definitions/unit" }, "to": { "$ref": "#/definitions/unit" }, "color": { "$ref": "#/definitions/color" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E from \u304B\u3089 to \u306E\u76EE\u76DB\u308A\u306B\u3001\u62EC\u5F27\u3068\u5B57\u3092\u51FA\u3059\u3002shape \u304C box \u306A\u3089\u5370\u306E\u5217\u3092\u56F2\u307F\u3001\u5B57\u3092\u7E01\u306E\u672D\u306B\u3059\u308B", "type": "object", "additionalProperties": false, "required": ["type", "from", "to", "text"], "properties": { "type": { "const": "span" }, "from": { "$ref": "#/definitions/unit" }, "to": { "$ref": "#/definitions/unit" }, "text": { "$ref": "#/definitions/text" }, "shape": { "enum": ["box"] }, "color": { "$ref": "#/definitions/color" } } }, { "description": "\u8449\u3092\u51FA\u3059\u3002\u6728\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u66F8\u3044\u305F\u6BB5\u3067\u8449\u306E\u7BB1\u304C\u73FE\u308C\u308B\u3002hash \u3092\u66F8\u304F\u3068\u7BB1\u306B\u5024\u3092\u51FA\u3057\u3001\u540D\u672D\u3092\u8449\u306E\u4E0B\u306E\u672D\u306B\u51FA\u3059", "type": "object", "additionalProperties": false, "required": ["type", "id"], "properties": { "type": { "const": "leaf" }, "id": { "$ref": "#/definitions/id" }, "hash": { "$ref": "#/definitions/hash" } } }, { "description": "1 \u3064\u4EE5\u4E0A\u306E\u5B50\u304B\u3089\u89AA\u3092\u7D44\u3080\u3002\u6728\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u66F8\u3044\u305F\u6BB5\u3067\u89AA\u306E\u7BB1\u3068\u3001\u5B50\u304B\u3089\u89AA\u3078\u306E\u6728\u306E\u7DDA\u304C\u73FE\u308C\u308B", "type": "object", "additionalProperties": false, "required": ["type", "id", "children"], "properties": { "type": { "const": "node" }, "id": { "$ref": "#/definitions/id" }, "children": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/id" } }, "hash": { "$ref": "#/definitions/hash" } } }, { "description": "\u5217\u306E box \u306E\u4E26\u3073\u3092 items \u306B\u66F8\u304D\u63DB\u3048\u308B\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u30C1\u30C3\u30D7\u306F\u524D\u306B\u5C45\u305F\u5217\u304B\u3089\u6ED1\u308A\u3001\u3069\u306E\u5217\u306B\u3082\u5C45\u306A\u304B\u3063\u305F\u30C1\u30C3\u30D7\u306F\u5F3E\u3093\u3067\u73FE\u308C\u3001\u5217\u304B\u3089\u5916\u308C\u305F\u30C1\u30C3\u30D7\u306F\u6D88\u3048\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box", "items"], "properties": { "type": { "const": "line" }, "box": { "$ref": "#/definitions/id" }, "items": { "type": "array", "minItems": 1, "maxItems": 12, "items": { "$ref": "#/definitions/id" } } } }, { "description": "\u5217 box \u306B\u5C01\u3092\u3057\u3066\u3001\u30C1\u30C3\u30D7\u3092\u96A0\u3059\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box"], "properties": { "type": { "const": "seal" }, "box": { "$ref": "#/definitions/id" } } }, { "description": "\u5217 box \u306E\u5C01\u3092\u958B\u3051\u308B\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box"], "properties": { "type": { "const": "open" }, "box": { "$ref": "#/definitions/id" } } }, { "description": "\u5217 box \u3092\u9078\u3076\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u5217\u306E\u7E01\u306B\u8272\u304C\u4ED8\u304D\u3001\u307B\u304B\u306E\u5217\u304C\u8584\u304F\u306A\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box"], "properties": { "type": { "const": "pick" }, "box": { "$ref": "#/definitions/id" } } }, { "description": "\u5217 box \u306E\u53F3\u306B text \u306E\u672D\u3092\u62BC\u3059\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box", "text"], "properties": { "type": { "const": "stamp" }, "box": { "$ref": "#/definitions/id" }, "text": { "$ref": "#/definitions/text" } } }, { "description": "\u4E2D\u8EAB\u306E\u5E2F\u306E\u6B04\u306E\u5024\u3068\u672D", "type": "object", "additionalProperties": false, "required": ["type", "field"], "anyOf": [{ "required": ["value"] }, { "required": ["tag"] }], "properties": { "type": { "const": "strip" }, "field": { "$ref": "#/definitions/text" }, "value": { "$ref": "#/definitions/text" }, "tag": { "$ref": "#/definitions/text" } } }] }, "carry": { "description": "\u7DDA\u306E\u4E0A\u3092\u8D70\u308B\u7269\u3002\u5C01\u7B52 (\u30E1\u30C3\u30BB\u30FC\u30B8\u3084\u8981\u6C42)\u3001\u672D (\u540D\u524D\u306E\u3042\u308B\u5024)\u3001\u786C\u8CA8 (\u4FA1\u5024)\u3001\u7121\u3057", "type": "object", "additionalProperties": false, "required": ["kind"], "properties": { "kind": { "enum": ["envelope", "tag", "coin", "none"] }, "text": { "$ref": "#/definitions/text" } }, "if": { "required": ["kind"], "properties": { "kind": { "const": "tag" } } }, "then": { "required": ["text"] }, "else": { "not": { "required": ["text"] } } }, "sequence": { "description": "\u6642\u7CFB\u5217\u56F3\u306E\u7A2E\u985E\u306E\u6B04\u3002\u751F\u5B58\u7DDA\u3092\u5DE6\u304B\u3089\u4E26\u3079\u308B\u9806", "type": "object", "additionalProperties": false, "required": ["lifelines"], "properties": { "lifelines": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/id" } } } }, "state": { "description": "\u72B6\u614B\u9077\u79FB\u56F3\u306E\u7A2E\u985E\u306E\u6B04\u3002\u6700\u521D\u306E\u6BB5\u3088\u308A\u524D\u306B\u66F8\u3044\u305F\u3001\u79FB\u308C\u308B\u304C\u6BB5\u3067\u901A\u308B\u3068\u306F\u9650\u3089\u306A\u3044\u7DDA", "type": "object", "additionalProperties": false, "required": ["paths"], "properties": { "paths": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/path" } } } }, "git": { "description": "\u679D\u5206\u304B\u308C\u306E\u56F3\u306E\u7A2E\u985E\u306E\u6B04\u3002\u679D\u3092\u4E0A\u304B\u3089\u5E2F\u306B\u4E26\u3079\u308B\u9806", "type": "object", "additionalProperties": false, "required": ["branches"], "properties": { "branches": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/branch" } } } }, "branch": { "description": "\u679D\u3002\u5E2F\u306E\u5DE6\u306B\u540D\u672D\u3068\u6DFB\u3048\u66F8\u304D\u3092\u7F6E\u304F", "type": "object", "additionalProperties": false, "required": ["id"], "properties": { "id": { "$ref": "#/definitions/id" }, "note": { "$ref": "#/definitions/text" } } }, "hash": { "description": "commit \u3068\u6728\u306E\u7BB1\u306E hash\u300216 \u9032\u306E\u5B57\u3067 4 \u304B\u3089 40 \u5B57", "type": "string", "pattern": "^[0-9a-f]{4,40}$" }, "lineup": { "description": "\u5217\u306E\u56F3\u306E\u7A2E\u985E\u306E\u6B04\u3002\u5217\u306B\u4E26\u3079\u308B\u30C1\u30C3\u30D7", "type": "object", "additionalProperties": false, "required": ["items"], "properties": { "items": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/item" } } } }, "item": { "description": "\u30C1\u30C3\u30D7\u3002color \u3092\u66F8\u304B\u306A\u3044\u30C1\u30C3\u30D7\u306F\u8584\u3044\u8272\u3067\u3001label \u3092\u66F8\u304B\u306A\u3044\u30C1\u30C3\u30D7\u306F\u8272\u3060\u3051\u3067\u51FA\u3059", "type": "object", "additionalProperties": false, "required": ["id"], "properties": { "id": { "$ref": "#/definitions/id" }, "color": { "$ref": "#/definitions/color" }, "label": { "description": "\u30C1\u30C3\u30D7\u306B\u8F09\u305B\u308B\u5B57", "type": "string", "minLength": 1, "maxLength": 4 } } }, "time": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u7A2E\u985E\u306E\u6B04\u3002\u76EE\u76DB\u308A\u3001\u533A\u5207\u308A\u3001\u5370\u306E\u5217\u3001\u7BC0\u76EE\u3001\u62E1\u5927\u306E\u7BC4\u56F2", "type": "object", "additionalProperties": false, "required": ["scale", "rows"], "properties": { "scale": { "$ref": "#/definitions/scale" }, "period": { "$ref": "#/definitions/period" }, "rows": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/row" } }, "points": { "type": "array", "items": { "$ref": "#/definitions/point" } }, "zoom": { "$ref": "#/definitions/zoom" } } }, "scale": { "description": "\u76EE\u76DB\u308A\u3002unit \u306E\u540D\u524D\u306E\u76EE\u76DB\u308A\u3092 length \u306E\u9577\u3055\u3067 count \u500B\u4E26\u3079\u3001\u6700\u521D\u306E\u76EE\u76DB\u308A\u306E\u756A\u53F7\u3092 from \u306B\u3059\u308B", "type": "object", "additionalProperties": false, "required": ["unit", "length", "count"], "properties": { "unit": { "$ref": "#/definitions/text" }, "length": { "$ref": "#/definitions/duration" }, "count": { "type": "integer", "minimum": 1 }, "from": { "type": "integer", "minimum": 0 } } }, "duration": { "description": "\u9577\u3055\u3002\u6570\u3068\u5358\u4F4D (ms\u3001s\u3001min\u3001h\u3001d) \u306E\u7D44", "type": "string", "pattern": "^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$" }, "unit": { "description": "\u76EE\u76DB\u308A\u306E\u4F4D\u7F6E\u30020 \u304B\u3089\u6570\u3048\u308B", "type": "integer", "minimum": 0 }, "period": { "description": "\u533A\u5207\u308A\u3002\u76EE\u76DB\u308A length \u500B\u3054\u3068\u306B name \u306E\u533A\u5207\u308A\u3092\u7F6E\u304D\u3001\u6700\u521D\u306E\u533A\u5207\u308A\u306E\u756A\u53F7\u3092 from \u306B\u3059\u308B", "type": "object", "additionalProperties": false, "required": ["name", "length"], "properties": { "name": { "$ref": "#/definitions/text" }, "length": { "type": "integer", "minimum": 1 }, "from": { "type": "integer", "minimum": 0 } } }, "row": { "description": "\u5370\u306E\u5217\u3002\u76EE\u76DB\u308A\u3054\u3068\u306B\u5370\u3092 1 \u3064\u7F6E\u304D\u3001empty \u306E\u76EE\u76DB\u308A\u306F\u7A7A\u304D\u306E\u5370\u306B\u3059\u308B", "type": "object", "additionalProperties": false, "required": ["id", "name"], "properties": { "id": { "$ref": "#/definitions/id" }, "name": { "$ref": "#/definitions/text" }, "color": { "$ref": "#/definitions/color" }, "empty": { "type": "array", "items": { "$ref": "#/definitions/unit" } } } }, "point": { "description": "\u7BC0\u76EE\u3002at \u306E\u76EE\u76DB\u308A\u306E\u5370\u306E\u4E0B\u306B\u65D7\u306E\u4E38\u3068\u540D\u672D\u3092\u7F6E\u304F", "type": "object", "additionalProperties": false, "required": ["id", "at"], "properties": { "id": { "$ref": "#/definitions/id" }, "at": { "$ref": "#/definitions/unit" } } }, "zoom": { "description": "\u62E1\u5927\u306E\u7BC4\u56F2\u3002from \u304B\u3089 to \u306E\u76EE\u76DB\u308A\u3054\u3068\u306B\u62E1\u5927\u306E\u5E2F\u306B\u5217\u3092\u4F5C\u308B", "type": "object", "additionalProperties": false, "required": ["from", "to"], "properties": { "from": { "$ref": "#/definitions/unit" }, "to": { "$ref": "#/definitions/unit" } } }, "path": { "description": "\u79FB\u308C\u308B\u9053\u3002\u9001\u308B\u5074\u306B\u59CB\u307E\u308A\u306E\u5370 start\u3001\u53D7\u3051\u308B\u5074\u306B\u7D42\u308F\u308A\u306E\u5370 finish \u3092\u66F8\u3051\u308B\u3002\u3069\u306E\u6BB5\u306B\u3082\u51FA\u306A\u3044\u9053\u306F\u70B9\u7DDA\u3067\u63CF\u304D\u3001\u904B\u3076\u7269\u3092\u8D70\u3089\u305B\u306A\u3044", "type": "object", "additionalProperties": false, "required": ["from", "to"], "properties": { "from": { "$ref": "#/definitions/id" }, "to": { "$ref": "#/definitions/id" }, "label": { "$ref": "#/definitions/text" } } } } };
215
216
  function validate11(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
216
217
  let vErrors = null;
217
218
  let errors = 0;
@@ -1175,6 +1176,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
1175
1176
  return errors === 0;
1176
1177
  }
1177
1178
  var schema79 = { "enum": ["blue", "amber", "green", "violet", "rose", "slate", "coin"] };
1179
+ var schema80 = { "description": "\u7BB1\u3068\u533A\u753B\u306E\u30A2\u30A4\u30B3\u30F3\u540D\u3002\u63CF\u304F\u90E8\u54C1\u306E\u30A2\u30A4\u30B3\u30F3\u306E\u8868 (ICONS) \u306B\u5728\u308B\u540D\u524D\u3060\u3051", "enum": ["app", "router", "on", "off", "pool", "db", "exe", "idx", "sign", "env", "lock", "check", "flag", "x", "chain", "net", "user", "server", "key", "shield", "globe", "bolt", "doc", "box", "truck", "card", "cart", "clock", "branch", "cloud", "refresh", "undo", "yen", "layers", "code", "paint", "tree", "block"] };
1178
1180
  var pattern0 = new RegExp("^[^\\s\\[\\]\u300C\u300D=:]+$", "u");
1179
1181
  var func3 = ucs2length;
1180
1182
  function validate30(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
@@ -1290,32 +1292,22 @@ function validate30(data, { instancePath = "", parentData, parentDataProperty, r
1290
1292
  }
1291
1293
  if (data.icon !== void 0) {
1292
1294
  let data4 = data.icon;
1293
- if (typeof data4 === "string") {
1294
- if (func3(data4) < 1) {
1295
- const err10 = { instancePath: instancePath + "/icon", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
1296
- if (vErrors === null) {
1297
- vErrors = [err10];
1298
- } else {
1299
- vErrors.push(err10);
1300
- }
1301
- errors++;
1302
- }
1303
- } else {
1304
- const err11 = { instancePath: instancePath + "/icon", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1295
+ if (!(data4 === "app" || data4 === "router" || data4 === "on" || data4 === "off" || data4 === "pool" || data4 === "db" || data4 === "exe" || data4 === "idx" || data4 === "sign" || data4 === "env" || data4 === "lock" || data4 === "check" || data4 === "flag" || data4 === "x" || data4 === "chain" || data4 === "net" || data4 === "user" || data4 === "server" || data4 === "key" || data4 === "shield" || data4 === "globe" || data4 === "bolt" || data4 === "doc" || data4 === "box" || data4 === "truck" || data4 === "card" || data4 === "cart" || data4 === "clock" || data4 === "branch" || data4 === "cloud" || data4 === "refresh" || data4 === "undo" || data4 === "yen" || data4 === "layers" || data4 === "code" || data4 === "paint" || data4 === "tree" || data4 === "block")) {
1296
+ const err10 = { instancePath: instancePath + "/icon", schemaPath: "#/definitions/icon/enum", keyword: "enum", params: { allowedValues: schema80.enum }, message: "must be equal to one of the allowed values" };
1305
1297
  if (vErrors === null) {
1306
- vErrors = [err11];
1298
+ vErrors = [err10];
1307
1299
  } else {
1308
- vErrors.push(err11);
1300
+ vErrors.push(err10);
1309
1301
  }
1310
1302
  errors++;
1311
1303
  }
1312
1304
  }
1313
1305
  } else {
1314
- const err12 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1306
+ const err11 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1315
1307
  if (vErrors === null) {
1316
- vErrors = [err12];
1308
+ vErrors = [err11];
1317
1309
  } else {
1318
- vErrors.push(err12);
1310
+ vErrors.push(err11);
1319
1311
  }
1320
1312
  errors++;
1321
1313
  }
@@ -1436,22 +1428,12 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
1436
1428
  }
1437
1429
  if (data.icon !== void 0) {
1438
1430
  let data4 = data.icon;
1439
- if (typeof data4 === "string") {
1440
- if (func3(data4) < 1) {
1441
- const err10 = { instancePath: instancePath + "/icon", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
1442
- if (vErrors === null) {
1443
- vErrors = [err10];
1444
- } else {
1445
- vErrors.push(err10);
1446
- }
1447
- errors++;
1448
- }
1449
- } else {
1450
- const err11 = { instancePath: instancePath + "/icon", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1431
+ if (!(data4 === "app" || data4 === "router" || data4 === "on" || data4 === "off" || data4 === "pool" || data4 === "db" || data4 === "exe" || data4 === "idx" || data4 === "sign" || data4 === "env" || data4 === "lock" || data4 === "check" || data4 === "flag" || data4 === "x" || data4 === "chain" || data4 === "net" || data4 === "user" || data4 === "server" || data4 === "key" || data4 === "shield" || data4 === "globe" || data4 === "bolt" || data4 === "doc" || data4 === "box" || data4 === "truck" || data4 === "card" || data4 === "cart" || data4 === "clock" || data4 === "branch" || data4 === "cloud" || data4 === "refresh" || data4 === "undo" || data4 === "yen" || data4 === "layers" || data4 === "code" || data4 === "paint" || data4 === "tree" || data4 === "block")) {
1432
+ const err10 = { instancePath: instancePath + "/icon", schemaPath: "#/definitions/icon/enum", keyword: "enum", params: { allowedValues: schema80.enum }, message: "must be equal to one of the allowed values" };
1451
1433
  if (vErrors === null) {
1452
- vErrors = [err11];
1434
+ vErrors = [err10];
1453
1435
  } else {
1454
- vErrors.push(err11);
1436
+ vErrors.push(err10);
1455
1437
  }
1456
1438
  errors++;
1457
1439
  }
@@ -1460,20 +1442,20 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
1460
1442
  let data5 = data.region;
1461
1443
  if (typeof data5 === "string") {
1462
1444
  if (!pattern0.test(data5)) {
1463
- const err12 = { instancePath: instancePath + "/region", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
1445
+ const err11 = { instancePath: instancePath + "/region", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
1464
1446
  if (vErrors === null) {
1465
- vErrors = [err12];
1447
+ vErrors = [err11];
1466
1448
  } else {
1467
- vErrors.push(err12);
1449
+ vErrors.push(err11);
1468
1450
  }
1469
1451
  errors++;
1470
1452
  }
1471
1453
  } else {
1472
- const err13 = { instancePath: instancePath + "/region", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1454
+ const err12 = { instancePath: instancePath + "/region", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1473
1455
  if (vErrors === null) {
1474
- vErrors = [err13];
1456
+ vErrors = [err12];
1475
1457
  } else {
1476
- vErrors.push(err13);
1458
+ vErrors.push(err12);
1477
1459
  }
1478
1460
  errors++;
1479
1461
  }
@@ -1482,30 +1464,30 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
1482
1464
  let data6 = data.link;
1483
1465
  if (typeof data6 === "string") {
1484
1466
  if (!pattern3.test(data6)) {
1485
- const err14 = { instancePath: instancePath + "/link", schemaPath: "#/definitions/url/pattern", keyword: "pattern", params: { pattern: "^(/|https?://)" }, message: 'must match pattern "^(/|https?://)"' };
1467
+ const err13 = { instancePath: instancePath + "/link", schemaPath: "#/definitions/url/pattern", keyword: "pattern", params: { pattern: "^(/|https?://)" }, message: 'must match pattern "^(/|https?://)"' };
1486
1468
  if (vErrors === null) {
1487
- vErrors = [err14];
1469
+ vErrors = [err13];
1488
1470
  } else {
1489
- vErrors.push(err14);
1471
+ vErrors.push(err13);
1490
1472
  }
1491
1473
  errors++;
1492
1474
  }
1493
1475
  } else {
1494
- const err15 = { instancePath: instancePath + "/link", schemaPath: "#/definitions/url/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1476
+ const err14 = { instancePath: instancePath + "/link", schemaPath: "#/definitions/url/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1495
1477
  if (vErrors === null) {
1496
- vErrors = [err15];
1478
+ vErrors = [err14];
1497
1479
  } else {
1498
- vErrors.push(err15);
1480
+ vErrors.push(err14);
1499
1481
  }
1500
1482
  errors++;
1501
1483
  }
1502
1484
  }
1503
1485
  } else {
1504
- const err16 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1486
+ const err15 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1505
1487
  if (vErrors === null) {
1506
- vErrors = [err16];
1488
+ vErrors = [err15];
1507
1489
  } else {
1508
- vErrors.push(err16);
1490
+ vErrors.push(err15);
1509
1491
  }
1510
1492
  errors++;
1511
1493
  }
@@ -6565,6 +6547,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
6565
6547
 
6566
6548
  // src/schema.ts
6567
6549
  var COLORS = ["blue", "amber", "green", "violet", "rose", "slate", "coin"];
6550
+ var ICON_NAMES = Object.keys(ICONS);
6568
6551
  var EVENT_TYPES = ["edge", "action", "swap", "strip", "commit", "branch", "now", "mark", "span", "leaf", "node", "line", "seal", "open", "pick", "stamp"];
6569
6552
  var ABSENT = "#/definitions/absent/not";
6570
6553
  var ABSENT_KINDS = {
@@ -6741,6 +6724,7 @@ var ja2 = () => {
6741
6724
  attrTwice: (key2) => `${key2} \u306F 1 \u3064\u306E\u884C\u306B 1 \u3064\u307E\u3067`,
6742
6725
  badAttr: (key2, allowed) => `${key2} \u306F\u3053\u306E\u884C\u306B\u66F8\u3051\u306A\u3044\u5C5E\u6027\u3002\u66F8\u3051\u308B\u306E\u306F ${list(allowed)}`,
6743
6726
  badColor: `color \u306F ${list(COLORS)} \u306E\u3069\u308C\u304B`,
6727
+ badIcon: `icon \u306F ${list(ICON_NAMES)} \u306E\u3069\u308C\u304B`,
6744
6728
  badView: `view \u306F ${list(VIEWS)} \u306E\u3069\u308C\u304B`,
6745
6729
  badCarry: `carry \u306F ${list(CARRIES)} \u306E\u3069\u308C\u304B\u3002\u672D\u306F tag: <\u5024> \u3067\u66F8\u304F`,
6746
6730
  badSide: `side \u306F ${list(SIDES)} \u306E\u3069\u308C\u304B`,
@@ -6879,6 +6863,7 @@ var en2 = () => {
6879
6863
  attrTwice: (key2) => `Write ${key2} only once on a line`,
6880
6864
  badAttr: (key2, allowed) => `${key2} cannot be written on this line. Write ${list(allowed)}`,
6881
6865
  badColor: `color is one of ${list(COLORS)}`,
6866
+ badIcon: `icon is one of ${list(ICON_NAMES)}`,
6882
6867
  badView: `view is one of ${list(VIEWS)}`,
6883
6868
  badCarry: `carry is one of ${list(CARRIES)}. Write a tag as tag: <value>`,
6884
6869
  badSide: `side is one of ${list(SIDES)}`,
@@ -7138,12 +7123,13 @@ function readDeclared(source, word, allowed, m) {
7138
7123
  function lookOf(source, attrs2, m) {
7139
7124
  const color = attrs2.get("color");
7140
7125
  if (color && !isOneOf(COLORS, color.value)) throw fail(source, color.at, m.badColor);
7126
+ const icon = attrs2.get("icon");
7127
+ if (icon && !ICON_NAMES.includes(icon.value)) throw fail(source, icon.at, m.badIcon);
7141
7128
  const note = attrs2.get("note")?.value;
7142
- const icon = attrs2.get("icon")?.value;
7143
7129
  return {
7144
7130
  ...note !== void 0 ? { note } : {},
7145
7131
  ...color ? { color: color.value } : {},
7146
- ...icon !== void 0 ? { icon } : {}
7132
+ ...icon ? { icon: icon.value } : {}
7147
7133
  };
7148
7134
  }
7149
7135
  function oldForm(text, inStep) {
@@ -9266,7 +9252,7 @@ function drawSvg(diagram, layout, timeline, palette, theme, follow, ink = [], tr
9266
9252
  const vars = paletteVars(palette, theme);
9267
9253
  const id = nameOf(`${JSON.stringify(diagram)}|${vars}|${follow ? `${follow.width}|${follow.lang}` : ""}`);
9268
9254
  const m = new Motion(`dg${id}`, timeline.total, timeline.last);
9269
- const ctx = { m, t: timeline, id, sh: `filter="url(#dg-sh-${id})"`, end: timeline.steps[timeline.steps.length - 1].end, ink, traces };
9255
+ const ctx = { m, t: timeline, id, sh: `filter="url(#dg-sh-${id})"`, end: timeline.steps[timeline.steps.length - 1].end, ink, traces, boxText: boxTextY(layout.boxes) };
9270
9256
  const on = involved(diagram);
9271
9257
  const subs = subChanges(diagram, timeline, layout.kind !== "sequence");
9272
9258
  const L = { band: [], base: [], lit: [], node: [], badge: [], top: [] };
@@ -9858,11 +9844,11 @@ function mountDiagram(host, diagram, options = {}) {
9858
9844
 
9859
9845
  // src/light.ts
9860
9846
  var LOADERS = {
9861
- git: () => import("./git-GESUYKGR.js"),
9862
- lineup: () => import("./lineup-2V2U7HZH.js"),
9863
- state: () => import("./state-T4OTVING.js"),
9864
- time: () => import("./time-O4CMTUV5.js"),
9865
- tree: () => import("./tree-ZJZQI5QT.js")
9847
+ git: () => import("./git-WEJL6VAY.js"),
9848
+ lineup: () => import("./lineup-6LN6Z5T2.js"),
9849
+ state: () => import("./state-DFYTMQI7.js"),
9850
+ time: () => import("./time-M3EGEFDU.js"),
9851
+ tree: () => import("./tree-MFU54QKY.js")
9866
9852
  };
9867
9853
  var isLater = (kind) => LATER_KINDS.includes(kind);
9868
9854
  async function loadKind(kind) {