Skip to content

Commit f6b31cd

Browse files
Fix missing .editorconfig file
1 parent a664c8e commit f6b31cd

File tree

15 files changed

+114
-99
lines changed

15 files changed

+114
-99
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# top-most editorconfig file
2+
root = true
3+
4+
# editor configuration
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_style = space
9+
indent_size = 2
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
13+
# preserve markdown line break
14+
[*.md]
15+
trim_trailing_whitespace = false

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
node_modules
22
.DS_Store
3-
docs/.vuepress/dist
3+
docs/.vuepress/dist

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

docs/.vuepress/components/ExampleSpinner.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@
5151
5252
}
5353
54-
54+
5555
</script>

docs/.vuepress/components/MojsCurveEditorExample.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,29 +42,29 @@ Usage:
4242
import('@mojs/curve-editor').then(module => {
4343
4444
// const startPath = 'M0, 100 C21, 100 25, 38 25, 38 C25, 38 37, 60 50, 60 C63, 60 65, 15 75, 15 C85, 15 87.71428571428571, 100 100, 100';
45-
45+
4646
this.myCurve = new MojsCurveEditor({
4747
name: 'myCurve',
4848
// startPath: startPath, // doesn't work properly in v1.5.0
4949
isHiddenOnMin: true,
5050
});
5151
5252
this.myCurve.minimize();
53-
53+
5454
const shape = new mojs.Shape({
5555
parent: '#curve-editor-example',
5656
y: {'-100': 100},
57-
57+
5858
duration: 2000,
5959
easing: this.myCurve.getEasing()
6060
});
61-
61+
6262
const timeline = new mojs.Timeline();
6363
timeline.add(
6464
shape
6565
);
66-
67-
66+
67+
6868
const controllerDOM = document.getElementById('curve-controller');
6969
new MojsPlayer({
7070
add: timeline,
@@ -89,7 +89,7 @@ Usage:
8989

9090
<style>
9191
.curve-example {
92-
margin-top: 20px;
92+
margin-top: 20px;
9393
}
9494
.curve-example--open {
9595
height: 300px

docs/.vuepress/components/MojsInteractive.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ circles.play()"
175175
console.error('Woops, please check your code for errors.', error)
176176
}
177177
}
178-
178+
179179
// Set the prop :controller=true to include a mojs player
180-
domRef = window['demo_' + this.id] || (this.global !== '' && window[this.global]);
180+
domRef = window['demo_' + this.id] || (this.global !== '' && window[this.global]);
181181
if (this.controller && domRef) {
182182
const parentDOM = document.getElementById(this.id + '_controller');
183183
// Create a global mojs player instance

docs/.vuepress/config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
['meta', { name: "msapplication-config", content: "/assets/favicons/browserconfig.xml"}],
1616
['meta', { name: "theme-color", content: "#ffffff"}],
1717
],
18-
18+
1919
themeConfig: {
2020
logo: '/assets/img/logo.svg',
2121
nav: [
@@ -110,5 +110,5 @@ module.exports = {
110110
// sidebar: 'auto',
111111

112112
}
113-
114-
}
113+
114+
}

docs/.vuepress/styles/index.styl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ html, body {
4040
}
4141

4242
.content__default {
43-
max-width: 60em;
43+
max-width: 60em;
4444
margin: 0 auto;
4545
padding: 0 4%;
4646
}
@@ -241,4 +241,4 @@ blockquote {
241241
background-size: 2000px 1000px;
242242
background-position: center left;
243243
}
244-
}
244+
}

docs/tools/player/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ GUI player to control your animations
1616

1717
::: tip
1818
For shotcuts and more options, [read more here](https://github.com/mojs/mojs-player)
19-
:::
19+
:::

docs/tutorials/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ sidebarDepth: 0
1313

1414
## Modules
1515
- [Shape & ShapeSwirl](./shape-swirl/)
16-
- [Burst](./burst/)
16+
- [Burst](./burst/)

docs/tutorials/burst/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Burst is the module that helps you to craft numerous sophisticated motion effect
66

77
> Please make sure you are comfortable with [Shapes & ShapeSwirl](/tutorials//shape-swirl/) before proceeding with this tutorial. Understanding those modules is crucial for understanding the `Burst`.
88
9-
## Burst
9+
## Burst
1010

1111

1212
`Burst` is a higher order module that creates sophisticated visual effects in any part of the screen you want. You can think of `Burst` as a particle emitter that composes a bunch of `ShapeSwirl`'s together, creating a circle of particles.
@@ -442,7 +442,7 @@ So starting from 12 o'clock clockwise, the 5 childrens `fill` properties get val
442442
Property maps work with any property and property forms, in fact, that's just a prism (or multiplexer) that feeds children with properties by virtue of modulus function. Good aid if you want to set some property on child explicitly.
443443

444444

445-
## then, tune, generate and play
445+
## then, tune, generate and play
446446

447447
You can make `then` state chains, `tune` and `generate` any `Burst` the same as you do with `Shape` or `ShapeSwirl`. Also, since the `Burst` is merely a `ShapeSwirl` under the hood, you can use any `tween` interface public method like `play`, `setProgress`, `replay` etc (click somewhere to see):
448448

@@ -487,13 +487,13 @@ document.addEventListener( 'click', function (e) {
487487
</MojsCode>
488488

489489

490-
## Recap
490+
## Recap
491491

492492

493493
That's basically the burst, as I said you already know it so we won't go thru the children options again, instead, let's jog thru some use cases in the next section which will help as to gain some intuition over where and how to use the bursts. As you remember, - `Burst` is just a composition of a bunch of `ShapeSwirls`. There is the main swirl in the center of the burst but it has no visual shape. Also, it has no tween properties and its durations is calculated regarding the duration of the children. All child swirls use the main one as a `parent`. You can set properties of `children` with the appropriate property. Please, use the [Burst API](/api/burst) as the reference.
494494

495495

496-
## Use Cases
496+
## Use Cases
497497

498498
> Please note that the use cases section contains a lot of live code examples but the actual code samples are omitted for time savings and simplicity sake. The actual code is still available on the `Babel` tab of the pens and I highly encourage you to read through and play with them while we will walk through this section. You can omit reading large demos code since it is probably unreadable (some Codepens can contain bundled code) or it could be too large to understand sparingly, but you can return to them later. I will leave a little **(×)** mark for you to indicate that you can skip reading the source code of the Codepen for now.
499499
@@ -929,7 +929,7 @@ How is it possible? Remember that the `Burst` composes `ShapeSwirls`, not simple
929929
</em>
930930

931931

932-
OK. Recalling the mole demo, what else did you notice? Probably confetti that appears when cube hits the floor. Right!
932+
OK. Recalling the mole demo, what else did you notice? Probably confetti that appears when cube hits the floor. Right!
933933

934934

935935

@@ -1058,7 +1058,7 @@ That's exact the same effect as we have made in the [Shape & ShapeSwirl](/tutori
10581058
That's it for `Burst`. We've touched only the surface of the possible effects that you can compose with this module, but that's a good start to convey the idea and APIs. Also, my friends from [Codrops](http://tympanus.net/codrops/) wrote an awesome [post](http://tympanus.net/Development/Animocons/) a while ago on the `Burst` matter, definitely check it out.
10591059

10601060

1061-
## Recap
1061+
## Recap
10621062

10631063

10641064
Burst is the module that helps you to craft sophisticated motion effects with simple declarative calls. Technically, it is the main `ShapeSwirl` that composes a bunch of child `ShapeSwirls` forming the radial shape by default. `mojs` takes care about all markup bootstrapping and positioning of the module for you. The main swirl has no shape thus no presentation properties. The duration of the main swirl is calculated regarding duration of the child swirls. To control child swirls, pass the `ShapeSwirl` properties to the `children` property of the main swirl. You can find exhaustive API reference at [Burst API](/api/burst) section.

0 commit comments

Comments
 (0)