Skip to content

Commit

Permalink
release: v0.7.0-beta.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sheepbox8646 committed Dec 13, 2024
1 parent ec3343f commit aeca600
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 60 deletions.
57 changes: 4 additions & 53 deletions packages/app/src/output.css
Original file line number Diff line number Diff line change
Expand Up @@ -562,44 +562,23 @@ video {
position: relative;
}

.top-10 {
top: 2.5rem;
}

.top-0 {
top: 0px;
}

.top-\[38px\] {
top: 38px;
.left-0 {
left: 0px;
}

.top-full {
top: 100%;
}

.left-0 {
left: 0px;
}

.z-30 {
z-index: 30;
}

.mx-1 {
margin-left: 0.25rem;
margin-right: 0.25rem;
}

.mx-10 {
margin-left: 2.5rem;
margin-right: 2.5rem;
}

.mr-5 {
margin-right: 1.25rem;
}

.inline-block {
display: inline-block;
}
Expand Down Expand Up @@ -636,10 +615,6 @@ video {
width: 2.5rem;
}

.w-16 {
width: 4rem;
}

.w-3\/4 {
width: 75%;
}
Expand Down Expand Up @@ -739,42 +714,18 @@ video {
padding: 0.25rem;
}

.p-4 {
padding: 1rem;
}

.p-3 {
padding: 0.75rem;
}

.p-2 {
padding: 0.5rem;
}

.pt-2 {
padding-top: 0.5rem;
}

.pl-1 {
padding-left: 0.25rem;
}

.pl-2 {
padding-left: 0.5rem;
}

.pl-3 {
padding-left: 0.75rem;
.p-3 {
padding: 0.75rem;
}

.pl-4 {
padding-left: 1rem;
}

.text-left {
text-align: left;
}

.font-mono {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
Expand Down
6 changes: 3 additions & 3 deletions packages/client/template/src/scenes/MainScene.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script setup lang="ts">
import { usePlayer, useWidget } from "@vue-motion/core";
import type { TextOptions } from "@vue-motion/lib";
import type { TextIns } from "@vue-motion/lib";
import { Group, Image, Text, fadeIn, stroke } from "@vue-motion/lib";
import { onMounted } from "vue";
const title = useWidget<TextOptions>("title");
const text = useWidget<TextOptions>("text");
const title = useWidget<TextIns>();
const text = useWidget<TextIns>();
onMounted(() => {
const player = usePlayer();
Expand Down
11 changes: 9 additions & 2 deletions packages/lib/src/animations/path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,14 @@ export const moveOnFunction = defineAnimation<

return (progress) => {
const point = context.path(progress);
target.x = point.x * divisionX;
target.y = point.y * divisionY;
const newX = point.x * divisionX;
const newY = point.y * divisionY;

if (!Number.isNaN(newX)) {
target.x = newX;
}
if (!Number.isNaN(newY)) {
target.y = newY;
}
};
});
4 changes: 2 additions & 2 deletions packages/lib/src/widgets/circle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { FigureIns, FigureOptions } from "./figure";
import { figure } from "./figure";
export interface CircleOptions extends FigureOptions {
r: number;
radius: number;
cx: number;
cy: number;
}
Expand All @@ -19,7 +19,7 @@ const options = defineWidget(props);
<circle
:cx="options.cx"
:cy="options.cy"
:r="options.r"
:r="options.radius"
v-bind="figure(options)"
/>
</template>

0 comments on commit aeca600

Please sign in to comment.