Skip to content

Commit b12bcdb

Browse files
committed
移除不需要的依赖
1 parent 1ff60c0 commit b12bcdb

File tree

5 files changed

+11
-141
lines changed

5 files changed

+11
-141
lines changed

doc-site/docs/demo/1_2_1-canvas-filter.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
import { Combinator, MP4Clip, OffscreenSprite } from '@webav/av-cliper';
21
import { Radio, Space } from 'antd';
32
import { useState } from 'react';
43
// @ts-ignore
54
import { AVProRegister, AVCliper } from './av-pro.umd';
65
import { CombinatorPlay } from './combinator-player';
76
import { assetsPrefix } from './utils';
87

8+
const { Combinator, MP4Clip, OffscreenSprite } = AVCliper;
9+
910
const { createCanvasFilter } = await AVProRegister({
1011
licenseV1:
1112
'IH42XoF0U4qLbNSdKVqNRp8PRmWnPG/Na+lcCX6I8H1pIvwXCA8fYk4QGeevXHF5TMy7LMwBRuMKTRVfXU4LdEN93C0SqHbTJdI1xQst+2rrXkmersIktkh40cHbFOjQepWC1iLH3qAyDYQjqHegqK4M3sZ6eaGgOZKO7AGU6k9xdELDmLcXnOIW8OZefHkroWXCbeH5Rv/BE7vJGrheIeky89P+U5TVUvmBfNv8AptLGGZcTDW4NqvZHe8pvN/0WmgbnPuFHl0p3AJAkBWT765nUsC+ez2WvMeMU3UNUEa5CeAYlPv2hFEHlnONspM8btfQiguxp1sPgCZXqv2xeg==',
@@ -48,6 +49,7 @@ async function createCombinator(filterType: string) {
4849
// 创建滤镜函数
4950
const filter = createCanvasFilter(filterType);
5051

52+
// @ts-ignore
5153
// 使用 tickInterceptor 在每一帧应用滤镜
5254
filterClip.tickInterceptor = async (_, tickRet) => {
5355
if (tickRet.video == null) return tickRet;
@@ -81,7 +83,7 @@ async function createCombinator(filterType: string) {
8183
// UI 组件
8284
export default function UI() {
8385
const [filterType, setFilterType] = useState<string>(filterTypes[0]);
84-
const [com, setCom] = useState<null | Combinator>(null);
86+
const [com, setCom] = useState<null | typeof Combinator>(null);
8587

8688
return (
8789
<div>

doc-site/docs/demo/index.en-US.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ WebAVPro is a commercial SDK extended from the [WebAV project][2]. The demos on
1111
For basic demos, please visit the [WebAV project][2] site.
1212

1313
```tsx
14-
import { Combinator } from '@webav/av-cliper';
1514
import { useState, useEffect } from 'react';
1615

16+
import { AVCliper } from './av-pro.umd';
17+
18+
const { Combinator } = AVCliper;
19+
1720
export default function UI() {
1821
const [isSupported, setIsSupported] = useState<boolean | null>(null);
1922
const msg =

doc-site/docs/demo/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ WebAVPro 是扩展至 [WebAV 项目][2]的商业版 SDK,左侧是 Pro 专有
1111
基础 DEMO 请访问 [WebAV 项目][2]站点进行体验。
1212

1313
```tsx
14-
import { Combinator } from '@webav/av-cliper';
1514
import { useState, useEffect } from 'react';
15+
import { AVCliper } from './av-pro.umd';
16+
17+
const { Combinator } = AVCliper;
1618

1719
export default function UI() {
1820
const [isSupported, setIsSupported] = useState<boolean | null>(null);

doc-site/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@
2828
"tailwindcss": "^3.4.1"
2929
},
3030
"dependencies": {
31-
"@webav/av-canvas": "^1.1.1",
32-
"@webav/av-cliper": "^1.1.1",
33-
"@webav/av-recorder": "^1.1.1",
34-
"@xzdarcy/react-timeline-editor": "^0.1.9",
3531
"antd": "^5.11.5"
3632
}
3733
}

doc-site/pnpm-lock.yaml

Lines changed: 0 additions & 133 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)