Skip to content

Commit 6adfc53

Browse files
committed
feat: RsClick单例化
1 parent d3b2199 commit 6adfc53

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oflow-interface",
3-
"version": "0.14.9",
3+
"version": "0.14.10",
44
"description": "Interface package for O FLOW. You can use this package to build your own plugin that can control anything.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/api/ofp-api.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ import TAttributesServiceApi from './service/target/attribute/t-attributes-servi
8787
import type { FunctionComponent } from 'react'
8888
import RsLoopAnimationManagerApi from '@/api/service/engine/animation/factory/loop/rs-loop-animation-manager-api'
8989
import RsAudioServiceApi from '@/api/service/engine/audio/rs-audio-service-api'
90+
import RsClickApi from '@/api/service/engine/render/click/rs-click-api'
9091

9192
export interface OfpApi {
9293
services: {
@@ -133,6 +134,7 @@ export interface OfpApi {
133134
easyPropertyAnimation: EasyPropertyAnimationApi
134135
rsLoopAnimationManager: RsLoopAnimationManagerApi
135136
rsAudioService: RsAudioServiceApi
137+
rsClick: RsClickApi
136138
}
137139

138140
operate: {
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { V3 } from '@/type/general/vector.type'
2+
3+
export default interface RsClickApi {
4+
5+
simplifyDoneList(): void
6+
7+
show(position: V3, color: string, id: string, time: number): void
8+
9+
}

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ export type {
461461
RvMeetingServiceApi,
462462
RsLoopAnimationManagerApi,
463463
RsAudioServiceApi,
464+
RsClickApi,
464465
}
465466

466467
export {

0 commit comments

Comments
 (0)