mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-13 17:54:30 +08:00
插件转为es模块
This commit is contained in:
1 parent
d56e54135a
commit
81f6815429
25 files changed
+3265
-3391
No files matched your search
@@ -1,5 +1,7 @@
|
||||
import { ref, watch } from 'vue';
|
||||
|
||||
// todo 优化,可以考虑改成reactive
|
||||
|
||||
/** 打开和关闭ui时是否展示动画 */
|
||||
export const transition = ref(false);
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { power } from 'mutate-animate';
|
||||
import { hyper, power } from 'mutate-animate';
|
||||
import { Polygon } from './polygon';
|
||||
import {
|
||||
Light,
|
||||
animateLight,
|
||||
getAllLights,
|
||||
moveLight,
|
||||
refreshLight,
|
||||
@@ -27,7 +28,7 @@ export default function init() {
|
||||
}
|
||||
};
|
||||
|
||||
return { updateShadow, clearShadowCache, setCalShadow, testLight: test };
|
||||
return { updateShadow, clearShadowCache, setCalShadow };
|
||||
}
|
||||
|
||||
const shadowInfo: Partial<Record<FloorIds, Light[]>> = {
|
||||
@@ -35,11 +36,10 @@ const shadowInfo: Partial<Record<FloorIds, Light[]>> = {
|
||||
{
|
||||
id: 'mt48_1',
|
||||
x: 0,
|
||||
y: 0,
|
||||
y: 48,
|
||||
decay: 0,
|
||||
r: 300,
|
||||
color: '#0000',
|
||||
followHero: true
|
||||
color: '#0000'
|
||||
}
|
||||
]
|
||||
};
|
||||
@@ -153,7 +153,3 @@ export function setCalShadow(n: boolean) {
|
||||
calMapShadow = n;
|
||||
updateShadow();
|
||||
}
|
||||
|
||||
function test() {
|
||||
moveLight('mt48_1', 480, 48, 2000, power(4, 'in-out'));
|
||||
}
|
||||
Reference in new issue
Block a user