|
|
|
@ -1,6 +1,7 @@
|
|
|
|
import { ElementType } from '../../../dataset/enum/Element'
|
|
|
|
import { ElementType } from '../../../dataset/enum/Element'
|
|
|
|
import { MouseEventButton } from '../../../dataset/enum/Event'
|
|
|
|
import { MouseEventButton } from '../../../dataset/enum/Event'
|
|
|
|
import { deepClone } from '../../../utils'
|
|
|
|
import { deepClone } from '../../../utils'
|
|
|
|
|
|
|
|
import { isMod } from '../../../utils/hotkey'
|
|
|
|
import { CheckboxControl } from '../../draw/control/checkbox/CheckboxControl'
|
|
|
|
import { CheckboxControl } from '../../draw/control/checkbox/CheckboxControl'
|
|
|
|
import { CanvasEvent } from '../CanvasEvent'
|
|
|
|
import { CanvasEvent } from '../CanvasEvent'
|
|
|
|
|
|
|
|
|
|
|
|
@ -106,8 +107,12 @@ export function mousedown(evt: MouseEvent, host: CanvasEvent) {
|
|
|
|
const hyperlinkParticle = draw.getHyperlinkParticle()
|
|
|
|
const hyperlinkParticle = draw.getHyperlinkParticle()
|
|
|
|
hyperlinkParticle.clearHyperlinkPopup()
|
|
|
|
hyperlinkParticle.clearHyperlinkPopup()
|
|
|
|
if (curElement.type === ElementType.HYPERLINK) {
|
|
|
|
if (curElement.type === ElementType.HYPERLINK) {
|
|
|
|
|
|
|
|
if (isMod(evt)) {
|
|
|
|
|
|
|
|
hyperlinkParticle.openHyperlink(curElement)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
hyperlinkParticle.drawHyperlinkPopup(curElement, positionList[curIndex])
|
|
|
|
hyperlinkParticle.drawHyperlinkPopup(curElement, positionList[curIndex])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
// 日期控件
|
|
|
|
// 日期控件
|
|
|
|
const dateParticle = draw.getDateParticle()
|
|
|
|
const dateParticle = draw.getDateParticle()
|
|
|
|
dateParticle.clearDatePicker()
|
|
|
|
dateParticle.clearDatePicker()
|
|
|
|
|