@yanqirenshi/d3.pad 0.1.1 → 0.1.2

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.
@@ -1,5 +1,2 @@
1
- export interface Point {
2
- x: number;
3
- y: number;
4
- }
1
+ export type { Point } from '@yanqirenshi/types';
5
2
  //# sourceMappingURL=Point.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Point.d.ts","sourceRoot":"","sources":["../../../src/renderers/blocks/Point.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,KAAK;IAClB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACb"}
1
+ {"version":3,"file":"Point.d.ts","sourceRoot":"","sources":["../../../src/renderers/blocks/Point.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yanqirenshi/d3.pad",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "PAD (Problem Analysis Diagram) renderer for JS/TS code using d3.js",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -26,6 +26,7 @@
26
26
  "prepublishOnly": "npm run build"
27
27
  },
28
28
  "dependencies": {
29
+ "@yanqirenshi/types": "^0.1.0",
29
30
  "acorn": "^8.15.0",
30
31
  "d3": "^7.9.0"
31
32
  },
@@ -1,5 +1,4 @@
1
- // 座標を表すインターフェース
2
- export interface Point {
3
- x: number;
4
- y: number;
5
- }
1
+ // 座標を表すインターフェース。
2
+ // 定義は共有型パッケージ(@yanqirenshi/types)に一本化し、
3
+ // 従来の import 経路(./Point)は再エクスポートで維持する。
4
+ export type { Point } from '@yanqirenshi/types';