Skip to content

Commit

Permalink
feat: remove default image (#5144)
Browse files Browse the repository at this point in the history
* feat: remove default image

* fix: destroyBehavior
  • Loading branch information
pomelo-nwu authored Nov 29, 2023
1 parent d891fbe commit e1f4e11
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
7 changes: 4 additions & 3 deletions packages/g6/src/runtime/controller/interaction.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { FederatedPointerEvent, IElement } from '@antv/g';
import { IGraph } from '../../types';
import { registery } from '../../stdlib';
import { getExtension } from '../../util/extension';
import { IGraph } from '../../types';
import { Behavior } from '../../types/behavior';
import {
CANVAS_EVENT_TYPE,
DOM_EVENT_TYPE,
IG6GraphEvent,
} from '../../types/event';
import {
ItemInfo,
getContextMenuEventProps,
getItemInfoFromElement,
ItemInfo,
} from '../../util/event';
import { getExtension } from '../../util/extension';

type Listener = (event: IG6GraphEvent) => void;

Expand Down Expand Up @@ -119,6 +119,7 @@ export class InteractionController {

private destroyBehavior = (key: string, behavior: Behavior) => {
try {
this.behaviorMap.delete(key);
behavior.destroy();
} catch (error) {
console.error(
Expand Down
1 change: 0 additions & 1 deletion packages/g6/src/stdlib/theme/dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export const DarkTheme = {
fontSize: 16,
zIndex: 1,
lod: -1,
img: 'https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*7g4nSbYrg6cAAAAAAAAAAAAADmJ7AQ/original',
},
anchorShapes: {
lineWidth: 1,
Expand Down
1 change: 0 additions & 1 deletion packages/g6/src/stdlib/theme/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ export const LightTheme = {
fontSize: 16,
zIndex: 1,
lod: -1,
img: 'https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*7g4nSbYrg6cAAAAAAAAAAAAADmJ7AQ/original',
},
anchorShapes: {
lineWidth: 1,
Expand Down

0 comments on commit e1f4e11

Please sign in to comment.