<commit_before>import { G6Event, IG6GraphEvent, IPoint, Item } from '../types';
import isPolygonsIntersect from '@antv/path-util/lib/is-polygons-intersect';
import { pathToPoints } from '../util/path'

const DEFAULT_TRIGGER = 'shift';
const ALLOW_EVENTS = ['drag', 'shift', 'ctrl', 'alt', 'control'];

const isItemIntersecPolygon = (item: Item, polyPoints: number[][]) => {
  let shapePoints;
  const shape = item.getKeyShape()
  if (item.get('type') === 'path') {
    shapePoints = pathToPoints(shape.attr('path'))
  } else {
    const shapeBBox = shape.getCanvasBBox();<commit_msg>chore: update the import of isPolygonsIntersect<commit_after>import { G6Event, IG6GraphEvent, IPoint, Item } from '../types';
import { isPolygonsIntersect } from '@antv/path-util';
import { pathToPoints } from '../util/path'

const DEFAULT_TRIGGER = 'shift';
const ALLOW_EVENTS = ['drag', 'shift', 'ctrl', 'alt', 'control'];

const isItemIntersecPolygon = (item: Item, polyPoints: number[][]) => {
  let shapePoints;
  const shape = item.getKeyShape()
  if (item.get('type') === 'path') {
    shapePoints = pathToPoints(shape.attr('path'))
  } else {
    const shapeBBox = shape.getCanvasBBox();
{'fraction_non_alphanumeric': 0.16893039049235994, 'fraction_numerical': 0.003395585738539898, 'mean_word_length': 5.077319587628866, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6411000', 'n_tokens_mistral': 390, 'n_tokens_neox': 389, 'n_words': 94}