Skip to content

Commit a0e388a

Browse files
authored
0.41.0 docs (#672)
1 parent 17ed5cc commit a0e388a

26 files changed

+267
-223
lines changed

docs/api/threelayer.md

Lines changed: 47 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,23 @@ threeLayer.addTo(map);
2323

2424
```ts
2525
export type BaseLayerOptionType = {
26-
renderer?: string;
27-
doubleBuffer?: boolean;
26+
minZoom?: number;
27+
maxZoom?: number;
28+
visible?: boolean;
29+
opacity?: number;
30+
zIndex?: number;
31+
renderer?: 'gl',
32+
doubleBuffer?: boolean,
2833
glOptions?: {
29-
preserveDrawingBuffer: boolean;
30-
};
31-
geometryEvents?: boolean;
32-
identifyCountOnEvent?: number;
33-
forceRenderOnMoving?: boolean;
34-
forceRenderOnRotating?: boolean;
35-
forceRenderOnZooming?: boolean;
36-
centerForDistance?: maptalks.Coordinate;
37-
loopRenderCount?: number;
34+
preserveDrawingBuffer: boolean
35+
},
36+
geometryEvents?: boolean,
37+
identifyCountOnEvent?: number,
38+
forceRenderOnMoving?: boolean,
39+
forceRenderOnRotating?: boolean,
40+
forceRenderOnZooming?: boolean,
41+
centerForDistance?: maptalks.Coordinate,
42+
loopRenderCount?: number
3843
};
3944
```
4045

@@ -97,12 +102,13 @@ const vector2 = threeLayer.altitudeToVector3(100, 100);
97102

98103
```ts
99104
export type ExtrudePolygonOptionType = BaseObjectOptionType & {
100-
height?: number;
101-
bottomHeight?: number;
102-
topColor?: string;
103-
bottomColor?: string;
104-
key?: string;
105-
};
105+
height?: number,
106+
bottomHeight?: number,
107+
topColor?: string,
108+
bottomColor?: string,
109+
key?: string,
110+
top?: boolean
111+
}
106112

107113
const extrudePolygon = threeLayer.toExtrudePolygon(
108114
new maptalks.Polygon(coordinates),
@@ -158,14 +164,14 @@ const line = threeLayer.toLine(
158164

159165
```ts
160166
export type ExtrudeLineOptionType = BaseObjectOptionType & {
161-
bottomHeight?: number;
162-
width?: number;
163-
height?: number;
164-
topColor?: string;
165-
bottomColor?: string;
166-
key?: string;
167-
};
168-
167+
bottomHeight?: number,
168+
width?: number,
169+
height?: number,
170+
topColor?: string,
171+
bottomColor?: string,
172+
key?: string,
173+
pathUV?: boolean
174+
}
169175
const line = threeLayer.toExtrudeLine(
170176
new maptalks.LineString(coordinates),
171177
{
@@ -207,12 +213,13 @@ const line = threeLayer.toExtrudeLine(
207213

208214
```ts
209215
export type ExtrudeLineTrailOptionType = BaseObjectOptionType & {
210-
trail?: number;
211-
chunkLength?: number;
212-
width?: number;
213-
height?: number;
214-
speed?: number;
215-
};
216+
trail?: number,
217+
chunkLength?: number,
218+
width?: number,
219+
height?: number,
220+
speed?: number,
221+
pathUV?: boolean
222+
}
216223

217224
const line = threeLayer.toExtrudeLineTrail(
218225
new maptalks.LineString(coordinates),
@@ -238,13 +245,13 @@ Considering performance issues, it is not recommended to use it
238245

239246
```ts
240247
export type ExtrudePolygonOptionType = BaseObjectOptionType & {
241-
height?: number;
242-
bottomHeight?: number;
243-
topColor?: string;
244-
bottomColor?: string;
245-
key?: string;
246-
};
247-
248+
height?: number,
249+
bottomHeight?: number,
250+
topColor?: string,
251+
bottomColor?: string,
252+
key?: string,
253+
top?: boolean
254+
}
248255
const polygon1=new maptalks.Polygon(coordinates);
249256
const polygon2=new maptalks.Polygon(coordinates);
250257

@@ -337,7 +344,8 @@ export type ExtrudeLineOptionType = BaseObjectOptionType & {
337344
height?: number,
338345
topColor?: string,
339346
bottomColor?: string,
340-
key?: string
347+
key?: string,
348+
pathUV?: boolean
341349
}
342350

343351
const lineStrings=[

docs/api/types.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ export type ExtrudePolygonOptionType = BaseObjectOptionType & {
6060
bottomHeight?: number,
6161
topColor?: string,
6262
bottomColor?: string,
63-
key?: string
63+
key?: string,
64+
top?: boolean
6465
}
6566

6667
```
@@ -75,7 +76,8 @@ export type ExtrudeLineOptionType = BaseObjectOptionType & {
7576
height?: number,
7677
topColor?: string,
7778
bottomColor?: string,
78-
key?: string
79+
key?: string,
80+
pathUV?: boolean
7981
}
8082
```
8183
@@ -101,7 +103,8 @@ export type ExtrudeLineTrailOptionType = BaseObjectOptionType & {
101103
chunkLength?: number,
102104
width?: number,
103105
height?: number,
104-
speed?: number
106+
speed?: number,
107+
pathUV?: boolean
105108
}
106109
```
107110

docs/dist/404.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
<link rel="preload stylesheet" href="/maptalks.three/docs/dist/assets/style.Dj9aAfoc.css" as="style">
1010
<link rel="preload stylesheet" href="/maptalks.three/docs/dist/vp-icons.css" as="style">
1111

12-
<script type="module" src="/maptalks.three/docs/dist/assets/app.CSmQ_GHp.js"></script>
12+
<script type="module" src="/maptalks.three/docs/dist/assets/app.BS7L0fYZ.js"></script>
1313
<link rel="preload" href="/maptalks.three/docs/dist/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
1414
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
1515
<script id="check-mac-os">document.documentElement.classList.toggle("mac",/Mac|iPhone|iPod|iPad/i.test(navigator.platform));</script>
1616
</head>
1717
<body>
1818
<div id="app"></div>
19-
<script>window.__VP_HASH_MAP__=JSON.parse("{\"api_baseobject.md\":\"ClRSHmS4\",\"api_index.md\":\"BYyICOA8\",\"api_threelayer.md\":\"DJ_MhOJR\",\"api_types.md\":\"B1Qhn4VE\",\"index.md\":\"Cvp-nnnj\",\"questions_index.md\":\"D42nop73\",\"start_custom.md\":\"DXusqSQm\",\"start_helloworld.md\":\"C4t00qqH\",\"start_install.md\":\"CvYUAdCv\",\"start_links.md\":\"BYlvTVrf\",\"start_target.md\":\"DmTeVfOC\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"🌐maptalks.three\",\"description\":\"A maptalks layer to render with three.js.\",\"base\":\"/maptalks.three/docs/dist/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"nav\":[{\"text\":\"Start\",\"link\":\"/start/install.md\",\"activeMatch\":\"/start/\"},{\"text\":\"API\",\"link\":\"/api/index.md\",\"activeMatch\":\"/api/\"},{\"text\":\"Questions\",\"link\":\"/questions/index.md\",\"activeMatch\":\"/questions/\"},{\"text\":\"Examples\",\"link\":\"https://maptalks.org/maptalks.three/demo/index.html\"}],\"sidebar\":{\"/start/\":[{\"text\":\"Install\",\"link\":\"/start/install.md\"},{\"text\":\"Hello World\",\"link\":\"/start/helloworld.md\"},{\"text\":\"Design Target\",\"link\":\"/start/target.md\"},{\"text\":\"Custom BaseObject\",\"link\":\"/start/custom.md\"},{\"text\":\"Some Links\",\"link\":\"/start/links.md\"}],\"/api/\":[{\"text\":\"Some Types\",\"link\":\"/api/types.md\"},{\"text\":\"BaseObject\",\"link\":\"/api/baseobject.md\"},{\"text\":\"ThreeLayer\",\"link\":\"/api/threelayer.md\"}]},\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/maptalks/maptalks.three\"}],\"lastUpdated\":true,\"search\":{\"provider\":\"local\"}},\"locales\":{},\"scrollOffset\":134,\"cleanUrls\":false}");</script>
19+
<script>window.__VP_HASH_MAP__=JSON.parse("{\"api_baseobject.md\":\"ClRSHmS4\",\"api_index.md\":\"BYyICOA8\",\"api_threelayer.md\":\"CLLoHpAM\",\"api_types.md\":\"BpJ3OtuL\",\"index.md\":\"Cvp-nnnj\",\"questions_index.md\":\"D42nop73\",\"start_custom.md\":\"DXusqSQm\",\"start_helloworld.md\":\"C4t00qqH\",\"start_install.md\":\"DJwzgDoQ\",\"start_links.md\":\"BYlvTVrf\",\"start_target.md\":\"DmTeVfOC\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"🌐maptalks.three\",\"description\":\"A maptalks layer to render with three.js.\",\"base\":\"/maptalks.three/docs/dist/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"nav\":[{\"text\":\"Start\",\"link\":\"/start/install.md\",\"activeMatch\":\"/start/\"},{\"text\":\"API\",\"link\":\"/api/index.md\",\"activeMatch\":\"/api/\"},{\"text\":\"Questions\",\"link\":\"/questions/index.md\",\"activeMatch\":\"/questions/\"},{\"text\":\"Examples\",\"link\":\"https://maptalks.org/maptalks.three/demo/index.html\"}],\"sidebar\":{\"/start/\":[{\"text\":\"Install\",\"link\":\"/start/install.md\"},{\"text\":\"Hello World\",\"link\":\"/start/helloworld.md\"},{\"text\":\"Design Target\",\"link\":\"/start/target.md\"},{\"text\":\"Custom BaseObject\",\"link\":\"/start/custom.md\"},{\"text\":\"Some Links\",\"link\":\"/start/links.md\"}],\"/api/\":[{\"text\":\"Some Types\",\"link\":\"/api/types.md\"},{\"text\":\"BaseObject\",\"link\":\"/api/baseobject.md\"},{\"text\":\"ThreeLayer\",\"link\":\"/api/threelayer.md\"}]},\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/maptalks/maptalks.three\"}],\"lastUpdated\":true,\"search\":{\"provider\":\"local\"}},\"locales\":{},\"scrollOffset\":134,\"cleanUrls\":false}");</script>
2020

2121
</body>
2222
</html>

docs/dist/api/baseobject.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<link rel="preload stylesheet" href="/maptalks.three/docs/dist/assets/style.Dj9aAfoc.css" as="style">
1010
<link rel="preload stylesheet" href="/maptalks.three/docs/dist/vp-icons.css" as="style">
1111

12-
<script type="module" src="/maptalks.three/docs/dist/assets/app.CSmQ_GHp.js"></script>
12+
<script type="module" src="/maptalks.three/docs/dist/assets/app.BS7L0fYZ.js"></script>
1313
<link rel="preload" href="/maptalks.three/docs/dist/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
14-
<link rel="modulepreload" href="/maptalks.three/docs/dist/assets/chunks/theme.BLaGH9F0.js">
14+
<link rel="modulepreload" href="/maptalks.three/docs/dist/assets/chunks/theme.DSn-zCsg.js">
1515
<link rel="modulepreload" href="/maptalks.three/docs/dist/assets/chunks/framework.C7KVE_tj.js">
1616
<link rel="modulepreload" href="/maptalks.three/docs/dist/assets/api_baseobject.md.ClRSHmS4.lean.js">
1717
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
@@ -58,7 +58,7 @@
5858
<span class="line"></span>
5959
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span>
6060
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">bar.</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">on</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;click mousemove&#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, clickHandler);</span></span></code></pre></div><h3 id="add" tabindex="-1">add <a class="header-anchor" href="#add" aria-label="Permalink to &quot;add&quot;"></a></h3><h3 id="remove-1" tabindex="-1">remove <a class="header-anchor" href="#remove-1" aria-label="Permalink to &quot;remove&quot;"></a></h3><h3 id="click" tabindex="-1">click <a class="header-anchor" href="#click" aria-label="Permalink to &quot;click&quot;"></a></h3><h3 id="mousemove" tabindex="-1">mousemove <a class="header-anchor" href="#mousemove" aria-label="Permalink to &quot;mousemove&quot;"></a></h3><h3 id="mouseover" tabindex="-1">mouseover <a class="header-anchor" href="#mouseover" aria-label="Permalink to &quot;mouseover&quot;"></a></h3><h3 id="mouseout" tabindex="-1">mouseout <a class="header-anchor" href="#mouseout" aria-label="Permalink to &quot;mouseout&quot;"></a></h3><h3 id="dblclick" tabindex="-1">dblclick <a class="header-anchor" href="#dblclick" aria-label="Permalink to &quot;dblclick&quot;"></a></h3><h3 id="empty" tabindex="-1">empty <a class="header-anchor" href="#empty" aria-label="Permalink to &quot;empty&quot;"></a></h3><h3 id="idchange" tabindex="-1">idchange <a class="header-anchor" href="#idchange" aria-label="Permalink to &quot;idchange&quot;"></a></h3><h3 id="propertieschange" tabindex="-1">propertieschange <a class="header-anchor" href="#propertieschange" aria-label="Permalink to &quot;propertieschange&quot;"></a></h3><h3 id="show-1" tabindex="-1">show <a class="header-anchor" href="#show-1" aria-label="Permalink to &quot;show&quot;"></a></h3><h3 id="hide-1" tabindex="-1">hide <a class="header-anchor" href="#hide-1" aria-label="Permalink to &quot;hide&quot;"></a></h3><h3 id="symbolchange" tabindex="-1">symbolchange <a class="header-anchor" href="#symbolchange" aria-label="Permalink to &quot;symbolchange&quot;"></a></h3><h3 id="workerload" tabindex="-1">workerload <a class="header-anchor" href="#workerload" aria-label="Permalink to &quot;workerload&quot;"></a></h3><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>This event will only be triggered by constructing graphic data through workers</p></div></div></div></main><footer class="VPDocFooter" data-v-ca6a45ed data-v-cebe99ab><!--[--><!--]--><div class="edit-info" data-v-cebe99ab><!----><div class="last-updated" data-v-cebe99ab><p class="VPLastUpdated" data-v-cebe99ab data-v-1670a9c3>Last updated: <time datetime="2025-01-15T03:12:18.000Z" data-v-1670a9c3></time></p></div></div><nav class="prev-next" aria-labelledby="doc-footer-aria-label" data-v-cebe99ab><span class="visually-hidden" id="doc-footer-aria-label" data-v-cebe99ab>Pager</span><div class="pager" data-v-cebe99ab><a class="VPLink link pager-link prev" href="/maptalks.three/docs/dist/api/types.html" data-v-cebe99ab><!--[--><span class="desc" data-v-cebe99ab>Previous page</span><span class="title" data-v-cebe99ab>Some Types</span><!--]--></a></div><div class="pager" data-v-cebe99ab><a class="VPLink link pager-link next" href="/maptalks.three/docs/dist/api/threelayer.html" data-v-cebe99ab><!--[--><span class="desc" data-v-cebe99ab>Next page</span><span class="title" data-v-cebe99ab>ThreeLayer</span><!--]--></a></div></nav></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><!----><!--[--><!--]--></div></div>
61-
<script>window.__VP_HASH_MAP__=JSON.parse("{\"api_baseobject.md\":\"ClRSHmS4\",\"api_index.md\":\"BYyICOA8\",\"api_threelayer.md\":\"DJ_MhOJR\",\"api_types.md\":\"B1Qhn4VE\",\"index.md\":\"Cvp-nnnj\",\"questions_index.md\":\"D42nop73\",\"start_custom.md\":\"DXusqSQm\",\"start_helloworld.md\":\"C4t00qqH\",\"start_install.md\":\"CvYUAdCv\",\"start_links.md\":\"BYlvTVrf\",\"start_target.md\":\"DmTeVfOC\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"🌐maptalks.three\",\"description\":\"A maptalks layer to render with three.js.\",\"base\":\"/maptalks.three/docs/dist/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"nav\":[{\"text\":\"Start\",\"link\":\"/start/install.md\",\"activeMatch\":\"/start/\"},{\"text\":\"API\",\"link\":\"/api/index.md\",\"activeMatch\":\"/api/\"},{\"text\":\"Questions\",\"link\":\"/questions/index.md\",\"activeMatch\":\"/questions/\"},{\"text\":\"Examples\",\"link\":\"https://maptalks.org/maptalks.three/demo/index.html\"}],\"sidebar\":{\"/start/\":[{\"text\":\"Install\",\"link\":\"/start/install.md\"},{\"text\":\"Hello World\",\"link\":\"/start/helloworld.md\"},{\"text\":\"Design Target\",\"link\":\"/start/target.md\"},{\"text\":\"Custom BaseObject\",\"link\":\"/start/custom.md\"},{\"text\":\"Some Links\",\"link\":\"/start/links.md\"}],\"/api/\":[{\"text\":\"Some Types\",\"link\":\"/api/types.md\"},{\"text\":\"BaseObject\",\"link\":\"/api/baseobject.md\"},{\"text\":\"ThreeLayer\",\"link\":\"/api/threelayer.md\"}]},\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/maptalks/maptalks.three\"}],\"lastUpdated\":true,\"search\":{\"provider\":\"local\"}},\"locales\":{},\"scrollOffset\":134,\"cleanUrls\":false}");</script>
61+
<script>window.__VP_HASH_MAP__=JSON.parse("{\"api_baseobject.md\":\"ClRSHmS4\",\"api_index.md\":\"BYyICOA8\",\"api_threelayer.md\":\"CLLoHpAM\",\"api_types.md\":\"BpJ3OtuL\",\"index.md\":\"Cvp-nnnj\",\"questions_index.md\":\"D42nop73\",\"start_custom.md\":\"DXusqSQm\",\"start_helloworld.md\":\"C4t00qqH\",\"start_install.md\":\"DJwzgDoQ\",\"start_links.md\":\"BYlvTVrf\",\"start_target.md\":\"DmTeVfOC\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"🌐maptalks.three\",\"description\":\"A maptalks layer to render with three.js.\",\"base\":\"/maptalks.three/docs/dist/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"nav\":[{\"text\":\"Start\",\"link\":\"/start/install.md\",\"activeMatch\":\"/start/\"},{\"text\":\"API\",\"link\":\"/api/index.md\",\"activeMatch\":\"/api/\"},{\"text\":\"Questions\",\"link\":\"/questions/index.md\",\"activeMatch\":\"/questions/\"},{\"text\":\"Examples\",\"link\":\"https://maptalks.org/maptalks.three/demo/index.html\"}],\"sidebar\":{\"/start/\":[{\"text\":\"Install\",\"link\":\"/start/install.md\"},{\"text\":\"Hello World\",\"link\":\"/start/helloworld.md\"},{\"text\":\"Design Target\",\"link\":\"/start/target.md\"},{\"text\":\"Custom BaseObject\",\"link\":\"/start/custom.md\"},{\"text\":\"Some Links\",\"link\":\"/start/links.md\"}],\"/api/\":[{\"text\":\"Some Types\",\"link\":\"/api/types.md\"},{\"text\":\"BaseObject\",\"link\":\"/api/baseobject.md\"},{\"text\":\"ThreeLayer\",\"link\":\"/api/threelayer.md\"}]},\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/maptalks/maptalks.three\"}],\"lastUpdated\":true,\"search\":{\"provider\":\"local\"}},\"locales\":{},\"scrollOffset\":134,\"cleanUrls\":false}");</script>
6262

6363
</body>
6464
</html>

0 commit comments

Comments
 (0)