@yanqirenshi/d3.ter 0.1.23 → 0.1.24

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 (2) hide show
  1. package/dist/index.d.ts +14 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -51,13 +51,22 @@ export type TerEntityType =
51
51
  /** カーディナリティ(1 または 多=3) */
52
52
  export type TerCardinality = 1 | 3;
53
53
 
54
- /** オプショナリティ(0=必須, 1=任意) */
54
+ /**
55
+ * オプショナリティ(0=任意(○), 1=必須(横棒))。
56
+ * 0 は端点に○(0個もありうる)、1 は横棒(必ず1個以上)を描く。
57
+ */
55
58
  export type TerOptionality = 0 | 1;
56
59
 
57
60
  /** エンティティが持つ識別子インスタンス(identifier はマスタの id を参照) */
58
61
  export interface TerIdentifierInstance {
59
62
  id: number | string;
60
63
  identifier: number | string;
64
+ /**
65
+ * 表示名の上書き(任意。省略時はマスタの name)。
66
+ * TM の (R) 表記 — 継承した個体指定子だけ「〜(R)」と表示する — を
67
+ * マスタを重複させずに実現できる
68
+ */
69
+ name?: TerName;
61
70
  description?: string;
62
71
  }
63
72
 
@@ -65,6 +74,8 @@ export interface TerIdentifierInstance {
65
74
  export interface TerAttributeInstance {
66
75
  id: number | string;
67
76
  attribute: number | string;
77
+ /** 表示名の上書き(任意。省略時はマスタの name) */
78
+ name?: TerName;
68
79
  description?: string;
69
80
  }
70
81
 
@@ -72,7 +83,8 @@ export interface TerAttributeInstance {
72
83
  export interface TerEntity {
73
84
  id: number | string;
74
85
  type: TerEntityType;
75
- name: string;
86
+ /** 文字列、または物理名/論理名のペア(識別子・属性のマスタと同じ形) */
87
+ name: string | TerName;
76
88
  description?: string;
77
89
  position: { x: number; y: number; z?: number };
78
90
  /** w/h に 0 を渡すと内容に自動フィットする */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yanqirenshi/d3.ter",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "author": "yanqirenshi@gmail.com",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "description": "See `src/index.html`",