Ignore:
Timestamp:
10/21/21 23:45:59 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
4b7e2d3
Parents:
6b95845
Message:

added fileTypes controller, notifications, excel export, edited views

File:
1 edited

Legend:

Unmodified
Added
Removed
  • public/vendors/charts/apex/apexcharts.common.js

    r6b95845 rc6b84df  
    2330623306        // ensure the presence of a dom element
    2330723307        element = typeof element === 'string' ? document.getElementById(element) : element; // If the target is an svg element, use that element as the main wrapper.
    23308         // This allows svg.js to work with svg documents as well.
     23308        // This allows svg.js to work with svg folders as well.
    2330923309
    2331023310        if (element.nodeName == 'svg') {
     
    2621126211      return this.p.matrixTransform(this.m)
    2621226212  };
    26213  
     26213
    2621426214  // gets elements bounding box with special handling of groups, nested and use
    2621526215  DragHandler.prototype.getBBox = function(){
     
    2621826218
    2621926219    if(this.el instanceof SVG.Nested) box = this.el.rbox();
    26220    
     26220
    2622126221    if (this.el instanceof SVG.G || this.el instanceof SVG.Use || this.el instanceof SVG.Nested) {
    2622226222      box.x = this.el.x();
     
    2623626236      }
    2623726237    }
    26238  
     26238
    2623926239    var _this = this;
    2624026240
     
    2625126251
    2625226252    var box = this.getBBox();
    26253    
     26253
    2625426254    var anchorOffset;
    26255    
     26255
    2625626256    // fix text-anchor in text-element (#37)
    2625726257    if(this.el instanceof SVG.Text){
    2625826258      anchorOffset = this.el.node.getComputedTextLength();
    26259        
     26259
    2626026260      switch(this.el.attr('text-anchor')){
    2626126261        case 'middle':
     
    2626726267      }
    2626826268    }
    26269    
     26269
    2627026270    this.startPoints = {
    2627126271      // We take absolute coordinates since we are just using a delta here
     
    2627426274      transform: this.el.transform()
    2627526275    };
    26276    
     26276
    2627726277    // add drag and end events to window
    2627826278    SVG.on(window, 'mousemove.drag', function(e){ _this.drag(e); });
     
    2630126301      , gx  = p.x - this.startPoints.point.x
    2630226302      , gy  = p.y - this.startPoints.point.y;
    26303      
     26303
    2630426304    var event = new CustomEvent('dragmove', {
    2630526305        detail: {
     
    2631126311      , cancelable: true
    2631226312    });
    26313      
     26313
    2631426314    this.el.fire(event);
    26315    
     26315
    2631626316    if(event.defaultPrevented) return p
    2631726317
     
    2635326353      else if (c.maxY != null && y > c.maxY - box.height)
    2635426354        y = c.maxY - box.height;
    26355        
     26355
    2635626356      if(this.el instanceof SVG.G)
    2635726357        this.el.matrix(this.startPoints.transform).transform({x:gx, y: gy}, true);
     
    2635926359        this.el.move(x, y);
    2636026360    }
    26361    
     26361
    2636226362    // so we can use it in the end-method, too
    2636326363    return p
Note: See TracChangeset for help on using the changeset viewer.