File tree Expand file tree Collapse file tree 2 files changed +26
-8
lines changed
apps/astro-docs/src/content/docs/cannon Expand file tree Collapse file tree 2 files changed +26
-8
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ title: Debug
3
3
description : Details about the Angular Three Cannon Debug
4
4
---
5
5
6
- import CannonSampleDebug from ' ../../../components/cannon/sample-debug' ;
6
+ import { Tabs , TabItem , Code } from ' @astrojs/starlight/components' ;
7
+ import CannonSampleDebug , { content } from ' ../../../components/cannon/sample-debug?includeContent' ;
7
8
8
9
` angular-three-cannon/debug ` provides a debug experience for Cannon.js physics engine using ` cannon-es-debugger ` . This
9
10
allows us to visualize how Cannon _ sees_ the 3D scene graph.
@@ -74,6 +75,13 @@ injectBox(
74
75
75
76
### Example
76
77
77
- <div class = " h-96 w-full border border-dashed border-accent-500 rounded" >
78
- <CannonSampleDebug client :only />
79
- </div >
78
+ <Tabs >
79
+ <TabItem label = " Preview" >
80
+ <div class = " h-96 w-full border border-dashed border-accent-500 rounded" >
81
+ <CannonSampleDebug client :only />
82
+ </div >
83
+ </TabItem >
84
+ <TabItem label = " Code" >
85
+ <Code code = { content } lang = " angular-ts" />
86
+ </TabItem >
87
+ </Tabs >
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ title: How it works
3
3
description : How Angular Three Cannon works
4
4
---
5
5
6
- import CannonSample from ' ../../../components/cannon/sample' ;
6
+ import { Tabs , TabItem , Code } from ' @astrojs/starlight/components' ;
7
+ import CannonSample , { content } from ' ../../../components/cannon/sample?includeContent' ;
7
8
8
9
### Import ` NgtcPhysics ` from ` angular-three-cannon `
9
10
@@ -88,6 +89,15 @@ export class Box {
88
89
89
90
### Example
90
91
91
- <div class = " h-96 w-full border border-dashed border-accent-500 rounded" >
92
- <CannonSample client :only />
93
- </div >
92
+ <Tabs >
93
+ <TabItem label = " Preview" >
94
+ <div class = " h-96 w-full border border-dashed border-accent-500 rounded" >
95
+ <CannonSample client :only />
96
+ </div >
97
+ </TabItem >
98
+ <TabItem label = " Code" >
99
+ <Code code = { content } lang = " angular-ts" />
100
+ </TabItem >
101
+ </Tabs >
102
+
103
+
You can’t perform that action at this time.
0 commit comments