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.js

    r6b95845 rc6b84df  
    2331023310          // ensure the presence of a dom element
    2331123311          element = typeof element === 'string' ? document.getElementById(element) : element; // If the target is an svg element, use that element as the main wrapper.
    23312           // This allows svg.js to work with svg documents as well.
     23312          // This allows svg.js to work with svg folders as well.
    2331323313
    2331423314          if (element.nodeName == 'svg') {
     
    2621526215        return this.p.matrixTransform(this.m)
    2621626216    };
    26217    
     26217
    2621826218    // gets elements bounding box with special handling of groups, nested and use
    2621926219    DragHandler.prototype.getBBox = function(){
     
    2622226222
    2622326223      if(this.el instanceof SVG.Nested) box = this.el.rbox();
    26224      
     26224
    2622526225      if (this.el instanceof SVG.G || this.el instanceof SVG.Use || this.el instanceof SVG.Nested) {
    2622626226        box.x = this.el.x();
     
    2624026240        }
    2624126241      }
    26242    
     26242
    2624326243      var _this = this;
    2624426244
     
    2625526255
    2625626256      var box = this.getBBox();
    26257      
     26257
    2625826258      var anchorOffset;
    26259      
     26259
    2626026260      // fix text-anchor in text-element (#37)
    2626126261      if(this.el instanceof SVG.Text){
    2626226262        anchorOffset = this.el.node.getComputedTextLength();
    26263          
     26263
    2626426264        switch(this.el.attr('text-anchor')){
    2626526265          case 'middle':
     
    2627126271        }
    2627226272      }
    26273      
     26273
    2627426274      this.startPoints = {
    2627526275        // We take absolute coordinates since we are just using a delta here
     
    2627826278        transform: this.el.transform()
    2627926279      };
    26280      
     26280
    2628126281      // add drag and end events to window
    2628226282      SVG.on(window, 'mousemove.drag', function(e){ _this.drag(e); });
     
    2630526305        , gx  = p.x - this.startPoints.point.x
    2630626306        , gy  = p.y - this.startPoints.point.y;
    26307        
     26307
    2630826308      var event = new CustomEvent('dragmove', {
    2630926309          detail: {
     
    2631526315        , cancelable: true
    2631626316      });
    26317        
     26317
    2631826318      this.el.fire(event);
    26319      
     26319
    2632026320      if(event.defaultPrevented) return p
    2632126321
     
    2635726357        else if (c.maxY != null && y > c.maxY - box.height)
    2635826358          y = c.maxY - box.height;
    26359          
     26359
    2636026360        if(this.el instanceof SVG.G)
    2636126361          this.el.matrix(this.startPoints.transform).transform({x:gx, y: gy}, true);
     
    2636326363          this.el.move(x, y);
    2636426364      }
    26365      
     26365
    2636626366      // so we can use it in the end-method, too
    2636726367      return p
Note: See TracChangeset for help on using the changeset viewer.