Skip to content

Commit

Permalink
feat: supports disable pitch mode
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiteng committed Nov 7, 2022
1 parent 2ebd64f commit 958c6fb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,17 @@ export class XMindEmbedViewer {
el: HTMLElement | HTMLIFrameElement | string;
styles?: Partial<CSSStyleDeclaration>
file?: ArrayBuffer;
isPitchModeDisabled?: boolean
}) {
const {
file, el, styles = {
'height': '350px',
'width': '750px'
}
'width': '750px',
},
isPitchModeDisabled
} = args

const iframeController = new IframeController(el, 'https://www.xmind.app/embed-viewer')
const iframeController = new IframeController(el, `https://www.xmind.app/embed-viewer${ isPitchModeDisabled ? '?pitch-mode=disabled' : ''}`)
const iframeEventChannelController = new IframeEventChannelController(iframeController, 'https://www.xmind.app')

this.iframeController = iframeController
Expand Down

0 comments on commit 958c6fb

Please sign in to comment.