Skip to content

Commit

Permalink
fix: cleanup unused popover modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
KochiyaOcean committed Mar 13, 2024
1 parent 0201d6b commit 271b4c6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions views/utils/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import pangu from 'pangu'
import path from 'path'
import { readJsonSync } from 'fs-extra'
import url from 'url'
import { Modifiers } from 'popper.js'
import { PopoverProps } from '@blueprintjs/core'

/**
* Sums up each position for each position for a 2-dimension array (matrix)
Expand Down Expand Up @@ -367,11 +367,6 @@ export const loadScript = (path: string, document = window.document): void => {
/**
* Default blueprint popover(Popper.js) modifiers used in poi
*/
export const POPOVER_MODIFIERS: Modifiers = {
computeStyle: { gpuAcceleration: false }, // prevent using translat3d since it could make text blurry with zooming
preventOverflow: {
boundariesElement: 'window', // enable display tooltip within small containers
},
}
export const POPOVER_MODIFIERS: PopoverProps['modifiers'] = {}

export const cjkSpacing = (str: string) => (isString(str) ? pangu.spacing(str) : toString(str))

0 comments on commit 271b4c6

Please sign in to comment.