PHP Classes

File: vendors/gentelella/vendors/echarts/src/model/mixin/lineStyle.js

Recommend this page to a friend!
  Classes of Jorge Castro   Gentelella BladeOne   vendors/gentelella/vendors/echarts/src/model/mixin/lineStyle.js   Download  
File: vendors/gentelella/vendors/echarts/src/model/mixin/lineStyle.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Gentelella BladeOne
Render templates using Bootstrap for presentation
Author: By
Last change:
Date: 3 years ago
Size: 804 bytes
 

Contents

Class file image Download
define(function (require) { var getLineStyle = require('./makeStyleMapper')( [ ['lineWidth', 'width'], ['stroke', 'color'], ['opacity'], ['shadowBlur'], ['shadowOffsetX'], ['shadowOffsetY'], ['shadowColor'] ] ); return { getLineStyle: function (excludes) { var style = getLineStyle.call(this, excludes); var lineDash = this.getLineDash(); lineDash && (style.lineDash = lineDash); return style; }, getLineDash: function () { var lineType = this.get('type'); return (lineType === 'solid' || lineType == null) ? null : (lineType === 'dashed' ? [5, 5] : [1, 1]); } }; });