Skip to content

Commit

Permalink
feat:remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
pomelo-nwu committed Feb 4, 2021
1 parent bb55aff commit 73c5ada
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/graphin/src/behaviors/Hoverable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const hoverable: React.FunctionComponent<HoverableProps> = props => {
const graphin = React.useContext(GraphinContext);
const { bindType = 'node' } = props;
React.useEffect(() => {
console.log('%c build-in events', 'color:lightgreen');
const { graph } = graphin;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const handleNodeMouseEnter = (evt: IG6GraphEvent & any) => {
Expand Down
1 change: 0 additions & 1 deletion packages/graphin/src/behaviors/ResizeCanvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const ResizeCanvas: React.FunctionComponent<ResizeCanvasProps> = props => {
const { graphDOM } = props;
const graphin = React.useContext(GraphinContext);
React.useEffect(() => {
console.log('%c build-in events', 'color:lightgreen');
const { graph } = graphin;

/** 内置 resize */
Expand Down
1 change: 0 additions & 1 deletion packages/graphin/src/behaviors/useBehaviorHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const useBehaviorHook = (params: Props) => {
const { disabled, ...otherConfig } = userProps;

React.useEffect(() => {
console.log('%c build-in behaviors:', 'color:lightblue', type);
/** 保持单例 */
graph.removeBehaviors(type, mode);

Expand Down
5 changes: 3 additions & 2 deletions packages/graphin/src/typings/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,11 +437,12 @@ export interface NodeShapeStyle {
halo: NodeStyleHalo;
}

enum StatusEnum {
export enum StatusEnum {
/** 悬停状态 */
HOVER = 'hover',
SELECTED = 'selected',
NORMAL = 'normal',
DISABLE = 'disable',
DISABLED = 'disabled',
ACTIVE = 'active',
INACTIVE = 'inactive',
}
Expand Down

0 comments on commit 73c5ada

Please sign in to comment.