Skip to content

Commit

Permalink
fix: 修复无法从index引入KrpanoActionProxy等内容的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLLLLH committed Dec 16, 2020
1 parent 39cba7f commit 11c6a7d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/KrpanoActionProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface EventHandler {
selector: string;
handler: HandlerFunc;
}
export default class KrpanoActionProxy {
export class KrpanoActionProxy {
name: string;
krpanoRenderer?: NativeKrpanoRendererObject;
eventHandlers: EventHandler[] = [];
Expand Down Expand Up @@ -106,3 +106,5 @@ export default class KrpanoActionProxy {
});
}
}

export default KrpanoActionProxy;
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ export { default as View } from './components/View';
export { default as Scene } from './components/Scene';
export { default as Hotspot } from './components/Hotspot';
export { default as Events } from './components/Events';

export * from './KrpanoActionProxy';
export * from './types';
export * from './contexts/KrpanoRendererContext';
export * from './hooks/useKrpano';

0 comments on commit 11c6a7d

Please sign in to comment.