juijs-chart
Advanced tools
Comparing version 2.1.4-es6 to 2.1.5-es6
{ | ||
"name": "juijs-chart", | ||
"version": "2.1.4-es6", | ||
"version": "2.1.5-es6", | ||
"sideEffects": false, | ||
@@ -67,3 +67,3 @@ "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)", | ||
"dependencies": { | ||
"juijs-graph": "0.0.4" | ||
"juijs-graph": "0.0.6-es6" | ||
}, | ||
@@ -70,0 +70,0 @@ "devDependencies": { |
import jui from 'juijs-graph' | ||
jui.use = function() { | ||
let modules = []; | ||
if(arguments.length == 1 && typeof(arguments[0]) == "object") { | ||
modules = [ arguments[0] ]; | ||
} else { | ||
modules = arguments; | ||
} | ||
for(let i = 0; i < modules.length; i++) { | ||
let module = modules[i]; | ||
if(typeof(module) == "object") { | ||
if(typeof(module.name) != "string") return; | ||
if(typeof(module.component) != "function") return; | ||
// 상속 대상 부모 클래스가 존재할 경우 | ||
if(module.extend != null) { | ||
if(jui.include(module.extend) == null) { | ||
console.warn("JUI_WARNING_MSG: '" + module.extend + "' module should be imported in first"); | ||
} | ||
} | ||
jui.redefine(module.name, [], module.component, module.extend); | ||
} | ||
} | ||
} | ||
export default jui; |
@@ -56,2 +56,4 @@ import jui from './index.js' | ||
Rotate3dWidget | ||
]); | ||
]); | ||
window.jui = window.JUI = jui; |
@@ -9,3 +9,3 @@ const path = require('path') | ||
entry: { | ||
chart: path.resolve(__dirname, 'examples', 'index'), | ||
chart: path.resolve(__dirname, 'examples', 'index.js'), | ||
vendors: [ 'juijs', 'juijs-graph' ] | ||
@@ -12,0 +12,0 @@ }, |
const path = require('path'); | ||
const webpack = require('webpack'); | ||
const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); | ||
@@ -28,17 +27,5 @@ | ||
minimizer: [ | ||
new webpack.DefinePlugin({ | ||
'process.env.NODE_ENV': JSON.stringify('production') | ||
}), | ||
new UglifyJsPlugin({ | ||
cache: true, | ||
parallel: true, | ||
uglifyOptions: { | ||
compress: false, | ||
ecma: 6, | ||
mangle: true | ||
}, | ||
sourceMap: true | ||
}) | ||
new UglifyJsPlugin() | ||
] | ||
} | ||
} |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
71
1877648
6584
7
+ Addedjquery@3.7.1(transitive)
+ Addedjuijs@2.3.0(transitive)
+ Addedjuijs-graph@0.0.6-es6(transitive)
- Removedjuijs@2.1.0(transitive)
- Removedjuijs-graph@0.0.4(transitive)
Updatedjuijs-graph@0.0.6-es6