Skip to content

Commit 60e0e72

Browse files
authored
Merge pull request #3 from reearth/refactor/update-snippets
refactor: update snippets
2 parents d36e5b2 + dcfe615 commit 60e0e72

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

.vscode/mdx.code-snippets

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,28 @@
2222
],
2323
"description": "Page meta",
2424
},
25+
"Method": {
26+
"prefix": "method",
27+
"body": [
28+
"### `${1:name}`",
29+
"",
30+
"`${2:description}`",
31+
"",
32+
"#### Syntax",
33+
"",
34+
"```ts",
35+
"${3:code}",
36+
"```",
37+
"",
38+
"#### Parameters",
39+
"",
40+
"#### Return Value",
41+
"",
42+
"#### Example",
43+
"",
44+
],
45+
"description": "Method",
46+
},
2547
"Parameter": {
2648
"prefix": "param",
2749
"body": [

src/content/docs/plugin-api/layers.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ For more information on Layer & Layer Appearance Types, please refer to [Layer T
3939

4040
The method returns the unique identifier `id` of the newly added layer if the operation is successful, providing a reference that can be used for further operations or queries. If the operation fails, it returns `undefined`.
4141

42-
#### Examples
42+
#### Example
4343

4444
import Add3dModelCode from "@code/plugin-api/layers/add-3d-model?raw";
4545
import AddMarkerPolylinePolygonCode from "@code/plugin-api/layers/add-marker-polyline-polygon?raw";
@@ -87,7 +87,7 @@ A callback function used to evaluate each layer within the scene. The function r
8787

8888
Returns the first **`Layer`** object that satisfies the provided testing function. If no layer meets the criteria, the function returns **`undefined`**
8989

90-
#### Examples
90+
#### Example
9191

9292
import FindLayerCode from "@code/plugin-api/layers/find-layer?raw";
9393

@@ -97,6 +97,8 @@ import FindLayerCode from "@code/plugin-api/layers/find-layer?raw";
9797

9898
### select
9999

100+
**TODO** Description of the event.
101+
100102
## References
101103

102104
### Layer Type

0 commit comments

Comments
 (0)