@maplat/tin 1.0.0-rc1 → 1.1.0-rc.1
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/README.ja.md +12 -5
- package/README.md +12 -5
- package/dist/index.d.ts +1 -1
- package/dist/maplat_tin.js +2263 -2317
- package/dist/maplat_tin.umd.js +3 -3
- package/dist/strict-overlap.d.ts +22 -1
- package/dist/tin.d.ts +3 -1
- package/package.json +13 -13
- package/src/edgebound/constrain.ts +1 -1
- package/src/index.ts +2 -2
- package/src/strict-overlap.ts +37 -14
- package/src/tin.ts +23 -18
- package/dist/weight-buffer.d.ts +0 -13
- package/src/weight-buffer.ts +0 -114
package/README.ja.md
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
<p align="center">
|
|
5
5
|
<a href="https://github.com/code4history/MaplatTin/actions/workflows/ci.yml"><img src="https://github.com/code4history/MaplatTin/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
|
|
6
|
-
<a href="https://www.npmjs.com/package/@maplat/tin"><img src="https://img.shields.io/npm/v/@maplat/tin" alt="npm version" /></a>
|
|
7
6
|
<a href="LICENSE"><img src="https://img.shields.io/npm/l/@maplat/tin" alt="License" /></a>
|
|
8
7
|
</p>
|
|
9
8
|
|
|
@@ -37,8 +36,12 @@ MaplatTin は Apache License 2.0(バージョン 0.14.2 以降)のオープ
|
|
|
37
36
|
<!-- SECTION 5: Quick Start -->
|
|
38
37
|
## クイックスタート
|
|
39
38
|
|
|
40
|
-
|
|
41
|
-
>
|
|
39
|
+
<!-- release-pinned:start -->
|
|
40
|
+
> **現在のリリース: `1.0.0`**。このブロックは本リポジトリで唯一
|
|
41
|
+
> リリース版数を持つ場所です(ADR-0012)。ブロックの外はすべて 1.0 正式版を前提に
|
|
42
|
+
> 書かれています。
|
|
43
|
+
> npm: [`@maplat/tin`](https://www.npmjs.com/package/@maplat/tin)
|
|
44
|
+
> [](https://www.npmjs.com/package/@maplat/tin)
|
|
42
45
|
|
|
43
46
|
### インストール
|
|
44
47
|
|
|
@@ -83,7 +86,7 @@ const restored = tin.transform(transformed, true);
|
|
|
83
86
|
|
|
84
87
|
```html
|
|
85
88
|
<!-- MaplatTin (UMD) -->
|
|
86
|
-
<script src="https://cdn.jsdelivr.net/npm/@maplat/tin@1.0.0
|
|
89
|
+
<script src="https://cdn.jsdelivr.net/npm/@maplat/tin@1.0.0/dist/maplat_tin.umd.js"></script>
|
|
87
90
|
<script>
|
|
88
91
|
const tin = new maplatTin.default({ wh: [500, 500] });
|
|
89
92
|
</script>
|
|
@@ -93,7 +96,7 @@ const restored = tin.transform(transformed, true);
|
|
|
93
96
|
|
|
94
97
|
```html
|
|
95
98
|
<script type="module">
|
|
96
|
-
import Tin from 'https://cdn.jsdelivr.net/npm/@maplat/tin@1.0.0
|
|
99
|
+
import Tin from 'https://cdn.jsdelivr.net/npm/@maplat/tin@1.0.0/dist/maplat_tin.js';
|
|
97
100
|
const tin = new Tin({ wh: [500, 500] });
|
|
98
101
|
</script>
|
|
99
102
|
```
|
|
@@ -145,6 +148,7 @@ pnpm lint # リンター/フォーマッター (ESLint/Prettier) を実
|
|
|
145
148
|
- `tests/edgebound/` — 内部 EdgeBound 制約エンジンのテスト(455 テスト)
|
|
146
149
|
- `tests/tin.test.ts` — 実際の地図データを使用した TIN 変換テスト
|
|
147
150
|
- `tests/transform.test.ts` — 座標変換テスト
|
|
151
|
+
<!-- release-pinned:end -->
|
|
148
152
|
|
|
149
153
|
<!-- SECTION 6: Prerequisites -->
|
|
150
154
|
## 動作環境
|
|
@@ -174,6 +178,9 @@ Maplat エコシステムの一部です。全容は下記エコシステム図
|
|
|
174
178
|
| [MaplatTin](https://github.com/code4history/MaplatTin) | Apache 2.0 | `@maplat/tin` | TIN 変換 |
|
|
175
179
|
| [MaplatTransform](https://github.com/code4history/MaplatTransform) | Apache 2.0 | `@maplat/transform` | 座標変換 |
|
|
176
180
|
| [MaplatEditor](https://github.com/code4history/MaplatEditor) | Apache 2.0 | — | データ作成ツール(デスクトップ) |
|
|
181
|
+
| [Chuci](https://github.com/code4history/Chuci) | MIT | `@c4h/chuci` | マルチメディアスワイパー/ビューア Web Components |
|
|
182
|
+
| [Quyuan](https://github.com/code4history/Quyuan) | MIT | `@c4h/quyuan` | GeoJSON テンプレートエンジン+マルチメディアビューア Web Components |
|
|
183
|
+
| [Weiwudi](https://github.com/code4history/Weiwudi) | MIT | `@c4h/weiwudi` | タイルキャッシュ用 Service Worker |
|
|
177
184
|
|
|
178
185
|
> MaplatEditor は上記ビューアライブラリが描画する地図・POI を作成する
|
|
179
186
|
> データ作成ツールです。Maplat エコシステムはエンドツーエンド:
|
package/README.md
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
<p align="center">
|
|
5
5
|
<a href="https://github.com/code4history/MaplatTin/actions/workflows/ci.yml"><img src="https://github.com/code4history/MaplatTin/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
|
|
6
|
-
<a href="https://www.npmjs.com/package/@maplat/tin"><img src="https://img.shields.io/npm/v/@maplat/tin" alt="npm version" /></a>
|
|
7
6
|
<a href="LICENSE"><img src="https://img.shields.io/npm/l/@maplat/tin" alt="License" /></a>
|
|
8
7
|
</p>
|
|
9
8
|
|
|
@@ -40,8 +39,12 @@ MaplatTin is open-source under the Apache License 2.0 (from version 0.14.2).
|
|
|
40
39
|
<!-- SECTION 5: Quick Start -->
|
|
41
40
|
## Quick Start
|
|
42
41
|
|
|
43
|
-
|
|
44
|
-
>
|
|
42
|
+
<!-- release-pinned:start -->
|
|
43
|
+
> **Current release: `1.0.0`**. This block is the only place in
|
|
44
|
+
> this repository that carries a release version (ADR-0012); everything outside it is
|
|
45
|
+
> written against the 1.0 release.
|
|
46
|
+
> npm: [`@maplat/tin`](https://www.npmjs.com/package/@maplat/tin)
|
|
47
|
+
> [](https://www.npmjs.com/package/@maplat/tin)
|
|
45
48
|
|
|
46
49
|
### Install
|
|
47
50
|
|
|
@@ -86,7 +89,7 @@ const restored = tin.transform(transformed, true);
|
|
|
86
89
|
|
|
87
90
|
```html
|
|
88
91
|
<!-- MaplatTin (UMD) -->
|
|
89
|
-
<script src="https://cdn.jsdelivr.net/npm/@maplat/tin@1.0.0
|
|
92
|
+
<script src="https://cdn.jsdelivr.net/npm/@maplat/tin@1.0.0/dist/maplat_tin.umd.js"></script>
|
|
90
93
|
<script>
|
|
91
94
|
const tin = new maplatTin.default({ wh: [500, 500] });
|
|
92
95
|
</script>
|
|
@@ -96,7 +99,7 @@ Or using ES modules:
|
|
|
96
99
|
|
|
97
100
|
```html
|
|
98
101
|
<script type="module">
|
|
99
|
-
import Tin from 'https://cdn.jsdelivr.net/npm/@maplat/tin@1.0.0
|
|
102
|
+
import Tin from 'https://cdn.jsdelivr.net/npm/@maplat/tin@1.0.0/dist/maplat_tin.js';
|
|
100
103
|
const tin = new Tin({ wh: [500, 500] });
|
|
101
104
|
</script>
|
|
102
105
|
```
|
|
@@ -147,6 +150,7 @@ Test coverage:
|
|
|
147
150
|
- `tests/edgebound/` — internal EdgeBound constraint engine tests (455 tests)
|
|
148
151
|
- `tests/tin.test.ts` — TIN transformation tests with real map data
|
|
149
152
|
- `tests/transform.test.ts` — coordinate transformation tests
|
|
153
|
+
<!-- release-pinned:end -->
|
|
150
154
|
|
|
151
155
|
<!-- SECTION 6: Prerequisites -->
|
|
152
156
|
## Prerequisites
|
|
@@ -176,6 +180,9 @@ repository; the Sister repositories table below is the public substitute)*
|
|
|
176
180
|
| [MaplatTin](https://github.com/code4history/MaplatTin) | Apache 2.0 | `@maplat/tin` | TIN conversion |
|
|
177
181
|
| [MaplatTransform](https://github.com/code4history/MaplatTransform) | Apache 2.0 | `@maplat/transform` | Coordinate transform |
|
|
178
182
|
| [MaplatEditor](https://github.com/code4history/MaplatEditor) | Apache 2.0 | — | Data authoring tool (desktop) |
|
|
183
|
+
| [Chuci](https://github.com/code4history/Chuci) | MIT | `@c4h/chuci` | Multimedia swiper & viewer Web Components |
|
|
184
|
+
| [Quyuan](https://github.com/code4history/Quyuan) | MIT | `@c4h/quyuan` | GeoJSON template engine + multimedia viewer Web Components |
|
|
185
|
+
| [Weiwudi](https://github.com/code4history/Weiwudi) | MIT | `@c4h/weiwudi` | Service Worker for tile cache |
|
|
179
186
|
|
|
180
187
|
> MaplatEditor is the data authoring tool used to create the maps and POIs
|
|
181
188
|
> that the viewers above render. The Maplat ecosystem is end-to-end:
|
package/dist/index.d.ts
CHANGED
|
@@ -15,4 +15,4 @@ export type { SearchIndex } from "./searchutils";
|
|
|
15
15
|
export type { IntersectionPoint } from "./types/kinks.d";
|
|
16
16
|
export type { TriangleProperties } from "./types/tin.d";
|
|
17
17
|
export type { Compiled, Edge, EdgeSet, EdgeSetLegacy, PointSet, PropertyTriKey, StrictMode, StrictStatus, Tins, Transform, Tri, VertexMode, YaxisMode, } from '@maplat/transform';
|
|
18
|
-
export { format_version } from
|
|
18
|
+
export { FORMAT_VERSION_V2 as format_version } from "./tin";
|