Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
c3-closed
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
charts
c3-closed
Commits
86c08445
Commit
86c08445
authored
Jul 27, 2016
by
Evgeny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix __filename in node
parent
c6169af2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
c3.js
c3.js
+4
-3
c3.min.js
c3.min.js
+0
-0
core.js
src/core.js
+3
-3
tail.js
src/tail.js
+1
-0
No files found.
c3.js
View file @
86c08445
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
/*global define, module, exports, require */
/*global define, module, exports, require */
var
__filename
;
// used in Node.js to get css file using path
var
__filename
__
;
// used in Node.js to get css file using path
var
c3_chart_fn
,
c3_chart_internal_fn
;
var
c3_chart_fn
,
c3_chart_internal_fn
;
var
c3
=
{
version
:
"0.4.9"
};
var
c3
=
{
version
:
"0.4.9"
};
var
c3init
=
function
(
module
){
var
c3init
=
function
(
module
){
__filename
=
module
.
uri
;
__filename
__
=
module
.
uri
;
return
c3
;
return
c3
;
}
}
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
var
css
,
rule
,
sheet
,
value
;
var
css
,
rule
,
sheet
,
value
;
if
(
isNode
()){
if
(
isNode
()){
if
(
!
nodeCss
){
if
(
!
nodeCss
){
var
style
=
require
(
'fs'
).
readFileSync
(
__filename
.
replace
(
'c3.js'
,
'c3.css'
),
'utf-8'
);
var
style
=
require
(
'fs'
).
readFileSync
(
__filename
__
.
replace
(
'c3.js'
,
'c3.css'
),
'utf-8'
);
nodeCss
=
[
require
(
'css'
).
parse
(
$$
.
ed3Config
.
style
),
require
(
'css'
).
parse
(
style
)];
nodeCss
=
[
require
(
'css'
).
parse
(
$$
.
ed3Config
.
style
),
require
(
'css'
).
parse
(
style
)];
}
}
...
@@ -8578,6 +8578,7 @@
...
@@ -8578,6 +8578,7 @@
if
(
typeof
define
===
'function'
&&
define
.
amd
)
{
if
(
typeof
define
===
'function'
&&
define
.
amd
)
{
define
(
"c3"
,
[
"module"
,
"d3"
,
"async-buffer"
],
c3init
);
define
(
"c3"
,
[
"module"
,
"d3"
,
"async-buffer"
],
c3init
);
}
else
if
(
'undefined'
!==
typeof
exports
&&
'undefined'
!==
typeof
module
)
{
}
else
if
(
'undefined'
!==
typeof
exports
&&
'undefined'
!==
typeof
module
)
{
__filename__
=
__filename
;
module
.
exports
=
c3
;
module
.
exports
=
c3
;
}
else
{
}
else
{
window
.
c3
=
c3
;
window
.
c3
=
c3
;
...
...
c3.min.js
View file @
86c08445
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/core.js
View file @
86c08445
var
__filename
;
// used in Node.js to get css file using path
var
__filename
__
;
// used in Node.js to get css file using path
var
c3_chart_fn
,
c3_chart_internal_fn
;
var
c3_chart_fn
,
c3_chart_internal_fn
;
var
c3
=
{
version
:
"0.4.9"
};
var
c3
=
{
version
:
"0.4.9"
};
var
c3init
=
function
(
module
){
var
c3init
=
function
(
module
){
__filename
=
module
.
uri
;
__filename
__
=
module
.
uri
;
return
c3
;
return
c3
;
}
}
...
@@ -99,7 +99,7 @@ function getStyleValue($$, selector, property) {
...
@@ -99,7 +99,7 @@ function getStyleValue($$, selector, property) {
var
css
,
rule
,
sheet
,
value
;
var
css
,
rule
,
sheet
,
value
;
if
(
isNode
()){
if
(
isNode
()){
if
(
!
nodeCss
){
if
(
!
nodeCss
){
var
style
=
require
(
'fs'
).
readFileSync
(
__filename
.
replace
(
'c3.js'
,
'c3.css'
),
'utf-8'
);
var
style
=
require
(
'fs'
).
readFileSync
(
__filename
__
.
replace
(
'c3.js'
,
'c3.css'
),
'utf-8'
);
nodeCss
=
[
require
(
'css'
).
parse
(
$$
.
ed3Config
.
style
),
require
(
'css'
).
parse
(
style
)];
nodeCss
=
[
require
(
'css'
).
parse
(
$$
.
ed3Config
.
style
),
require
(
'css'
).
parse
(
style
)];
}
}
...
...
src/tail.js
View file @
86c08445
if
(
typeof
define
===
'function'
&&
define
.
amd
)
{
if
(
typeof
define
===
'function'
&&
define
.
amd
)
{
define
(
"c3"
,
[
"module"
,
"d3"
,
"async-buffer"
],
c3init
);
define
(
"c3"
,
[
"module"
,
"d3"
,
"async-buffer"
],
c3init
);
}
else
if
(
'undefined'
!==
typeof
exports
&&
'undefined'
!==
typeof
module
)
{
}
else
if
(
'undefined'
!==
typeof
exports
&&
'undefined'
!==
typeof
module
)
{
__filename__
=
__filename
;
module
.
exports
=
c3
;
module
.
exports
=
c3
;
}
else
{
}
else
{
window
.
c3
=
c3
;
window
.
c3
=
c3
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment