Skip to content

Commit 5b5c0b5

Browse files
committed
fix(removed dot lottie player): removed dot lottie player
1 parent 1bdcdbe commit 5b5c0b5

File tree

3 files changed

+0
-20
lines changed

3 files changed

+0
-20
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ Add the element `lottie-vue-player` and set the `src` prop to a URL pointing to
9595
| `speed` | Animation speed. | `number` | `1` |
9696
| `style` | The style for the container. | `object` | `undefined` |
9797
| `src` _(required)_ | Bodymovin JSON data or URL to JSON. | `object` | `string`| `undefined` |
98-
| `is_dotlottie` | Swap out normal player for dotlottie player | `boolean` | `false` |
9998
## Events
10099

101100
The following events are exposed and can be listened to via `addEventListener` calls.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
],
2727
"license": "MIT",
2828
"dependencies": {
29-
"@dotlottie/player-component": "^1.0.4",
3029
"@lottiefiles/lottie-player": "^1.0.4",
3130
"vue": "^2.6.12",
3231
"vue-clickaway": "^2.2.2"

src/Player.vue

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
<template>
22
<div class="w-full relative">
3-
<!-- lottie player / dot-lottie player -->
43
<div v-if="loading" class="w-full h-full absolute flex justify-center items-center">
54
<div class="spinner"></div>
65
</div>
76
<lottie-player
8-
v-if="is_dotlottie === false"
97
ref="player"
108
:autoplay="autoplay"
119
:src="src"
@@ -14,17 +12,6 @@
1412
:style="{height: height, background: options.backgroundColor}"
1513
@dblclick="toggleFullscreen"
1614
></lottie-player>
17-
<dotlottie-player
18-
v-if="is_dotlottie"
19-
ref="player"
20-
:autoplay="autoplay"
21-
:loop="options.loop"
22-
:src="src"
23-
:style="{height: height, background: options.backgroundColor}"
24-
:speed="options.speed"
25-
@dblclick="toggleFullscreen"
26-
>
27-
</dotlottie-player>
2815
<controls
2916
v-if="playerControls && options.animation"
3017
@setBackgroundColor="setBackgroundColor"
@@ -41,18 +28,13 @@
4128
</template>
4229
<script>
4330
import "@lottiefiles/lottie-player";
44-
import "@dotlottie/player-component";
4531
import Controls from "./Controls.vue";
4632
4733
export default {
4834
components: {
4935
'controls': Controls
5036
},
5137
props: {
52-
is_dotlottie: {
53-
type: Boolean,
54-
default: false
55-
},
5638
autoplay: {
5739
type: Boolean,
5840
default: true

0 commit comments

Comments
 (0)