import _extends from "@babel/runtime/helpers/extends";
/**
 * 规则后置节点，主要用于万能按钮点击后最后执行
 * 
 */
import { EXPAND_ICON } from "../icons";
import { FlowEvent } from "../type";
export var ruleAfterNode = {
  options: {
    style: {
      fill: '#05f9f5',
      radius: 8,
      lineWidth: 1,
      stroke: '#18c9ff',
      fillOpacity: '0.95'
    },
    stateStyles: {
      hover: {},
      selected: {}
    },
    labelCfg: {
      style: {
        fill: '#000000',
        fontSize: 14,
        fontWeight: 400,
        fillOpacity: '0.7'
      }
    },
    size: [120, 40]
  },
  drawShape: function drawShape(cfg, group) {
    var styles = this.getShapeStyle(cfg);
    var h = styles.height;
    var keyShape = group.addShape('rect', {
      attrs: _extends({
        x: 0,
        y: 0
      }, styles)
    });
    group.addShape('marker', {
      attrs: {
        x: 0,
        y: h / 2 + 7,
        r: 6,
        stroke: '#73d13d',
        cursor: 'pointer',
        symbol: EXPAND_ICON
      },
      // must be assigned in G6 3.3 and later versions. it can be any string you want, but should be unique in a custom item type
      name: FlowEvent.addItem
    });
    return keyShape;
  }
};