juijs-graph
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "juijs-graph", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "description": "SVG-based JUI chart that can be used in the browser and Node.js. Support many types of charts. (Dashboard, Map, Topology, Full 3D)", |
@@ -178,3 +178,3 @@ import jui from "./base.js" | ||
// _clipId = _.createId("clip-id-"); | ||
_clipId = "axis-clip-id-" + jui.size(); | ||
_clipId = "axis-clip-id-" + chart.index; | ||
@@ -200,3 +200,3 @@ _clipPath = chart.svg.clipPath({ | ||
// _clipRectId = _.createId("clip-rect-id-"); | ||
_clipRectId = "axis-clip-rect-id-" + jui.size(); | ||
_clipRectId = "axis-clip-rect-id-" + chart.index; | ||
@@ -203,0 +203,0 @@ _clipRect = chart.svg.clipPath({ |
@@ -38,3 +38,3 @@ import JUI from "./base.js" | ||
var _canvas = { main: null, buffer: null, sub: null }; // 캔버스 모드 전용 | ||
var _cache = {}; | ||
var _cache = {}, _index = 0; // index는 차트의 생성 순서 | ||
@@ -292,3 +292,3 @@ function calculate(self) { | ||
// var id = _.createId("gradient"); | ||
var id = "gradient-" + JUI.size(); | ||
var id = "gradient-" + _index; | ||
obj.attr.id = id; | ||
@@ -349,3 +349,3 @@ | ||
// obj.attr.id = obj.attr.id || _.createId('pattern-'); | ||
obj.attr.id = obj.attr.id || "pattern-" + JUI.size(); | ||
obj.attr.id = obj.attr.id || "pattern-" + _index; | ||
@@ -572,2 +572,5 @@ if (_hash[obj.attr.id]) { | ||
this.init = function() { | ||
// TODO: 차트 인덱스 설정 | ||
_index = this.index = JUI.size(); | ||
// 기본 옵션 설정 | ||
@@ -574,0 +577,0 @@ setDefaultOptions(this); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2118739
42891