code: function getShapes(container, viewId) {
    var shapes = [];
    if (container.get('animate') === false) {
      return [];
    }
    var children = container.get('children');
    Util.each(children, function (child) {
      if (child.isGroup) {
        shapes = shapes.concat(getShapes(child, viewId));
      } else if (child.isShape && child._id) {
        var id = child._id;
        id = id.split('-')[0];
        if (id === viewId) {
          shapes.push(child);
        }
      }
    });
  
    return shapes;
  }
docs: 获取图组内所有的shapes