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

    r6b95845 rc6b84df  
    2330423304        // ensure the presence of a dom element
    2330523305        element = typeof element === 'string' ? document.getElementById(element) : element; // If the target is an svg element, use that element as the main wrapper.
    23306         // This allows svg.js to work with svg documents as well.
     23306        // This allows svg.js to work with svg folders as well.
    2330723307
    2330823308        if (element.nodeName == 'svg') {
     
    2620926209      return this.p.matrixTransform(this.m)
    2621026210  };
    26211  
     26211
    2621226212  // gets elements bounding box with special handling of groups, nested and use
    2621326213  DragHandler.prototype.getBBox = function(){
     
    2621626216
    2621726217    if(this.el instanceof SVG.Nested) box = this.el.rbox();
    26218    
     26218
    2621926219    if (this.el instanceof SVG.G || this.el instanceof SVG.Use || this.el instanceof SVG.Nested) {
    2622026220      box.x = this.el.x();
     
    2623426234      }
    2623526235    }
    26236  
     26236
    2623726237    var _this = this;
    2623826238
     
    2624926249
    2625026250    var box = this.getBBox();
    26251    
     26251
    2625226252    var anchorOffset;
    26253    
     26253
    2625426254    // fix text-anchor in text-element (#37)
    2625526255    if(this.el instanceof SVG.Text){
    2625626256      anchorOffset = this.el.node.getComputedTextLength();
    26257        
     26257
    2625826258      switch(this.el.attr('text-anchor')){
    2625926259        case 'middle':
     
    2626526265      }
    2626626266    }
    26267    
     26267
    2626826268    this.startPoints = {
    2626926269      // We take absolute coordinates since we are just using a delta here
     
    2627226272      transform: this.el.transform()
    2627326273    };
    26274    
     26274
    2627526275    // add drag and end events to window
    2627626276    SVG.on(window, 'mousemove.drag', function(e){ _this.drag(e); });
     
    2629926299      , gx  = p.x - this.startPoints.point.x
    2630026300      , gy  = p.y - this.startPoints.point.y;
    26301      
     26301
    2630226302    var event = new CustomEvent('dragmove', {
    2630326303        detail: {
     
    2630926309      , cancelable: true
    2631026310    });
    26311      
     26311
    2631226312    this.el.fire(event);
    26313    
     26313
    2631426314    if(event.defaultPrevented) return p
    2631526315
     
    2635126351      else if (c.maxY != null && y > c.maxY - box.height)
    2635226352        y = c.maxY - box.height;
    26353        
     26353
    2635426354      if(this.el instanceof SVG.G)
    2635526355        this.el.matrix(this.startPoints.transform).transform({x:gx, y: gy}, true);
     
    2635726357        this.el.move(x, y);
    2635826358    }
    26359    
     26359
    2636026360    // so we can use it in the end-method, too
    2636126361    return p
Note: See TracChangeset for help on using the changeset viewer.