Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
raphael
Project
Project
Details
Activity
Releases
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nhn
raphael
Commits
5bfc8a31
Commit
5bfc8a31
authored
Apr 06, 2016
by
Tomas Alabes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webpack umd
parent
cca8f941
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8371 additions
and
58 deletions
+8371
-58
raphael.amd.js
dev/raphael.amd.js
+3
-16
raphael.core.js
dev/raphael.core.js
+3
-12
raphael.svg.js
dev/raphael.svg.js
+2
-12
raphael.vml.js
dev/raphael.vml.js
+2
-12
raphaelTest.html
dev/raphaelTest.html
+9
-6
raphael-wp.js
raphael-wp.js
+8321
-0
webpack.config.js
webpack.config.js
+31
-0
No files found.
dev/raphael.amd.js
View file @
5bfc8a31
...
...
@@ -7,21 +7,8 @@
// │ Licensed under the MIT (http://raphaeljs.com/license.html) license.│ \\
// └────────────────────────────────────────────────────────────────────┘ \\
(
function
(
glob
,
factory
)
{
if
(
typeof
define
===
"function"
&&
define
.
amd
)
{
define
(
"raphael"
,
[
"raphael.core"
,
"raphael.svg"
,
"raphael.vml"
],
function
(
Raphael
)
{
return
(
glob
.
Raphael
=
factory
(
Raphael
));
});
}
else
if
(
typeof
exports
===
"object"
)
{
var
raphael
=
require
(
"raphael.core"
);
define
([
"./raphael.core"
,
"./raphael.svg"
,
"./raphael.vml"
],
function
(
R
)
{
require
(
"raphael.svg"
);
require
(
"raphael.vml"
);
return
R
;
module
.
exports
=
factory
(
raphael
);
}
else
{
glob
.
Raphael
=
factory
(
glob
.
Raphael
);
}
}(
this
,
function
(
Raphael
)
{
return
Raphael
.
ninja
();
}));
\ No newline at end of file
});
\ No newline at end of file
dev/raphael.core.js
View file @
5bfc8a31
...
...
@@ -6,17 +6,8 @@
// │ Licensed under the MIT (http://raphaeljs.com/license.html) license.│ \\
// └────────────────────────────────────────────────────────────────────┘ \\
(
function
(
glob
,
factory
)
{
if
(
typeof
define
===
"function"
&&
define
.
amd
)
{
define
(
"raphael.core"
,
[
"eve"
],
function
(
eve
)
{
return
factory
(
eve
);
});
}
else
if
(
typeof
exports
===
"object"
)
{
module
.
exports
=
factory
(
require
(
"eve"
));
}
else
{
glob
.
Raphael
=
factory
(
glob
.
eve
);
}
}(
this
,
function
(
eve
)
{
define
([
"eve"
],
function
(
eve
)
{
/*\
* Raphael
[ method ]
...
...
@@ -5419,4 +5410,4 @@
})(
document
,
"DOMContentLoaded"
);
return
R
;
})
)
;
});
dev/raphael.svg.js
View file @
5bfc8a31
...
...
@@ -8,17 +8,7 @@
// │ Licensed under the MIT (http://raphaeljs.com/license.html) license. │ \\
// └─────────────────────────────────────────────────────────────────────┘ \\
(
function
(
glob
,
factory
)
{
if
(
typeof
define
===
"function"
&&
define
.
amd
)
{
define
(
"raphael.svg"
,
[
"raphael.core"
],
function
(
raphael
)
{
return
factory
(
raphael
);
});
}
else
if
(
typeof
exports
===
"object"
)
{
factory
(
require
(
"./raphael.core"
));
}
else
{
factory
(
glob
.
Raphael
);
}
}(
this
,
function
(
R
)
{
define
([
"./raphael.core"
],
function
(
R
)
{
if
(
R
&&
!
R
.
svg
)
{
return
;
}
...
...
@@ -1435,4 +1425,4 @@
};
})(
method
);
}
})
)
;
});
dev/raphael.vml.js
View file @
5bfc8a31
...
...
@@ -8,17 +8,7 @@
// │ Licensed under the MIT (http://raphaeljs.com/license.html) license. │ \\
// └─────────────────────────────────────────────────────────────────────┘ \\
(
function
(
glob
,
factory
)
{
if
(
typeof
define
===
"function"
&&
define
.
amd
)
{
define
(
"raphael.vml"
,
[
"raphael.core"
],
function
(
raphael
)
{
return
factory
(
raphael
);
});
}
else
if
(
typeof
exports
===
"object"
)
{
factory
(
require
(
"./raphael.core"
));
}
else
{
factory
(
glob
.
Raphael
);
}
}(
this
,
function
(
R
)
{
define
([
"./raphael.core"
],
function
(
R
)
{
if
(
R
&&
!
R
.
vml
)
{
return
;
}
...
...
@@ -1017,4 +1007,4 @@
};
})(
method
);
}
})
)
;
});
dev/raphaelTest.html
View file @
5bfc8a31
...
...
@@ -9,24 +9,27 @@
<!-- Global use -->
<!-- To work with full version -->
<!--<script type="text/javascript" src="../raphael.js"></script>-->
<script
type=
"text/javascript"
src=
"../bower_components/requirejs/require.js"
></script>
<script
type=
"text/javascript"
src=
"../raphael-wp.js"
></script>
<!-- To work with minified version -->
<!--<script type="text/javascript" src="../raphael-min.js"></script>-->
<!-- Comment this script tag if you are testing with AMD -->
<
!--<
script type="text/javascript">
<script
type=
"text/javascript"
>
// Initialize container when document is loaded
window
.
onload
=
function
()
{
var paper = Raphael(0, 0, 640, 720, "container");
paper.circle(100, 100, 100).attr({'fill':'270-#FAE56B:0-#E56B6B:100'}); //example
require
([
'Raphael'
],
function
(
Raphael
)
{
var
paper
=
Raphael
(
0
,
0
,
640
,
720
,
"container"
);
paper
.
circle
(
100
,
100
,
100
).
attr
({
'fill'
:
'270-#FAE56B:0-#E56B6B:100'
});
//example
});
};
//Work here, in a separate script file or via command line
</script>
-->
</script>
<!-- Use amdDev.js to work with AMD and Raphael -->
<!-- You need to do a 'bower install -D' first to get requirejs -->
<script
data-main=
"amdDev"
src=
"../bower_components/requirejs/require.js"
></script>
</head>
<body>
...
...
raphael-wp.js
0 → 100644
View file @
5bfc8a31
This source diff could not be displayed because it is too large. You can
view the blob
instead.
webpack.config.js
0 → 100644
View file @
5bfc8a31
var
webpack
=
require
(
"webpack"
);
module
.
exports
=
{
entry
:
'./dev/raphael.amd.js'
,
output
:
{
filename
:
"raphael-wp.js"
,
libraryTarget
:
"umd"
,
library
:
"Raphael"
,
umdNamedDefine
:
true
},
target
:
"web"
,
externals
:
[
],
loaders
:
[
],
plugins
:
[
],
resolveLoader
:
{
},
resolve
:
{
modulesDirectories
:
[
"bower_components"
]
}
};
\ No newline at end of file
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