Skip to content

Commit

Permalink
Docs link fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
boytchev committed Jul 24, 2024
1 parent fca9311 commit 98b69dd
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 45 deletions.
42 changes: 21 additions & 21 deletions docs/userguide-bg.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img class="logo" src="assets/logo/logo.png">
<img class="logo" src="../assets/logo/logo.png">

## This document is also available in [English](userguide.md).

Expand All @@ -22,21 +22,21 @@

### Минимална програма

Това е най-късата програма, която създава мъжка фигура в браузър ([пример на живо](https://boytchev.github.io/mannequin.js/examples/example-minimal.html)):
Това е относително минимална програма, която създава мъжка фигура в браузър ([пример на живо](https://boytchev.github.io/mannequin.js/examples/example-minimal.html)):

``` xml
<!DOCTYPE html>
<html>
<head>
<script src="../src/importmap.js"></script>
</head>
<body>
<script type="module">
import "mannequin";
createScene( );
new Male();
</script>
</body>
<head>
<script src="../src/importmap.js"></script>
</head>
<body>
<script type="module">
import "mannequin";
createScene( );
new Male();
</script>
</body>
</html>
```

Expand All @@ -52,27 +52,27 @@
е относителният размер на фигурата. По подразбиране `Male` има височина 1.00,
`Female` има височина 0.95 и `Child` има височина 0.65 ([пример на живо](https://boytchev.github.io/mannequin.js/examples/example-figure-types.html)):

[<img src="examples/snapshots/example-figure-types.jpg">](https://boytchev.github.io/mannequin.js/examples/example-figure-types.html)
[<img src="snapshots/example-figure-types.jpg">](example-figure-types.html)

``` javascript
var man = new Male();
man.position.x = 20;
man.turn = -120;
man.position.x = 20;
man.turn = -120;
:
var woman = new Female();
woman.position.x = -20;
woman.turn = -60;
woman.position.x = -20;
woman.turn = -60;
:
var kid = new Child();
kid.position.z = -7
kid.position.z = -7;
:
```

Тези три класа има общ родиел &ndash; класът `Mannequin(feminine,height)`,
Тези три класа има общ родител &ndash; `Mannequin(feminine,height)`,
в който булевият параметър *feminine* определя дали формата е женствена
или мъжествена ([пример на живо](https://boytchev.github.io/mannequin.js/examples/example-height.html)):
или мъжествена ([пример на живо](example-height.html)):

[<img src="examples/snapshots/example-height.jpg">](https://boytchev.github.io/mannequin.js/examples/example-height.html)
[<img src="snapshots/example-height.jpg">](example-height.html)

Разликата между използването на различните класове за фигури е в това, че
`Mannequin` придава подразбираща се неутрална поза на фигурата, докато
Expand Down
47 changes: 23 additions & 24 deletions docs/userguide.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<img class="logo" src="assets/logo/logo.png">
<img class="logo" src="../assets/logo/logo.png">

## Този документ е наличен и на [български език](userguide-bg.md).

Expand All @@ -15,28 +15,28 @@

# Initialization

The **mannequin.js** library is provided as a JavaScript modulefile that uses
The **mannequin.js** library is provided as a JavaScript module that uses
Three.js.



### Minimal program

Here is a minimal program that creates a male figure in the browser ([live example](https://boytchev.github.io/mannequin.js/examples/example-minimal.html)):
Here is a reasonably minimal program that creates a male figure in the browser ([live example](https://boytchev.github.io/mannequin.js/examples/example-minimal.html)):

``` xml
<!DOCTYPE html>
<html>
<head>
<script src="../src/importmap.js"></script>
</head>
<body>
<script type="module">
import "mannequin";
createScene( );
new Male();
</script>
</body>
<head>
<script src="../src/importmap.js"></script>
</head>
<body>
<script type="module">
import "mannequin";
createScene( );
new Male();
</script>
</body>
</html>
```

Expand All @@ -50,29 +50,28 @@ ground, and so on. `Male` constructs a male figure.
Mannequin figures are created as instances of classes `Male(height)`, `Female(height)`
or `Child(height)`, where the optional *height* is the relative size of the figure.
By default `Male` has height 1.00, `Female` has height 0.95 and `Child` has height
0.65 ([live example (https://boytchev.github.io/mannequin.js/examples/example-figure-types.html)):
0.65 ([live example] (example-figure-types.html)):

[<img src="examples/snapshots/example-figure-types.jpg">](https://boytchev.github.io/mannequin.js/examples/example-figure-types.html)
[<img src="snapshots/example-figure-types.jpg">](example-figure-types.html)

``` javascript
var man = new Male();
man.position.x = 20;
man.turn = -120;
man.position.x = 20;
man.turn = -120;
:
var woman = new Female();
woman.position.x = -20;
woman.turn = -60;
woman.position.x = -20;
woman.turn = -60;
:
var kid = new Child();
kid.position.z = -7
kid.position.z = -7;
:
```

These three classes have a common predecessor &ndash; the class `Mannequin(feminine,height)`, where the boolean paremeter *feminine* defines
whether the shape is feminine or masculine
([live example](https://boytchev.github.io/mannequin.js/examples/example-height.html)):
These three classes have a common predecessor &ndash; `Mannequin(feminine,height)`, where the boolean paremeter *feminine* defines whether the shape is feminine or masculine
([live example](example-height.html)):

[<img src="examples/snapshots/example-height.jpg">](https://boytchev.github.io/mannequin.js/examples/example-height.html)
[<img src="snapshots/example-height.jpg">](example-height.html)

The difference between using different figure classes is that `Mannequin` sets
a default neutral posture of the figure, while `Male` and `Female` set a default
Expand Down

0 comments on commit 98b69dd

Please sign in to comment.