wiki-plugin-globe 0.0.0-stage → 0.2.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.
- package/README.md +31 -2
- package/client/globe.gl.min.js +20 -0
- package/client/globe.html +200 -0
- package/client/globe.js +27 -0
- package/client/globe.js.map +7 -0
- package/client/land-110m.js +2 -0
- package/client/topojson-client.min.js +2 -0
- package/factory.json +1 -0
- package/package.json +42 -4
- package/pages/about-globe-plugin +194 -0
package/README.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
-
#
|
|
1
|
+
# wiki-plugin-globe
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A Federated Wiki plugin that draws a [globe.gl](https://globe.gl) globe from pins the
|
|
4
|
+
wiki already holds: the pins of Map items, the points of a GeoJSON file, and pins typed
|
|
5
|
+
into the item. Whatever it shows it offers back as `markerData()`, so a Map item can
|
|
6
|
+
gather and freeze it.
|
|
7
|
+
|
|
8
|
+
LAYER Embassies
|
|
9
|
+
PAGE
|
|
10
|
+
LAYER Places
|
|
11
|
+
SOURCE /assets/my-page/places.geojson
|
|
12
|
+
51.5, -0.1 A pin typed here, with a [[Link]]
|
|
13
|
+
VIEW 51.5, -0.1, 0.4
|
|
14
|
+
SHOW Places
|
|
15
|
+
Any other line is a caption.
|
|
16
|
+
|
|
17
|
+
- **Two halves.** `client/globe.js` is the shell on the wiki page; `client/globe.html`
|
|
18
|
+
draws the globe in a sandboxed frame. They talk by messages (`globeReady`,
|
|
19
|
+
`globePoints`, `globeFly`, `globeOpen`).
|
|
20
|
+
- **Offline.** globe.gl, topojson-client and the land outline are copied into `client/`
|
|
21
|
+
at build time. Nothing is fetched from a CDN.
|
|
22
|
+
- **Degrades.** `globe.html` in a plain Frame item reads Map items through the Frame
|
|
23
|
+
plugin's `requestSourceData`, with `?data=<geojson>` as a fallback.
|
|
24
|
+
- **Accessible.** The same pins are listed beneath the globe; reduced motion is respected.
|
|
25
|
+
- **Freezes.** The snowflake writes the pins into the item as `frozen` — the Map plugin's shape,
|
|
26
|
+
plus a `layer` name — so a frozen globe draws with no file and no neighbours, and survives a
|
|
27
|
+
fork. Shift-click thaws. The ⌖ button saves the camera (`VIEW`) and the chosen layer (`SHOW`).
|
|
28
|
+
|
|
29
|
+
Version 0.2 draws points only. Research and plan: <https://place.fish/view/globe-plugin>,
|
|
30
|
+
<https://place.fish/view/globe-plugin-plan>.
|
|
31
|
+
|
|
32
|
+
npm install && npm test && npm run build
|