Changeset c6b84df for public/vendors/charts/apex
- Timestamp:
- 10/21/21 23:45:59 (3 years ago)
- Branches:
- develop, master
- Children:
- 4b7e2d3
- Parents:
- 6b95845
- Location:
- public/vendors/charts/apex
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
public/vendors/charts/apex/apexcharts.amd.js
r6b95845 rc6b84df 29808 29808 29809 29809 // If the target is an svg element, use that element as the main wrapper. 29810 // This allows svg.js to work with svg documents as well.29810 // This allows svg.js to work with svg folders as well. 29811 29811 if (element.nodeName == 'svg') { 29812 29812 this.constructor.call(this, element); … … 32507 32507 if (options.transform && obj.css) { 32508 32508 result = typeof options.transform === 'function' 32509 ? options.transform(obj.css) 32509 ? options.transform(obj.css) 32510 32510 : options.transform.default(obj.css); 32511 32511 -
public/vendors/charts/apex/apexcharts.common.js
r6b95845 rc6b84df 23306 23306 // ensure the presence of a dom element 23307 23307 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. 23309 23309 23310 23310 if (element.nodeName == 'svg') { … … 26211 26211 return this.p.matrixTransform(this.m) 26212 26212 }; 26213 26213 26214 26214 // gets elements bounding box with special handling of groups, nested and use 26215 26215 DragHandler.prototype.getBBox = function(){ … … 26218 26218 26219 26219 if(this.el instanceof SVG.Nested) box = this.el.rbox(); 26220 26220 26221 26221 if (this.el instanceof SVG.G || this.el instanceof SVG.Use || this.el instanceof SVG.Nested) { 26222 26222 box.x = this.el.x(); … … 26236 26236 } 26237 26237 } 26238 26238 26239 26239 var _this = this; 26240 26240 … … 26251 26251 26252 26252 var box = this.getBBox(); 26253 26253 26254 26254 var anchorOffset; 26255 26255 26256 26256 // fix text-anchor in text-element (#37) 26257 26257 if(this.el instanceof SVG.Text){ 26258 26258 anchorOffset = this.el.node.getComputedTextLength(); 26259 26259 26260 26260 switch(this.el.attr('text-anchor')){ 26261 26261 case 'middle': … … 26267 26267 } 26268 26268 } 26269 26269 26270 26270 this.startPoints = { 26271 26271 // We take absolute coordinates since we are just using a delta here … … 26274 26274 transform: this.el.transform() 26275 26275 }; 26276 26276 26277 26277 // add drag and end events to window 26278 26278 SVG.on(window, 'mousemove.drag', function(e){ _this.drag(e); }); … … 26301 26301 , gx = p.x - this.startPoints.point.x 26302 26302 , gy = p.y - this.startPoints.point.y; 26303 26303 26304 26304 var event = new CustomEvent('dragmove', { 26305 26305 detail: { … … 26311 26311 , cancelable: true 26312 26312 }); 26313 26313 26314 26314 this.el.fire(event); 26315 26315 26316 26316 if(event.defaultPrevented) return p 26317 26317 … … 26353 26353 else if (c.maxY != null && y > c.maxY - box.height) 26354 26354 y = c.maxY - box.height; 26355 26355 26356 26356 if(this.el instanceof SVG.G) 26357 26357 this.el.matrix(this.startPoints.transform).transform({x:gx, y: gy}, true); … … 26359 26359 this.el.move(x, y); 26360 26360 } 26361 26361 26362 26362 // so we can use it in the end-method, too 26363 26363 return p -
public/vendors/charts/apex/apexcharts.esm.js
r6b95845 rc6b84df 23304 23304 // ensure the presence of a dom element 23305 23305 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. 23307 23307 23308 23308 if (element.nodeName == 'svg') { … … 26209 26209 return this.p.matrixTransform(this.m) 26210 26210 }; 26211 26211 26212 26212 // gets elements bounding box with special handling of groups, nested and use 26213 26213 DragHandler.prototype.getBBox = function(){ … … 26216 26216 26217 26217 if(this.el instanceof SVG.Nested) box = this.el.rbox(); 26218 26218 26219 26219 if (this.el instanceof SVG.G || this.el instanceof SVG.Use || this.el instanceof SVG.Nested) { 26220 26220 box.x = this.el.x(); … … 26234 26234 } 26235 26235 } 26236 26236 26237 26237 var _this = this; 26238 26238 … … 26249 26249 26250 26250 var box = this.getBBox(); 26251 26251 26252 26252 var anchorOffset; 26253 26253 26254 26254 // fix text-anchor in text-element (#37) 26255 26255 if(this.el instanceof SVG.Text){ 26256 26256 anchorOffset = this.el.node.getComputedTextLength(); 26257 26257 26258 26258 switch(this.el.attr('text-anchor')){ 26259 26259 case 'middle': … … 26265 26265 } 26266 26266 } 26267 26267 26268 26268 this.startPoints = { 26269 26269 // We take absolute coordinates since we are just using a delta here … … 26272 26272 transform: this.el.transform() 26273 26273 }; 26274 26274 26275 26275 // add drag and end events to window 26276 26276 SVG.on(window, 'mousemove.drag', function(e){ _this.drag(e); }); … … 26299 26299 , gx = p.x - this.startPoints.point.x 26300 26300 , gy = p.y - this.startPoints.point.y; 26301 26301 26302 26302 var event = new CustomEvent('dragmove', { 26303 26303 detail: { … … 26309 26309 , cancelable: true 26310 26310 }); 26311 26311 26312 26312 this.el.fire(event); 26313 26313 26314 26314 if(event.defaultPrevented) return p 26315 26315 … … 26351 26351 else if (c.maxY != null && y > c.maxY - box.height) 26352 26352 y = c.maxY - box.height; 26353 26353 26354 26354 if(this.el instanceof SVG.G) 26355 26355 this.el.matrix(this.startPoints.transform).transform({x:gx, y: gy}, true); … … 26357 26357 this.el.move(x, y); 26358 26358 } 26359 26359 26360 26360 // so we can use it in the end-method, too 26361 26361 return p -
public/vendors/charts/apex/apexcharts.js
r6b95845 rc6b84df 23310 23310 // ensure the presence of a dom element 23311 23311 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. 23313 23313 23314 23314 if (element.nodeName == 'svg') { … … 26215 26215 return this.p.matrixTransform(this.m) 26216 26216 }; 26217 26217 26218 26218 // gets elements bounding box with special handling of groups, nested and use 26219 26219 DragHandler.prototype.getBBox = function(){ … … 26222 26222 26223 26223 if(this.el instanceof SVG.Nested) box = this.el.rbox(); 26224 26224 26225 26225 if (this.el instanceof SVG.G || this.el instanceof SVG.Use || this.el instanceof SVG.Nested) { 26226 26226 box.x = this.el.x(); … … 26240 26240 } 26241 26241 } 26242 26242 26243 26243 var _this = this; 26244 26244 … … 26255 26255 26256 26256 var box = this.getBBox(); 26257 26257 26258 26258 var anchorOffset; 26259 26259 26260 26260 // fix text-anchor in text-element (#37) 26261 26261 if(this.el instanceof SVG.Text){ 26262 26262 anchorOffset = this.el.node.getComputedTextLength(); 26263 26263 26264 26264 switch(this.el.attr('text-anchor')){ 26265 26265 case 'middle': … … 26271 26271 } 26272 26272 } 26273 26273 26274 26274 this.startPoints = { 26275 26275 // We take absolute coordinates since we are just using a delta here … … 26278 26278 transform: this.el.transform() 26279 26279 }; 26280 26280 26281 26281 // add drag and end events to window 26282 26282 SVG.on(window, 'mousemove.drag', function(e){ _this.drag(e); }); … … 26305 26305 , gx = p.x - this.startPoints.point.x 26306 26306 , gy = p.y - this.startPoints.point.y; 26307 26307 26308 26308 var event = new CustomEvent('dragmove', { 26309 26309 detail: { … … 26315 26315 , cancelable: true 26316 26316 }); 26317 26317 26318 26318 this.el.fire(event); 26319 26319 26320 26320 if(event.defaultPrevented) return p 26321 26321 … … 26357 26357 else if (c.maxY != null && y > c.maxY - box.height) 26358 26358 y = c.maxY - box.height; 26359 26359 26360 26360 if(this.el instanceof SVG.G) 26361 26361 this.el.matrix(this.startPoints.transform).transform({x:gx, y: gy}, true); … … 26363 26363 this.el.move(x, y); 26364 26364 } 26365 26365 26366 26366 // so we can use it in the end-method, too 26367 26367 return p
Note:
See TracChangeset
for help on using the changeset viewer.