@yanqirenshi/d3.ter 0.1.21 → 0.1.22

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.
package/dist/js/Entity.js CHANGED
@@ -263,7 +263,7 @@ var Entity = exports["default"] = /*#__PURE__*/function (_Atman) {
263
263
  case 'RESOURCE-SUBSET':
264
264
  return 'Rsc';
265
265
  case 'COMPARATIVE':
266
- return '対象';
266
+ return '対照';
267
267
  case 'CORRESPONDENCE':
268
268
  return '対応';
269
269
  case 'EVENT':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yanqirenshi/d3.ter",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "author": "yanqirenshi@gmail.com",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "description": "See `src/index.html`",
@@ -17,6 +17,13 @@ test('entity type marker and background color follow the entity type', () => {
17
17
  const event = new Entity(entityData('EVENT'), null);
18
18
  expect(event.type.contents).toBe('Evt');
19
19
  expect(event.background.color).toBe('#f09199');
20
+
21
+ // issue #18: 対照表(COMPARATIVE)のバッジは「対照」(「対象」は誤字)
22
+ const comparative = new Entity(entityData('COMPARATIVE'), null);
23
+ expect(comparative.type.contents).toBe('対照');
24
+
25
+ const correspondence = new Entity(entityData('CORRESPONDENCE'), null);
26
+ expect(correspondence.type.contents).toBe('対応');
20
27
  });
21
28
 
22
29
  // issue #14: TM(T字形ER)の多値。MO=多値のOR、MA=多値のAND(HDR-DTL)