project files added
@@ -0,0 +1,2 @@
|
||||
dist/*
|
||||
doc/out/*
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 10,
|
||||
"sourceType": "module",
|
||||
"ecmaFeatures": {
|
||||
"impliedStrict": true,
|
||||
"modules": true
|
||||
}
|
||||
},
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es6": true,
|
||||
"node": true,
|
||||
"jquery": true,
|
||||
"worker": true,
|
||||
"mocha": true,
|
||||
"serviceworker": true
|
||||
},
|
||||
"globals": {
|
||||
"PIXI": false,
|
||||
"TweenLite": false,
|
||||
"TweenMax": false,
|
||||
"TimelineLite": false,
|
||||
"TimelineMax": false,
|
||||
"SystemJS": false,
|
||||
"app": true
|
||||
},
|
||||
"plugins": [
|
||||
"prettier"
|
||||
],
|
||||
"extends": ["eslint:recommended", "plugin:prettier/recommended"]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"singleQuote": true,
|
||||
"jsxSingleQuote": true,
|
||||
"tabWidth": 4,
|
||||
"semi": false,
|
||||
"printWidth": 120
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
dist/*
|
||||
doc/*
|
||||
lib/*
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "stylelint-config-standard",
|
||||
"rules": {
|
||||
"indentation": 4,
|
||||
"selector-list-comma-newline-after": "never-multi-line",
|
||||
"no-eol-whitespace": [true, {
|
||||
"ignore": ["empty-lines"]
|
||||
}]
|
||||
},
|
||||
"ignoreFiles": []
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"name": "Launch Program",
|
||||
"program": "${workspaceFolder}\\index.js"
|
||||
},
|
||||
{
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"name": "testrunner",
|
||||
"program": "${workspaceFolder}\\bin\\testrunner.js"
|
||||
},
|
||||
{
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"name": "single",
|
||||
"program": "${workspaceFolder}\\bin\\singleshot.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,163 @@
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http s ://fsf.org/>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license
|
||||
document, but changing it is not allowed.
|
||||
|
||||
This version of the GNU Lesser General Public License incorporates the terms
|
||||
and conditions of version 3 of the GNU General Public License, supplemented
|
||||
by the additional permissions listed below.
|
||||
|
||||
0. Additional Definitions.
|
||||
|
||||
|
||||
|
||||
As used herein, "this License" refers to version 3 of the GNU Lesser General
|
||||
Public License, and the "GNU GPL" refers to version 3 of the GNU General Public
|
||||
License.
|
||||
|
||||
|
||||
|
||||
"The Library" refers to a covered work governed by this License, other than
|
||||
an Application or a Combined Work as defined below.
|
||||
|
||||
|
||||
|
||||
An "Application" is any work that makes use of an interface provided by the
|
||||
Library, but which is not otherwise based on the Library. Defining a subclass
|
||||
of a class defined by the Library is deemed a mode of using an interface provided
|
||||
by the Library.
|
||||
|
||||
|
||||
|
||||
A "Combined Work" is a work produced by combining or linking an Application
|
||||
with the Library. The particular version of the Library with which the Combined
|
||||
Work was made is also called the "Linked Version".
|
||||
|
||||
|
||||
|
||||
The "Minimal Corresponding Source" for a Combined Work means the Corresponding
|
||||
Source for the Combined Work, excluding any source code for portions of the
|
||||
Combined Work that, considered in isolation, are based on the Application,
|
||||
and not on the Linked Version.
|
||||
|
||||
|
||||
|
||||
The "Corresponding Application Code" for a Combined Work means the object
|
||||
code and/or source code for the Application, including any data and utility
|
||||
programs needed for reproducing the Combined Work from the Application, but
|
||||
excluding the System Libraries of the Combined Work.
|
||||
|
||||
1. Exception to Section 3 of the GNU GPL.
|
||||
|
||||
You may convey a covered work under sections 3 and 4 of this License without
|
||||
being bound by section 3 of the GNU GPL.
|
||||
|
||||
2. Conveying Modified Versions.
|
||||
|
||||
If you modify a copy of the Library, and, in your modifications, a facility
|
||||
refers to a function or data to be supplied by an Application that uses the
|
||||
facility (other than as an argument passed when the facility is invoked),
|
||||
then you may convey a copy of the modified version:
|
||||
|
||||
a) under this License, provided that you make a good faith effort to ensure
|
||||
that, in the event an Application does not supply the function or data, the
|
||||
facility still operates, and performs whatever part of its purpose remains
|
||||
meaningful, or
|
||||
|
||||
b) under the GNU GPL, with none of the additional permissions of this License
|
||||
applicable to that copy.
|
||||
|
||||
3. Object Code Incorporating Material from Library Header Files.
|
||||
|
||||
The object code form of an Application may incorporate material from a header
|
||||
file that is part of the Library. You may convey such object code under terms
|
||||
of your choice, provided that, if the incorporated material is not limited
|
||||
to numerical parameters, data structure layouts and accessors, or small macros,
|
||||
inline functions and templates (ten or fewer lines in length), you do both
|
||||
of the following:
|
||||
|
||||
a) Give prominent notice with each copy of the object code that the Library
|
||||
is used in it and that the Library and its use are covered by this License.
|
||||
|
||||
b) Accompany the object code with a copy of the GNU GPL and this license document.
|
||||
|
||||
4. Combined Works.
|
||||
|
||||
You may convey a Combined Work under terms of your choice that, taken together,
|
||||
effectively do not restrict modification of the portions of the Library contained
|
||||
in the Combined Work and reverse engineering for debugging such modifications,
|
||||
if you also do each of the following:
|
||||
|
||||
a) Give prominent notice with each copy of the Combined Work that the Library
|
||||
is used in it and that the Library and its use are covered by this License.
|
||||
|
||||
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
||||
document.
|
||||
|
||||
c) For a Combined Work that displays copyright notices during execution, include
|
||||
the copyright notice for the Library among these notices, as well as a reference
|
||||
directing the user to the copies of the GNU GPL and this license document.
|
||||
|
||||
d) Do one of the following:
|
||||
|
||||
0) Convey the Minimal Corresponding Source under the terms of this License,
|
||||
and the Corresponding Application Code in a form suitable for, and under terms
|
||||
that permit, the user to recombine or relink the Application with a modified
|
||||
version of the Linked Version to produce a modified Combined Work, in the
|
||||
manner specified by section 6 of the GNU GPL for conveying Corresponding Source.
|
||||
|
||||
1) Use a suitable shared library mechanism for linking with the Library. A
|
||||
suitable mechanism is one that (a) uses at run time a copy of the Library
|
||||
already present on the user's computer system, and (b) will operate properly
|
||||
with a modified version of the Library that is interface-compatible with the
|
||||
Linked Version.
|
||||
|
||||
e) Provide Installation Information, but only if you would otherwise be required
|
||||
to provide such information under section 6 of the GNU GPL, and only to the
|
||||
extent that such information is necessary to install and execute a modified
|
||||
version of the Combined Work produced by recombining or relinking the Application
|
||||
with a modified version of the Linked Version. (If you use option 4d0, the
|
||||
Installation Information must accompany the Minimal Corresponding Source and
|
||||
Corresponding Application Code. If you use option 4d1, you must provide the
|
||||
Installation Information in the manner specified by section 6 of the GNU GPL
|
||||
for conveying Corresponding Source.)
|
||||
|
||||
5. Combined Libraries.
|
||||
|
||||
You may place library facilities that are a work based on the Library side
|
||||
by side in a single library together with other library facilities that are
|
||||
not Applications and are not covered by this License, and convey such a combined
|
||||
library under terms of your choice, if you do both of the following:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work based on the
|
||||
Library, uncombined with any other library facilities, conveyed under the
|
||||
terms of this License.
|
||||
|
||||
b) Give prominent notice with the combined library that part of it is a work
|
||||
based on the Library, and explaining where to find the accompanying uncombined
|
||||
form of the same work.
|
||||
|
||||
6. Revised Versions of the GNU Lesser General Public License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of the
|
||||
GNU Lesser General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to address
|
||||
new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library as you
|
||||
received it specifies that a certain numbered version of the GNU Lesser General
|
||||
Public License "or any later version" applies to it, you have the option of
|
||||
following the terms and conditions either of that published version or of
|
||||
any later version published by the Free Software Foundation. If the Library
|
||||
as you received it does not specify a version number of the GNU Lesser General
|
||||
Public License, you may choose any version of the GNU Lesser General Public
|
||||
License ever published by the Free Software Foundation.
|
||||
|
||||
If the Library as you received it specifies that a proxy can decide whether
|
||||
future versions of the GNU Lesser General Public License shall apply, that
|
||||
proxy's public statement of acceptance of any version is permanent authorization
|
||||
for you to choose that version for the Library.
|
||||
@@ -0,0 +1,52 @@
|
||||
# iwmlib
|
||||
|
||||
## Install
|
||||
|
||||
Install the following dependencies globally
|
||||
|
||||
`npm i rollup gulp-cli -g`
|
||||
|
||||
and some dependencies locally
|
||||
|
||||
`npm i`
|
||||
|
||||
## Build
|
||||
|
||||
To build the iwmlib files type
|
||||
|
||||
`npm run build`
|
||||
|
||||
The files
|
||||
|
||||
- imwlib.js
|
||||
- iwmlib.pixi.js
|
||||
|
||||
will be generated in the dist folder. If you want to build the files continuously type
|
||||
|
||||
`npm run watch`
|
||||
|
||||
To build the 3rd party library type
|
||||
|
||||
`npm run 3rdparty`
|
||||
|
||||
## Docs
|
||||
|
||||
To create the documentation in the folder ./doc/out type `npm run jsdoc`
|
||||
|
||||
Afterwards you can view the documentation here:
|
||||
|
||||
- The iwmlib [DocTests](./lib/index.html)
|
||||
- The iwmlib [PixiJS DocTests](./lib/pixi/index.html)
|
||||
|
||||
## Useful PixiJS Resources
|
||||
|
||||
Currently using PixiJS version 5
|
||||
|
||||
- The PixiJS [JavaScript API Docs](http://pixijs.download/dev/docs/index.html)
|
||||
- The PixiJS [Examples](http://pixijs.github.io/examples/#/basics/basic.js)
|
||||
- The PixiJS [GitHub Repository](https://github.com/pixijs/pixi.js)
|
||||
|
||||
## List of 3<sup>rd</sup> party libraries included
|
||||
|
||||
- [PixiJS](http://www.pixijs.com)
|
||||
- [Greensock](https://greensock.com) with TweenMax and TimelineMax
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 515 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1007 B |
|
After Width: | Height: | Size: 228 B |
|
After Width: | Height: | Size: 674 B |
|
After Width: | Height: | Size: 289 B |
|
After Width: | Height: | Size: 364 B |
|
After Width: | Height: | Size: 482 B |
|
After Width: | Height: | Size: 909 B |
|
After Width: | Height: | Size: 627 B |
|
After Width: | Height: | Size: 97 B |
|
After Width: | Height: | Size: 633 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 470 B |
|
After Width: | Height: | Size: 234 B |
|
After Width: | Height: | Size: 613 B |
|
After Width: | Height: | Size: 947 B |
|
After Width: | Height: | Size: 564 B |
|
After Width: | Height: | Size: 708 B |
|
After Width: | Height: | Size: 263 B |
|
After Width: | Height: | Size: 270 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 356 B |
|
After Width: | Height: | Size: 803 B |
|
After Width: | Height: | Size: 336 B |
|
After Width: | Height: | Size: 552 B |
|
After Width: | Height: | Size: 368 B |
|
After Width: | Height: | Size: 460 B |
|
After Width: | Height: | Size: 849 B |
|
After Width: | Height: | Size: 616 B |
|
After Width: | Height: | Size: 478 B |
|
After Width: | Height: | Size: 624 B |
|
After Width: | Height: | Size: 306 B |
|
After Width: | Height: | Size: 469 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 817 B |
|
After Width: | Height: | Size: 917 B |
|
After Width: | Height: | Size: 857 B |
|
After Width: | Height: | Size: 536 B |
|
After Width: | Height: | Size: 263 B |
|
After Width: | Height: | Size: 98 B |
|
After Width: | Height: | Size: 390 B |
|
After Width: | Height: | Size: 188 B |
|
After Width: | Height: | Size: 275 B |
|
After Width: | Height: | Size: 152 B |
|
After Width: | Height: | Size: 624 B |
|
After Width: | Height: | Size: 159 B |
|
After Width: | Height: | Size: 195 B |
|
After Width: | Height: | Size: 319 B |
|
After Width: | Height: | Size: 328 B |
|
After Width: | Height: | Size: 248 B |
|
After Width: | Height: | Size: 232 B |
|
After Width: | Height: | Size: 340 B |
|
After Width: | Height: | Size: 578 B |
|
After Width: | Height: | Size: 336 B |
|
After Width: | Height: | Size: 399 B |
|
After Width: | Height: | Size: 402 B |
|
After Width: | Height: | Size: 485 B |
|
After Width: | Height: | Size: 569 B |
|
After Width: | Height: | Size: 168 B |
|
After Width: | Height: | Size: 648 B |
|
After Width: | Height: | Size: 640 B |
|
After Width: | Height: | Size: 560 B |
|
After Width: | Height: | Size: 323 B |
|
After Width: | Height: | Size: 727 B |
|
After Width: | Height: | Size: 955 B |
|
After Width: | Height: | Size: 543 B |
|
After Width: | Height: | Size: 589 B |
|
After Width: | Height: | Size: 206 B |
|
After Width: | Height: | Size: 208 B |
|
After Width: | Height: | Size: 207 B |
|
After Width: | Height: | Size: 208 B |
|
After Width: | Height: | Size: 206 B |
|
After Width: | Height: | Size: 207 B |
|
After Width: | Height: | Size: 198 B |
|
After Width: | Height: | Size: 387 B |
|
After Width: | Height: | Size: 401 B |
|
After Width: | Height: | Size: 405 B |
|
After Width: | Height: | Size: 397 B |
|
After Width: | Height: | Size: 403 B |
|
After Width: | Height: | Size: 394 B |
|
After Width: | Height: | Size: 385 B |
|
After Width: | Height: | Size: 192 B |
|
After Width: | Height: | Size: 192 B |
|
After Width: | Height: | Size: 428 B |
|
After Width: | Height: | Size: 805 B |
|
After Width: | Height: | Size: 552 B |
|
After Width: | Height: | Size: 973 B |
|
After Width: | Height: | Size: 502 B |
|
After Width: | Height: | Size: 778 B |
|
After Width: | Height: | Size: 549 B |
|
After Width: | Height: | Size: 512 B |
|
After Width: | Height: | Size: 778 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 289 B |
|
After Width: | Height: | Size: 591 B |
|
After Width: | Height: | Size: 365 B |
|
After Width: | Height: | Size: 283 B |
|
After Width: | Height: | Size: 273 B |
|
After Width: | Height: | Size: 370 B |
|
After Width: | Height: | Size: 100 B |
|
After Width: | Height: | Size: 108 B |
|
After Width: | Height: | Size: 102 B |
|
After Width: | Height: | Size: 292 B |
|
After Width: | Height: | Size: 111 B |
|
After Width: | Height: | Size: 114 B |
|
After Width: | Height: | Size: 105 B |
|
After Width: | Height: | Size: 114 B |
|
After Width: | Height: | Size: 106 B |
|
After Width: | Height: | Size: 109 B |
|
After Width: | Height: | Size: 108 B |
|
After Width: | Height: | Size: 107 B |
|
After Width: | Height: | Size: 193 B |
|
After Width: | Height: | Size: 570 B |
|
After Width: | Height: | Size: 562 B |
|
After Width: | Height: | Size: 550 B |
|
After Width: | Height: | Size: 574 B |
|
After Width: | Height: | Size: 575 B |
|
After Width: | Height: | Size: 467 B |
|
After Width: | Height: | Size: 749 B |
|
After Width: | Height: | Size: 600 B |
|
After Width: | Height: | Size: 749 B |
|
After Width: | Height: | Size: 575 B |
|
After Width: | Height: | Size: 467 B |
|
After Width: | Height: | Size: 484 B |
|
After Width: | Height: | Size: 429 B |
|
After Width: | Height: | Size: 561 B |
|
After Width: | Height: | Size: 445 B |
|
After Width: | Height: | Size: 547 B |
|
After Width: | Height: | Size: 325 B |
|
After Width: | Height: | Size: 119 B |
|
After Width: | Height: | Size: 302 B |
|
After Width: | Height: | Size: 663 B |
|
After Width: | Height: | Size: 684 B |
|
After Width: | Height: | Size: 597 B |
|
After Width: | Height: | Size: 553 B |
|
After Width: | Height: | Size: 247 B |
|
After Width: | Height: | Size: 287 B |
|
After Width: | Height: | Size: 291 B |
|
After Width: | Height: | Size: 248 B |
|
After Width: | Height: | Size: 257 B |
|
After Width: | Height: | Size: 335 B |
|
After Width: | Height: | Size: 191 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 666 B |
|
After Width: | Height: | Size: 650 B |
|
After Width: | Height: | Size: 444 B |
|
After Width: | Height: | Size: 377 B |
|
After Width: | Height: | Size: 258 B |
|
After Width: | Height: | Size: 577 B |
|
After Width: | Height: | Size: 647 B |
|
After Width: | Height: | Size: 278 B |
|
After Width: | Height: | Size: 273 B |
|
After Width: | Height: | Size: 387 B |
|
After Width: | Height: | Size: 666 B |
|
After Width: | Height: | Size: 764 B |
|
After Width: | Height: | Size: 428 B |
|
After Width: | Height: | Size: 520 B |
|
After Width: | Height: | Size: 547 B |
|
After Width: | Height: | Size: 270 B |
|
After Width: | Height: | Size: 246 B |
|
After Width: | Height: | Size: 261 B |
|
After Width: | Height: | Size: 276 B |
|
After Width: | Height: | Size: 275 B |
|
After Width: | Height: | Size: 162 B |
|
After Width: | Height: | Size: 738 B |
|
After Width: | Height: | Size: 169 B |
|
After Width: | Height: | Size: 175 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 638 B |
|
After Width: | Height: | Size: 246 B |
|
After Width: | Height: | Size: 283 B |
|
After Width: | Height: | Size: 347 B |
|
After Width: | Height: | Size: 108 B |
|
After Width: | Height: | Size: 347 B |
|
After Width: | Height: | Size: 322 B |
|
After Width: | Height: | Size: 517 B |
|
After Width: | Height: | Size: 793 B |
|
After Width: | Height: | Size: 672 B |
|
After Width: | Height: | Size: 610 B |
|
After Width: | Height: | Size: 859 B |
|
After Width: | Height: | Size: 785 B |
|
After Width: | Height: | Size: 589 B |
|
After Width: | Height: | Size: 304 B |
|
After Width: | Height: | Size: 431 B |
|
After Width: | Height: | Size: 305 B |