Skip to content

Commit

Permalink
Get rid of decorators and FVector3
Browse files Browse the repository at this point in the history
  • Loading branch information
Gugustinette committed May 11, 2024
1 parent 4d4543b commit 9b05df1
Show file tree
Hide file tree
Showing 46 changed files with 1,474 additions and 897 deletions.
11 changes: 0 additions & 11 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,9 @@ export default defineConfig({
{ text: 'FModel', link: '/api/classes/FModel' },
{ text: 'FSphere', link: '/api/classes/FSphere' },
] },
{ text: 'Functions', items: [
{ text: 'useLookAt', link: '/api/functions/useLookAt' },
{ text: 'usePosition', link: '/api/functions/usePosition' },
{ text: 'useRigidBody', link: '/api/functions/useRigidBody' },
{ text: 'useRotation', link: '/api/functions/useRotation' },
{ text: 'useRotationDegree', link: '/api/functions/useRotationDegree' },
{ text: 'useScale', link: '/api/functions/useScale' },
] },
{ text: 'Enumerations', items: [
{ text: 'F3dShapes', link: '/api/enums/F3dShapes' },
] },
{ text: 'Interfaces', items: [
{ text: 'FVector3', link: '/api/interfaces/FVector3' },
] },
],
},
],
Expand Down
103 changes: 98 additions & 5 deletions docs/api/classes/FAttachedCamera.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,13 @@ export default class MyAttachedCamera extends FAttachedCamera {
- [rotateZ](FAttachedCamera.md#rotatez)
- [setFocalLength](FAttachedCamera.md#setfocallength)
- [setLens](FAttachedCamera.md#setlens)
- [setPosition](FAttachedCamera.md#setposition)
- [setRotation](FAttachedCamera.md#setrotation)
- [setRotationFromAxisAngle](FAttachedCamera.md#setrotationfromaxisangle)
- [setRotationFromEuler](FAttachedCamera.md#setrotationfromeuler)
- [setRotationFromMatrix](FAttachedCamera.md#setrotationfrommatrix)
- [setRotationFromQuaternion](FAttachedCamera.md#setrotationfromquaternion)
- [setScale](FAttachedCamera.md#setscale)
- [setViewOffset](FAttachedCamera.md#setviewoffset)
- [toJSON](FAttachedCamera.md#tojson)
- [translateOnAxis](FAttachedCamera.md#translateonaxis)
Expand Down Expand Up @@ -174,7 +177,7 @@ export default class MyAttachedCamera extends FAttachedCamera {

#### Defined in

src/cameras/FAttachedCamera.ts:33
[src/cameras/FAttachedCamera.ts:33](https://github.com/fibbojs/fibbo/blob/4d4543b0732388b4480d2785a954ccaf7d85811f/src/cameras/FAttachedCamera.ts#L33)

## Methods

Expand Down Expand Up @@ -1186,7 +1189,7 @@ ___

#### Defined in

src/cameras/FAttachedCamera.ts:38
[src/cameras/FAttachedCamera.ts:38](https://github.com/fibbojs/fibbo/blob/4d4543b0732388b4480d2785a954ccaf7d85811f/src/cameras/FAttachedCamera.ts#L38)

___

Expand Down Expand Up @@ -1543,6 +1546,66 @@ node_modules/@types/three/src/cameras/PerspectiveCamera.d.ts:222

___

### setPosition

**setPosition**(`x`, `y`, `z`): `void`

#### Parameters

| Name | Type |
| :------ | :------ |
| `x` | `number` |
| `y` | `number` |
| `z` | `number` |

#### Returns

`void`

**`Description`**

Set the position of the camera.

#### Overrides

[FCamera](FCamera.md).[setPosition](FCamera.md#setposition)

#### Defined in

[src/cameras/FAttachedCamera.ts:50](https://github.com/fibbojs/fibbo/blob/4d4543b0732388b4480d2785a954ccaf7d85811f/src/cameras/FAttachedCamera.ts#L50)

___

### setRotation

**setRotation**(`x`, `y`, `z`): `void`

#### Parameters

| Name | Type |
| :------ | :------ |
| `x` | `number` |
| `y` | `number` |
| `z` | `number` |

#### Returns

`void`

**`Description`**

Set the rotation of the camera.

#### Inherited from

[FCamera](FCamera.md).[setRotation](FCamera.md#setrotation)

#### Defined in

[src/cameras/FCamera.ts:32](https://github.com/fibbojs/fibbo/blob/4d4543b0732388b4480d2785a954ccaf7d85811f/src/cameras/FCamera.ts#L32)

___

### setRotationFromAxisAngle

**setRotationFromAxisAngle**(`axis`, `angle`): `void`
Expand Down Expand Up @@ -1652,6 +1715,36 @@ node_modules/@types/three/src/core/Object3D.d.ts:370

___

### setScale

**setScale**(`x`, `y`, `z`): `void`

#### Parameters

| Name | Type |
| :------ | :------ |
| `x` | `number` |
| `y` | `number` |
| `z` | `number` |

#### Returns

`void`

**`Description`**

Set the scale of the camera.

#### Inherited from

[FCamera](FCamera.md).[setScale](FCamera.md#setscale)

#### Defined in

[src/cameras/FCamera.ts:25](https://github.com/fibbojs/fibbo/blob/4d4543b0732388b4480d2785a954ccaf7d85811f/src/cameras/FCamera.ts#L25)

___

### setViewOffset

**setViewOffset**(`fullWidth`, `fullHeight`, `x`, `y`, `width`, `height`): `void`
Expand Down Expand Up @@ -2122,7 +2215,7 @@ ___

#### Defined in

src/cameras/FAttachedCamera.ts:26
[src/cameras/FAttachedCamera.ts:26](https://github.com/fibbojs/fibbo/blob/4d4543b0732388b4480d2785a954ccaf7d85811f/src/cameras/FAttachedCamera.ts#L26)

___

Expand Down Expand Up @@ -2707,11 +2800,11 @@ ___

### offset

**offset**: [`FVector3`](../interfaces/FVector3.md)
**offset**: `Vector3`

#### Defined in

src/cameras/FAttachedCamera.ts:28
[src/cameras/FAttachedCamera.ts:28](https://github.com/fibbojs/fibbo/blob/4d4543b0732388b4480d2785a954ccaf7d85811f/src/cameras/FAttachedCamera.ts#L28)

___

Expand Down
97 changes: 95 additions & 2 deletions docs/api/classes/FCamera.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,13 @@ The base class for cameras in FibboJS.
- [rotateZ](FCamera.md#rotatez)
- [setFocalLength](FCamera.md#setfocallength)
- [setLens](FCamera.md#setlens)
- [setPosition](FCamera.md#setposition)
- [setRotation](FCamera.md#setrotation)
- [setRotationFromAxisAngle](FCamera.md#setrotationfromaxisangle)
- [setRotationFromEuler](FCamera.md#setrotationfromeuler)
- [setRotationFromMatrix](FCamera.md#setrotationfrommatrix)
- [setRotationFromQuaternion](FCamera.md#setrotationfromquaternion)
- [setScale](FCamera.md#setscale)
- [setViewOffset](FCamera.md#setviewoffset)
- [toJSON](FCamera.md#tojson)
- [translateOnAxis](FCamera.md#translateonaxis)
Expand Down Expand Up @@ -159,7 +162,7 @@ THREE.PerspectiveCamera.constructor

#### Defined in

src/cameras/FCamera.ts:9
[src/cameras/FCamera.ts:9](https://github.com/fibbojs/fibbo/blob/4d4543b0732388b4480d2785a954ccaf7d85811f/src/cameras/FCamera.ts#L9)

## Methods

Expand Down Expand Up @@ -1171,7 +1174,7 @@ ___

#### Defined in

src/cameras/FCamera.ts:13
[src/cameras/FCamera.ts:13](https://github.com/fibbojs/fibbo/blob/4d4543b0732388b4480d2785a954ccaf7d85811f/src/cameras/FCamera.ts#L13)

___

Expand Down Expand Up @@ -1528,6 +1531,66 @@ node_modules/@types/three/src/cameras/PerspectiveCamera.d.ts:222

___

### setPosition

**setPosition**(`x`, `y`, `z`): `void`

#### Parameters

| Name | Type |
| :------ | :------ |
| `x` | `number` |
| `y` | `number` |
| `z` | `number` |

#### Returns

`void`

**`Description`**

Set the position of the camera.

#### Implementation of

[FComponent](FComponent.md).[setPosition](FComponent.md#setposition)

#### Defined in

[src/cameras/FCamera.ts:18](https://github.com/fibbojs/fibbo/blob/4d4543b0732388b4480d2785a954ccaf7d85811f/src/cameras/FCamera.ts#L18)

___

### setRotation

**setRotation**(`x`, `y`, `z`): `void`

#### Parameters

| Name | Type |
| :------ | :------ |
| `x` | `number` |
| `y` | `number` |
| `z` | `number` |

#### Returns

`void`

**`Description`**

Set the rotation of the camera.

#### Implementation of

[FComponent](FComponent.md).[setRotation](FComponent.md#setrotation)

#### Defined in

[src/cameras/FCamera.ts:32](https://github.com/fibbojs/fibbo/blob/4d4543b0732388b4480d2785a954ccaf7d85811f/src/cameras/FCamera.ts#L32)

___

### setRotationFromAxisAngle

**setRotationFromAxisAngle**(`axis`, `angle`): `void`
Expand Down Expand Up @@ -1637,6 +1700,36 @@ node_modules/@types/three/src/core/Object3D.d.ts:370

___

### setScale

**setScale**(`x`, `y`, `z`): `void`

#### Parameters

| Name | Type |
| :------ | :------ |
| `x` | `number` |
| `y` | `number` |
| `z` | `number` |

#### Returns

`void`

**`Description`**

Set the scale of the camera.

#### Implementation of

[FComponent](FComponent.md).[setScale](FComponent.md#setscale)

#### Defined in

[src/cameras/FCamera.ts:25](https://github.com/fibbojs/fibbo/blob/4d4543b0732388b4480d2785a954ccaf7d85811f/src/cameras/FCamera.ts#L25)

___

### setViewOffset

**setViewOffset**(`fullWidth`, `fullHeight`, `x`, `y`, `width`, `height`): `void`
Expand Down
Loading

0 comments on commit 9b05df1

Please sign in to comment.