wiki-plugin-globe 0.0.0-stage → 0.2.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.md +31 -2
- package/client/globe.gl.min.js +20 -0
- package/client/globe.html +204 -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
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "About Globe Plugin",
|
|
3
|
+
"story": [
|
|
4
|
+
{
|
|
5
|
+
"type": "markdown",
|
|
6
|
+
"id": "93e26dbbd5e5c626",
|
|
7
|
+
"text": "The Globe plugin draws a globe from pins the wiki already holds \u2014 the pins of Map items, the points of a GeoJSON file, and pins typed into the item itself. Whatever it shows it offers back to the page, so a Map item can gather and freeze it. The globe and its libraries ship inside the plugin, so it draws with no network."
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"type": "globe",
|
|
11
|
+
"id": "ea14d6e4c4603334",
|
|
12
|
+
"text": "LAYER Two Cities\n51.5074, -0.1278 London\n52.52, 13.405 Berlin\nTwo pins typed into the item. Double-click this caption to edit."
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"type": "markdown",
|
|
16
|
+
"id": "103489f37ac838c7",
|
|
17
|
+
"text": "# Item Text\nA command is an UPPERCASE first word, as in the Map plugin. Any other line is a caption."
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "table",
|
|
21
|
+
"id": "c1ffb4d41fd07ed9",
|
|
22
|
+
"text": "CAPTION What a Globe item understands\n\n| Line | Does |\n|---|---|\n| PAGE | Gathers the pins of the other Map and Globe items on this page |\n| LINEUP | Gathers the pins of every such item to the left in the lineup |\n| SOURCE /assets/page-slug/file.geojson | Draws the points of a GeoJSON file; a path beginning / is read from the site the page came from |\n| 51.5, -0.1 Label with a [[Link]] | A pin typed here, spelled exactly as the Map plugin spells it |\n| LAYER Name | Names and colours the lines that follow, until the next LAYER |\n| VIEW 51.5, -0.1, 0.4 | Where the globe is looked at from \u2014 latitude, longitude, altitude \u2014 and it stays there |\n| SHOW Name | The one layer shown; the others wait in the legend |"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"type": "markdown",
|
|
26
|
+
"id": "40737118b4de8f5e",
|
|
27
|
+
"text": "KIND and TEXTURE are planned. The item recognises them, draws nothing for them, and says so beneath the globe. A mistyped command is reported the same way, with a suggestion."
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "markdown",
|
|
31
|
+
"id": "7359e7da8566abca",
|
|
32
|
+
"text": "# Points Only\nVersion 0.2 draws points. Lines and areas in a file are counted and left out, and the item says how many."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "markdown",
|
|
36
|
+
"id": "58c4a01eb214f534",
|
|
37
|
+
"text": "# Pins and Pages\nA pin whose label holds a wiki link opens that page in the next column when clicked; shift-click keeps the lineup. In a file, a `title` or `page` property names the wiki page, `name` or `label` the words, and `url` or `wiki_url` an outside link."
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "markdown",
|
|
41
|
+
"id": "25056e5765871460",
|
|
42
|
+
"text": "# Saving the View\nTurn and zoom the globe, click a layer in the legend to show it alone, then press the \u2316 button: the item gets a VIEW line for the camera and a SHOW line for the layer, and opens that way for everyone after. Both are ordinary lines of text and can be typed or edited by hand."
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "markdown",
|
|
46
|
+
"id": "5bc00a06485846dd",
|
|
47
|
+
"text": "# A List of the Same Pins\nBeneath the globe the same pins are listed as ordinary text and links, for a screen reader, a keyboard, or a machine with no WebGL. The button beside each turns the globe to it. The globe does not spin or pulse for a reader who asks for reduced motion."
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"type": "markdown",
|
|
51
|
+
"id": "579c2b442cee1621",
|
|
52
|
+
"text": "# Freezing\nThe snowflake beneath the globe freezes what it shows into the page, in the same `frozen` shape the Map plugin uses: latitude, longitude and label, plus the layer name. A frozen globe gathers nothing and reads no file \u2014 it draws the pins the page holds, so it survives a fork to a site that has no file. Shift-click the snowflake to thaw. A Globe item is also a marker source, so a Map item holding PAGE can gather and freeze the globe's pins for itself."
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "markdown",
|
|
56
|
+
"id": "356e8e6734e765a0",
|
|
57
|
+
"text": "# Two Halves\nThe item on the page is a thin shell: it reads the text, gathers pins and keeps the list. The globe is drawn by `globe.html` in a sandboxed frame, and the two talk only by messages. The same `globe.html` opened in a plain Frame item reads Map items by itself, so a page still draws on a farm without this plugin."
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "markdown",
|
|
61
|
+
"id": "3fcc0137de9657ff",
|
|
62
|
+
"text": "# See"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"type": "markdown",
|
|
66
|
+
"id": "62503c08db98dfa9",
|
|
67
|
+
"text": "- [https://place.fish/view/globe-plugin Globe Plugin] \u2014 the research \u00b7 [https://place.fish/view/globe-plugin-plan Globe Plugin Plan] \u2014 the phases\n- [[About Map Plugin]] \u00b7 [[About Frame Plugin]]"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"journal": [
|
|
71
|
+
{
|
|
72
|
+
"type": "create",
|
|
73
|
+
"item": {
|
|
74
|
+
"title": "About Globe Plugin",
|
|
75
|
+
"story": [
|
|
76
|
+
{
|
|
77
|
+
"type": "markdown",
|
|
78
|
+
"id": "93e26dbbd5e5c626",
|
|
79
|
+
"text": "The Globe plugin draws a globe from pins the wiki already holds \u2014 the pins of Map items, the points of a GeoJSON file, and pins typed into the item itself. Whatever it shows it offers back to the page, so a Map item can gather and freeze it. The globe and its libraries ship inside the plugin, so it draws with no network."
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"type": "globe",
|
|
83
|
+
"id": "ea14d6e4c4603334",
|
|
84
|
+
"text": "LAYER Two Cities\n51.5074, -0.1278 London\n52.52, 13.405 Berlin\nTwo pins typed into the item. Double-click this caption to edit."
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"type": "markdown",
|
|
88
|
+
"id": "103489f37ac838c7",
|
|
89
|
+
"text": "# Item Text\nA command is an UPPERCASE first word, as in the Map plugin. Any other line is a caption."
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"type": "table",
|
|
93
|
+
"id": "c1ffb4d41fd07ed9",
|
|
94
|
+
"text": "CAPTION What a Globe item understands\n\n| Line | Does |\n|---|---|\n| PAGE | Gathers the pins of the other Map and Globe items on this page |\n| LINEUP | Gathers the pins of every such item to the left in the lineup |\n| SOURCE /assets/page-slug/file.geojson | Draws the points of a GeoJSON file; a path beginning / is read from the site the page came from |\n| 51.5, -0.1 Label with a [[Link]] | A pin typed here, spelled exactly as the Map plugin spells it |\n| LAYER Name | Names and colours the lines that follow, until the next LAYER |"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"type": "markdown",
|
|
98
|
+
"id": "40737118b4de8f5e",
|
|
99
|
+
"text": "KIND, TEXTURE and VIEW are planned. The item recognises them, draws nothing for them, and says so beneath the globe. A mistyped command is reported the same way, with a suggestion."
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "markdown",
|
|
103
|
+
"id": "7359e7da8566abca",
|
|
104
|
+
"text": "# Points Only\nVersion 0.1 draws points. Lines and areas in a file are counted and left out, and the item says how many."
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"type": "markdown",
|
|
108
|
+
"id": "58c4a01eb214f534",
|
|
109
|
+
"text": "# Pins and Pages\nA pin whose label holds a wiki link opens that page in the next column when clicked; shift-click keeps the lineup. In a file, a `title` or `page` property names the wiki page, `name` or `label` the words, and `url` or `wiki_url` an outside link."
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"type": "markdown",
|
|
113
|
+
"id": "5bc00a06485846dd",
|
|
114
|
+
"text": "# A List of the Same Pins\nBeneath the globe the same pins are listed as ordinary text and links, for a screen reader, a keyboard, or a machine with no WebGL. The button beside each turns the globe to it. The globe does not spin or pulse for a reader who asks for reduced motion."
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"type": "markdown",
|
|
118
|
+
"id": "579c2b442cee1621",
|
|
119
|
+
"text": "# Freezing Into a Map Item\nA Globe item is a marker source, like a Map item. Put a Map item holding the one word PAGE on the same page and it draws the globe's pins; its snowflake freezes them into the page. That is how the points of a file become pins a person can look after."
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"type": "markdown",
|
|
123
|
+
"id": "356e8e6734e765a0",
|
|
124
|
+
"text": "# Two Halves\nThe item on the page is a thin shell: it reads the text, gathers pins and keeps the list. The globe is drawn by `globe.html` in a sandboxed frame, and the two talk only by messages. The same `globe.html` opened in a plain Frame item reads Map items by itself, so a page still draws on a farm without this plugin."
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"type": "markdown",
|
|
128
|
+
"id": "3fcc0137de9657ff",
|
|
129
|
+
"text": "# See"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"type": "markdown",
|
|
133
|
+
"id": "62503c08db98dfa9",
|
|
134
|
+
"text": "- [https://place.fish/view/globe-plugin Globe Plugin] \u2014 the research \u00b7 [https://place.fish/view/globe-plugin-plan Globe Plugin Plan] \u2014 the phases\n- [[About Map Plugin]] \u00b7 [[About Frame Plugin]]"
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
"date": 1790005409869,
|
|
139
|
+
"provenance": "Generated through a dialogue between David Bovill and Claude Code (claude-fable-5-1), session 2026-09-21, via the [[fedwiki-create-plugin]] skill."
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"type": "edit",
|
|
143
|
+
"id": "c1ffb4d41fd07ed9",
|
|
144
|
+
"item": {
|
|
145
|
+
"type": "table",
|
|
146
|
+
"id": "c1ffb4d41fd07ed9",
|
|
147
|
+
"text": "CAPTION What a Globe item understands\n\n| Line | Does |\n|---|---|\n| PAGE | Gathers the pins of the other Map and Globe items on this page |\n| LINEUP | Gathers the pins of every such item to the left in the lineup |\n| SOURCE /assets/page-slug/file.geojson | Draws the points of a GeoJSON file; a path beginning / is read from the site the page came from |\n| 51.5, -0.1 Label with a [[Link]] | A pin typed here, spelled exactly as the Map plugin spells it |\n| LAYER Name | Names and colours the lines that follow, until the next LAYER |\n| VIEW 51.5, -0.1, 0.4 | Where the globe is looked at from \u2014 latitude, longitude, altitude \u2014 and it stays there |\n| SHOW Name | The one layer shown; the others wait in the legend |"
|
|
148
|
+
},
|
|
149
|
+
"date": 1790033967658
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"type": "edit",
|
|
153
|
+
"id": "40737118b4de8f5e",
|
|
154
|
+
"item": {
|
|
155
|
+
"type": "markdown",
|
|
156
|
+
"id": "40737118b4de8f5e",
|
|
157
|
+
"text": "KIND and TEXTURE are planned. The item recognises them, draws nothing for them, and says so beneath the globe. A mistyped command is reported the same way, with a suggestion."
|
|
158
|
+
},
|
|
159
|
+
"date": 1790033967658
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"type": "add",
|
|
163
|
+
"id": "25056e5765871460",
|
|
164
|
+
"item": {
|
|
165
|
+
"type": "markdown",
|
|
166
|
+
"id": "25056e5765871460",
|
|
167
|
+
"text": "# Saving the View\nTurn and zoom the globe, click a layer in the legend to show it alone, then press the \u2316 button: the item gets a VIEW line for the camera and a SHOW line for the layer, and opens that way for everyone after. Both are ordinary lines of text and can be typed or edited by hand."
|
|
168
|
+
},
|
|
169
|
+
"after": "58c4a01eb214f534",
|
|
170
|
+
"date": 1790033967658
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"type": "edit",
|
|
174
|
+
"id": "7359e7da8566abca",
|
|
175
|
+
"item": {
|
|
176
|
+
"type": "markdown",
|
|
177
|
+
"id": "7359e7da8566abca",
|
|
178
|
+
"text": "# Points Only\nVersion 0.2 draws points. Lines and areas in a file are counted and left out, and the item says how many."
|
|
179
|
+
},
|
|
180
|
+
"date": 1790033979591
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"type": "edit",
|
|
184
|
+
"id": "579c2b442cee1621",
|
|
185
|
+
"item": {
|
|
186
|
+
"type": "markdown",
|
|
187
|
+
"id": "579c2b442cee1621",
|
|
188
|
+
"text": "# Freezing\nThe snowflake beneath the globe freezes what it shows into the page, in the same `frozen` shape the Map plugin uses: latitude, longitude and label, plus the layer name. A frozen globe gathers nothing and reads no file \u2014 it draws the pins the page holds, so it survives a fork to a site that has no file. Shift-click the snowflake to thaw. A Globe item is also a marker source, so a Map item holding PAGE can gather and freeze the globe's pins for itself."
|
|
189
|
+
},
|
|
190
|
+
"date": 1790033979591
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"plugin": "globe"
|
|
194
|
+
}
|