node-poweredup 6.10.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.drone.yml +1 -0
- package/.gitmodules +3 -0
- package/{jsdoc.conf.json → .jsdoc.json} +14 -1
- package/README.md +47 -42
- package/dist/browser/poweredup.js +1 -1
- package/dist/browser/poweredup.js.map +1 -1
- package/dist/node/color.d.ts +6 -0
- package/dist/node/color.js +38 -0
- package/dist/node/color.js.map +1 -0
- package/dist/node/consts.d.ts +48 -27
- package/dist/node/consts.js +53 -31
- package/dist/node/consts.js.map +1 -1
- package/dist/node/devices/absolutemotor.js +8 -9
- package/dist/node/devices/absolutemotor.js.map +1 -1
- package/dist/node/devices/basicmotor.js +2 -2
- package/dist/node/devices/basicmotor.js.map +1 -1
- package/dist/node/devices/colordistancesensor.d.ts +11 -0
- package/dist/node/devices/colordistancesensor.js +95 -2
- package/dist/node/devices/colordistancesensor.js.map +1 -1
- package/dist/node/devices/device.d.ts +2 -2
- package/dist/node/devices/device.js +10 -5
- package/dist/node/devices/device.js.map +1 -1
- package/dist/node/devices/duplotrainbasecolorsensor.d.ts +2 -1
- package/dist/node/devices/duplotrainbasecolorsensor.js +15 -2
- package/dist/node/devices/duplotrainbasecolorsensor.js.map +1 -1
- package/dist/node/devices/light.js +1 -1
- package/dist/node/devices/light.js.map +1 -1
- package/dist/node/devices/tachomotor.js +10 -12
- package/dist/node/devices/tachomotor.js.map +1 -1
- package/dist/node/devices/technic3x3colorlightmatrix.d.ts +22 -0
- package/dist/node/devices/technic3x3colorlightmatrix.js +77 -0
- package/dist/node/devices/technic3x3colorlightmatrix.js.map +1 -0
- package/dist/node/devices/techniccolorsensor.js +2 -1
- package/dist/node/devices/techniccolorsensor.js.map +1 -1
- package/dist/node/devices/technicmediumhubtiltsensor.d.ts +25 -1
- package/dist/node/devices/technicmediumhubtiltsensor.js +70 -2
- package/dist/node/devices/technicmediumhubtiltsensor.js.map +1 -1
- package/dist/node/devices/technicsmallangularmotor.d.ts +12 -0
- package/dist/node/devices/technicsmallangularmotor.js +35 -0
- package/dist/node/devices/technicsmallangularmotor.js.map +1 -0
- package/dist/node/hubs/basehub.js +4 -0
- package/dist/node/hubs/basehub.js.map +1 -1
- package/dist/node/hubs/hub.js +1 -1
- package/dist/node/hubs/hub.js.map +1 -1
- package/dist/node/hubs/lpf2hub.js +19 -21
- package/dist/node/hubs/lpf2hub.js.map +1 -1
- package/dist/node/hubs/movehub.js +1 -1
- package/dist/node/hubs/movehub.js.map +1 -1
- package/dist/node/hubs/technicmediumhub.js +1 -1
- package/dist/node/hubs/technicmediumhub.js.map +1 -1
- package/dist/node/hubs/technicsmallhub.d.ts +18 -0
- package/dist/node/hubs/technicsmallhub.js +64 -0
- package/dist/node/hubs/technicsmallhub.js.map +1 -0
- package/dist/node/index-browser.js +6 -0
- package/dist/node/index-browser.js.map +1 -1
- package/dist/node/index-node.d.ts +4 -1
- package/dist/node/index-node.js +7 -1
- package/dist/node/index-node.js.map +1 -1
- package/dist/node/poweredup-browser.js +8 -1
- package/dist/node/poweredup-browser.js.map +1 -1
- package/dist/node/poweredup-node.js +28 -1
- package/dist/node/poweredup-node.js.map +1 -1
- package/dist/node/utils.d.ts +1 -1
- package/dist/node/utils.js +10 -3
- package/dist/node/utils.js.map +1 -1
- package/docs/AbsoluteMotor.html +1220 -1405
- package/docs/BaseHub.html +787 -872
- package/docs/BasicMotor.html +923 -1078
- package/docs/ColorDistanceSensor.html +2188 -1540
- package/docs/CurrentSensor.html +711 -800
- package/docs/Device.html +574 -665
- package/docs/DuploTrainBase.html +1255 -1375
- package/docs/DuploTrainBaseColorSensor.html +1049 -978
- package/docs/DuploTrainBaseMotor.html +958 -1113
- package/docs/DuploTrainBaseSpeaker.html +793 -916
- package/docs/DuploTraniBaseSpeedometer.html +628 -719
- package/docs/Hub.html +5621 -2397
- package/docs/HubLED.html +831 -944
- package/docs/LPF2Hub.html +1215 -1335
- package/docs/Light.html +831 -944
- package/docs/Mario.html +1255 -1420
- package/docs/MarioAccelerometer.html +834 -911
- package/docs/MarioBarcodeSensor.html +834 -911
- package/docs/MarioPantsSensor.html +711 -800
- package/docs/MediumLinearMotor.html +861 -1000
- package/docs/MotionSensor.html +711 -800
- package/docs/MoveHub.html +1255 -1420
- package/docs/MoveHubMediumLinearMotor.html +861 -1000
- package/docs/MoveHubTiltSensor.html +730 -814
- package/docs/PiezoBuzzer.html +732 -834
- package/docs/PoweredUP.html +4322 -0
- package/docs/RemoteControl.html +1255 -1420
- package/docs/RemoteControlButton.html +711 -800
- package/docs/SimpleMediumLinearMotor.html +628 -719
- package/docs/TachoMotor.html +1644 -1835
- package/docs/Technic3x3ColorLightMatrix.html +1181 -0
- package/docs/TechnicColorSensor.html +1008 -1099
- package/docs/TechnicDistanceSensor.html +939 -1027
- package/docs/TechnicForceSensor.html +883 -968
- package/docs/TechnicLargeAngularMotor.html +1254 -1439
- package/docs/TechnicLargeLinearMotor.html +1254 -1439
- package/docs/TechnicMediumAngularMotor.html +1254 -1439
- package/docs/TechnicMediumHub.html +1255 -1420
- package/docs/TechnicMediumHubAccelerometerSensor.html +749 -828
- package/docs/TechnicMediumHubGyroSensor.html +749 -828
- package/docs/TechnicMediumHubTiltSensor.html +1340 -831
- package/docs/TechnicSmallAngularMotor.html +2073 -0
- package/docs/TechnicXLargeLinearMotor.html +1254 -1439
- package/docs/TiltSensor.html +730 -814
- package/docs/TrainMotor.html +958 -1113
- package/docs/VoltageSensor.html +711 -800
- package/docs/WeDo2SmartHub.html +1112 -1221
- package/docs/consts.js.html +791 -0
- package/docs/devices_absolutemotor.js.html +97 -200
- package/docs/devices_basicmotor.js.html +91 -193
- package/docs/devices_colordistancesensor.js.html +184 -193
- package/docs/devices_currentsensor.js.html +89 -191
- package/docs/devices_device.js.html +99 -196
- package/docs/devices_duplotrainbasecolorsensor.js.html +104 -193
- package/docs/devices_duplotrainbasemotor.js.html +92 -194
- package/docs/devices_duplotrainbasespeaker.js.html +89 -191
- package/docs/devices_duplotrainbasespeedometer.js.html +89 -191
- package/docs/devices_hubled.js.html +89 -191
- package/docs/devices_light.js.html +90 -192
- package/docs/devices_marioaccelerometer.js.html +89 -191
- package/docs/devices_mariobarcodesensor.js.html +89 -191
- package/docs/devices_mariopantssensor.js.html +89 -191
- package/docs/devices_mediumlinearmotor.js.html +92 -194
- package/docs/devices_motionsensor.js.html +89 -191
- package/docs/devices_movehubmediumlinearmotor.js.html +92 -194
- package/docs/devices_movehubtiltsensor.js.html +89 -191
- package/docs/devices_piezobuzzer.js.html +89 -191
- package/docs/devices_remotecontrolbutton.js.html +89 -191
- package/docs/devices_simplemediumlinearmotor.js.html +92 -194
- package/docs/devices_tachomotor.js.html +99 -203
- package/docs/devices_technic3x3colorlightmatrix.js.html +190 -0
- package/docs/devices_techniccolorsensor.js.html +91 -192
- package/docs/devices_technicdistancesensor.js.html +89 -191
- package/docs/devices_technicforcesensor.js.html +89 -191
- package/docs/devices_techniclargeangularmotor.js.html +92 -194
- package/docs/devices_techniclargelinearmotor.js.html +92 -194
- package/docs/devices_technicmediumangularmotor.js.html +92 -194
- package/docs/devices_technicmediumhubaccelerometersensor.js.html +89 -191
- package/docs/devices_technicmediumhubgyrosensor.js.html +89 -191
- package/docs/devices_technicmediumhubtiltsensor.js.html +159 -193
- package/docs/devices_technicsmallangularmotor.js.html +148 -0
- package/docs/devices_technicxlargelinearmotor.js.html +92 -194
- package/docs/devices_tiltsensor.js.html +89 -191
- package/docs/devices_trainmotor.js.html +92 -194
- package/docs/devices_voltagesensor.js.html +89 -191
- package/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
- package/docs/fonts/OpenSans-Bold-webfont.svg +1830 -0
- package/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
- package/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
- package/docs/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
- package/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
- package/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
- package/docs/fonts/OpenSans-Italic-webfont.svg +1830 -0
- package/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
- package/docs/fonts/OpenSans-Light-webfont.eot +0 -0
- package/docs/fonts/OpenSans-Light-webfont.svg +1831 -0
- package/docs/fonts/OpenSans-Light-webfont.woff +0 -0
- package/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
- package/docs/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
- package/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
- package/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
- package/docs/fonts/OpenSans-Regular-webfont.svg +1831 -0
- package/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
- package/docs/fonts/OpenSans-Semibold-webfont.eot +0 -0
- package/docs/fonts/OpenSans-Semibold-webfont.svg +1830 -0
- package/docs/fonts/OpenSans-Semibold-webfont.ttf +0 -0
- package/docs/fonts/OpenSans-Semibold-webfont.woff +0 -0
- package/docs/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
- package/docs/fonts/OpenSans-SemiboldItalic-webfont.svg +1830 -0
- package/docs/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
- package/docs/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
- package/docs/global.html +9829 -0
- package/docs/hubs_basehub.js.html +93 -191
- package/docs/hubs_duplotrainbase.js.html +89 -191
- package/docs/hubs_hub.js.html +90 -192
- package/docs/hubs_lpf2hub.js.html +108 -212
- package/docs/hubs_mario.js.html +89 -191
- package/docs/hubs_movehub.js.html +90 -192
- package/docs/hubs_remotecontrol.js.html +89 -191
- package/docs/hubs_technicmediumhub.js.html +90 -192
- package/docs/hubs_technicsmallhub.js.html +177 -0
- package/docs/hubs_wedo2smarthub.js.html +89 -191
- package/docs/icons/home.svg +4 -0
- package/docs/icons/search.svg +4 -0
- package/docs/index.html +143 -236
- package/docs/poweredup-browser.js.html +348 -0
- package/docs/poweredup-node.js.html +312 -0
- package/docs/scripts/linenumber.js +23 -0
- package/docs/scripts/pagelocation.js +89 -0
- package/docs/styles/collapse.css +27 -0
- package/docs/styles/jsdoc-default.css +953 -0
- package/docs/styles/prettify-jsdoc.css +111 -0
- package/docs/styles/prettify-tomorrow.css +15 -9
- package/jsdoc-template/braintree/CHANGELOG.md +31 -0
- package/jsdoc-template/braintree/LICENSE +27 -0
- package/jsdoc-template/braintree/README.md +90 -0
- package/jsdoc-template/braintree/package.json +39 -0
- package/jsdoc-template/braintree/publish.js +675 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Bold-webfont.eot +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Bold-webfont.svg +1830 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Bold-webfont.woff +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Italic-webfont.eot +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Italic-webfont.svg +1830 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Italic-webfont.woff +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Light-webfont.eot +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Light-webfont.svg +1831 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Light-webfont.woff +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-LightItalic-webfont.eot +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-LightItalic-webfont.woff +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Regular-webfont.eot +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Regular-webfont.svg +1831 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Regular-webfont.woff +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Semibold-webfont.eot +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Semibold-webfont.svg +1830 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Semibold-webfont.ttf +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-Semibold-webfont.woff +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-SemiboldItalic-webfont.svg +1830 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
- package/jsdoc-template/braintree/static/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
- package/jsdoc-template/braintree/static/icons/home.svg +4 -0
- package/jsdoc-template/braintree/static/icons/search.svg +4 -0
- package/jsdoc-template/braintree/static/scripts/linenumber.js +23 -0
- package/jsdoc-template/braintree/static/scripts/pagelocation.js +89 -0
- package/jsdoc-template/braintree/static/styles/collapse.css +27 -0
- package/jsdoc-template/braintree/static/styles/jsdoc-default.css +953 -0
- package/jsdoc-template/braintree/static/styles/prettify-jsdoc.css +111 -0
- package/jsdoc-template/braintree/static/styles/prettify-tomorrow.css +138 -0
- package/jsdoc-template/braintree/tmpl/augments.tmpl +10 -0
- package/jsdoc-template/braintree/tmpl/container.tmpl +213 -0
- package/jsdoc-template/braintree/tmpl/details.tmpl +223 -0
- package/jsdoc-template/braintree/tmpl/example.tmpl +2 -0
- package/jsdoc-template/braintree/tmpl/examples.tmpl +14 -0
- package/jsdoc-template/braintree/tmpl/exceptions.tmpl +28 -0
- package/jsdoc-template/braintree/tmpl/layout.tmpl +150 -0
- package/jsdoc-template/braintree/tmpl/mainpage.tmpl +9 -0
- package/jsdoc-template/braintree/tmpl/members.tmpl +38 -0
- package/jsdoc-template/braintree/tmpl/method.tmpl +128 -0
- package/jsdoc-template/braintree/tmpl/params.tmpl +125 -0
- package/jsdoc-template/braintree/tmpl/properties.tmpl +111 -0
- package/jsdoc-template/braintree/tmpl/returns.tmpl +17 -0
- package/jsdoc-template/braintree/tmpl/source.tmpl +9 -0
- package/jsdoc-template/braintree/tmpl/tutorial.tmpl +23 -0
- package/jsdoc-template/braintree/tmpl/type.tmpl +11 -0
- package/package.json +14 -15
- package/src/color.ts +20 -0
- package/src/consts.ts +47 -26
- package/src/devices/absolutemotor.ts +2 -3
- package/src/devices/colordistancesensor.ts +98 -3
- package/src/devices/device.ts +9 -6
- package/src/devices/duplotrainbasecolorsensor.ts +17 -2
- package/src/devices/tachomotor.ts +4 -6
- package/src/devices/technic3x3colorlightmatrix.ts +64 -0
- package/src/devices/techniccolorsensor.ts +2 -1
- package/src/devices/technicmediumhubtiltsensor.ts +75 -3
- package/src/devices/technicsmallangularmotor.ts +17 -0
- package/src/hubs/basehub.ts +4 -0
- package/src/hubs/lpf2hub.ts +7 -11
- package/src/hubs/technicmediumhub.ts +1 -1
- package/src/hubs/technicsmallhub.ts +60 -0
- package/src/index-browser.ts +6 -0
- package/src/index-node.ts +6 -0
- package/src/poweredup-browser.ts +8 -1
- package/src/poweredup-node.ts +7 -1
- package/src/utils.ts +7 -0
- package/docs/classes.list.html +0 -8654
- package/docs/fonts/glyphicons-halflings-regular.eot +0 -0
- package/docs/fonts/glyphicons-halflings-regular.svg +0 -288
- package/docs/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/docs/fonts/glyphicons-halflings-regular.woff +0 -0
- package/docs/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/docs/img/glyphicons-halflings-white.png +0 -0
- package/docs/img/glyphicons-halflings.png +0 -0
- package/docs/quicksearch.html +0 -31
- package/docs/scripts/docstrap.lib.js +0 -11
- package/docs/scripts/fulltext-search-ui.js +0 -89
- package/docs/scripts/fulltext-search.js +0 -36
- package/docs/scripts/lunr.min.js +0 -6
- package/docs/scripts/prettify/Apache-License-2.0.txt +0 -202
- package/docs/scripts/prettify/jquery.min.js +0 -6
- package/docs/scripts/prettify/lang-css.js +0 -21
- package/docs/scripts/prettify/prettify.js +0 -496
- package/docs/scripts/sunlight.js +0 -1157
- package/docs/scripts/toc.js +0 -203
- package/docs/styles/darkstrap.css +0 -960
- package/docs/styles/site.cerulean.css +0 -7008
- package/docs/styles/site.cosmo.css +0 -7061
- package/docs/styles/site.cyborg.css +0 -7048
- package/docs/styles/site.darkly.css +0 -7171
- package/docs/styles/site.darkstrap.css +0 -5638
- package/docs/styles/site.dibs-bootstrap.css +0 -5899
- package/docs/styles/site.flatly.css +0 -7147
- package/docs/styles/site.journal.css +0 -6973
- package/docs/styles/site.lumen.css +0 -7298
- package/docs/styles/site.paper.css +0 -7623
- package/docs/styles/site.readable.css +0 -6997
- package/docs/styles/site.sandstone.css +0 -7035
- package/docs/styles/site.simplex.css +0 -7023
- package/docs/styles/site.slate.css +0 -7343
- package/docs/styles/site.spacelab.css +0 -7055
- package/docs/styles/site.superhero.css +0 -7131
- package/docs/styles/site.united.css +0 -6895
- package/docs/styles/site.yeti.css +0 -7195
- package/docs/styles/sunlight.dark.css +0 -345
- package/docs/styles/sunlight.default.css +0 -344
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* JSDoc prettify.js theme */
|
|
2
|
+
|
|
3
|
+
/* plain text */
|
|
4
|
+
.pln {
|
|
5
|
+
color: #000000;
|
|
6
|
+
font-weight: normal;
|
|
7
|
+
font-style: normal;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* string content */
|
|
11
|
+
.str {
|
|
12
|
+
color: hsl(104, 100%, 24%);
|
|
13
|
+
font-weight: normal;
|
|
14
|
+
font-style: normal;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* a keyword */
|
|
18
|
+
.kwd {
|
|
19
|
+
color: #000000;
|
|
20
|
+
font-weight: bold;
|
|
21
|
+
font-style: normal;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* a comment */
|
|
25
|
+
.com {
|
|
26
|
+
font-weight: normal;
|
|
27
|
+
font-style: italic;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* a type name */
|
|
31
|
+
.typ {
|
|
32
|
+
color: #000000;
|
|
33
|
+
font-weight: normal;
|
|
34
|
+
font-style: normal;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* a literal value */
|
|
38
|
+
.lit {
|
|
39
|
+
color: #006400;
|
|
40
|
+
font-weight: normal;
|
|
41
|
+
font-style: normal;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* punctuation */
|
|
45
|
+
.pun {
|
|
46
|
+
color: #000000;
|
|
47
|
+
font-weight: bold;
|
|
48
|
+
font-style: normal;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* lisp open bracket */
|
|
52
|
+
.opn {
|
|
53
|
+
color: #000000;
|
|
54
|
+
font-weight: bold;
|
|
55
|
+
font-style: normal;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* lisp close bracket */
|
|
59
|
+
.clo {
|
|
60
|
+
color: #000000;
|
|
61
|
+
font-weight: bold;
|
|
62
|
+
font-style: normal;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* a markup tag name */
|
|
66
|
+
.tag {
|
|
67
|
+
color: #006400;
|
|
68
|
+
font-weight: normal;
|
|
69
|
+
font-style: normal;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* a markup attribute name */
|
|
73
|
+
.atn {
|
|
74
|
+
color: #006400;
|
|
75
|
+
font-weight: normal;
|
|
76
|
+
font-style: normal;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* a markup attribute value */
|
|
80
|
+
.atv {
|
|
81
|
+
color: #006400;
|
|
82
|
+
font-weight: normal;
|
|
83
|
+
font-style: normal;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* a declaration */
|
|
87
|
+
.dec {
|
|
88
|
+
color: #000000;
|
|
89
|
+
font-weight: bold;
|
|
90
|
+
font-style: normal;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* a variable name */
|
|
94
|
+
.var {
|
|
95
|
+
color: #000000;
|
|
96
|
+
font-weight: normal;
|
|
97
|
+
font-style: normal;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* a function name */
|
|
101
|
+
.fun {
|
|
102
|
+
color: #000000;
|
|
103
|
+
font-weight: bold;
|
|
104
|
+
font-style: normal;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Specify class=linenums on a pre to get line numbering */
|
|
108
|
+
ol.linenums {
|
|
109
|
+
margin-top: 0;
|
|
110
|
+
margin-bottom: 0;
|
|
111
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/* Tomorrow Theme */
|
|
2
|
+
/* Original theme - https://github.com/chriskempson/tomorrow-theme */
|
|
3
|
+
/* Pretty printing styles. Used with prettify.js. */
|
|
4
|
+
/* SPAN elements with the classes below are added by prettyprint. */
|
|
5
|
+
/* plain text */
|
|
6
|
+
.pln {
|
|
7
|
+
color: #4d4d4c; }
|
|
8
|
+
|
|
9
|
+
@media screen {
|
|
10
|
+
/* string content */
|
|
11
|
+
.str {
|
|
12
|
+
color: hsl(104, 100%, 24%); }
|
|
13
|
+
|
|
14
|
+
/* a keyword */
|
|
15
|
+
.kwd {
|
|
16
|
+
color: hsl(240, 100%, 50%); }
|
|
17
|
+
|
|
18
|
+
/* a comment */
|
|
19
|
+
.com {
|
|
20
|
+
color: hsl(0, 0%, 60%); }
|
|
21
|
+
|
|
22
|
+
/* a type name */
|
|
23
|
+
.typ {
|
|
24
|
+
color: hsl(240, 100%, 32%); }
|
|
25
|
+
|
|
26
|
+
/* a literal value */
|
|
27
|
+
.lit {
|
|
28
|
+
color: hsl(240, 100%, 40%); }
|
|
29
|
+
|
|
30
|
+
/* punctuation */
|
|
31
|
+
.pun {
|
|
32
|
+
color: #000000; }
|
|
33
|
+
|
|
34
|
+
/* lisp open bracket */
|
|
35
|
+
.opn {
|
|
36
|
+
color: #000000; }
|
|
37
|
+
|
|
38
|
+
/* lisp close bracket */
|
|
39
|
+
.clo {
|
|
40
|
+
color: #000000; }
|
|
41
|
+
|
|
42
|
+
/* a markup tag name */
|
|
43
|
+
.tag {
|
|
44
|
+
color: #c82829; }
|
|
45
|
+
|
|
46
|
+
/* a markup attribute name */
|
|
47
|
+
.atn {
|
|
48
|
+
color: #f5871f; }
|
|
49
|
+
|
|
50
|
+
/* a markup attribute value */
|
|
51
|
+
.atv {
|
|
52
|
+
color: #3e999f; }
|
|
53
|
+
|
|
54
|
+
/* a declaration */
|
|
55
|
+
.dec {
|
|
56
|
+
color: #f5871f; }
|
|
57
|
+
|
|
58
|
+
/* a variable name */
|
|
59
|
+
.var {
|
|
60
|
+
color: #c82829; }
|
|
61
|
+
|
|
62
|
+
/* a function name */
|
|
63
|
+
.fun {
|
|
64
|
+
color: #4271ae; } }
|
|
65
|
+
/* Use higher contrast and text-weight for printable form. */
|
|
66
|
+
@media print, projection {
|
|
67
|
+
.str {
|
|
68
|
+
color: #060; }
|
|
69
|
+
|
|
70
|
+
.kwd {
|
|
71
|
+
color: #006;
|
|
72
|
+
font-weight: bold; }
|
|
73
|
+
|
|
74
|
+
.com {
|
|
75
|
+
color: #600;
|
|
76
|
+
font-style: italic; }
|
|
77
|
+
|
|
78
|
+
.typ {
|
|
79
|
+
color: #404;
|
|
80
|
+
font-weight: bold; }
|
|
81
|
+
|
|
82
|
+
.lit {
|
|
83
|
+
color: #044; }
|
|
84
|
+
|
|
85
|
+
.pun, .opn, .clo {
|
|
86
|
+
color: #440; }
|
|
87
|
+
|
|
88
|
+
.tag {
|
|
89
|
+
color: #006;
|
|
90
|
+
font-weight: bold; }
|
|
91
|
+
|
|
92
|
+
.atn {
|
|
93
|
+
color: #404; }
|
|
94
|
+
|
|
95
|
+
.atv {
|
|
96
|
+
color: #060; } }
|
|
97
|
+
/* Style */
|
|
98
|
+
/*
|
|
99
|
+
pre.prettyprint {
|
|
100
|
+
background: white;
|
|
101
|
+
font-family: Consolas, Monaco, 'Andale Mono', monospace;
|
|
102
|
+
font-size: 12px;
|
|
103
|
+
line-height: 1.5;
|
|
104
|
+
border: 1px solid #ccc;
|
|
105
|
+
padding: 10px; }
|
|
106
|
+
*/
|
|
107
|
+
|
|
108
|
+
/* Get LI elements to show when they are in the main article */
|
|
109
|
+
article ul li {
|
|
110
|
+
list-style-type: circle;
|
|
111
|
+
margin-left: 25px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* Specify class=linenums on a pre to get line numbering */
|
|
115
|
+
ol.linenums {
|
|
116
|
+
margin-top: 0;
|
|
117
|
+
margin-bottom: 0; }
|
|
118
|
+
|
|
119
|
+
/* IE indents via margin-left */
|
|
120
|
+
li.L0,
|
|
121
|
+
li.L1,
|
|
122
|
+
li.L2,
|
|
123
|
+
li.L3,
|
|
124
|
+
li.L4,
|
|
125
|
+
li.L5,
|
|
126
|
+
li.L6,
|
|
127
|
+
li.L7,
|
|
128
|
+
li.L8,
|
|
129
|
+
li.L9 {
|
|
130
|
+
/* */ }
|
|
131
|
+
|
|
132
|
+
/* Alternate shading for lines */
|
|
133
|
+
li.L1,
|
|
134
|
+
li.L3,
|
|
135
|
+
li.L5,
|
|
136
|
+
li.L7,
|
|
137
|
+
li.L9 {
|
|
138
|
+
/* */ }
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
<?js
|
|
2
|
+
var self = this;
|
|
3
|
+
var conf = env.conf;
|
|
4
|
+
var isGlobalPage;
|
|
5
|
+
|
|
6
|
+
docs.forEach(function(doc, i) {
|
|
7
|
+
isGlobalPage = isGlobalPage || doc.kind === 'globalobj';
|
|
8
|
+
|
|
9
|
+
if (doc.kind === 'mainpage' || (doc.kind === 'package')) { ?>
|
|
10
|
+
<?js= self.partial('mainpage.tmpl', doc) ?>
|
|
11
|
+
<?js } else if (doc.kind === 'source') { ?>
|
|
12
|
+
<?js= self.partial('source.tmpl', doc) ?>
|
|
13
|
+
<?js } else { ?>
|
|
14
|
+
|
|
15
|
+
<section>
|
|
16
|
+
<header>
|
|
17
|
+
<?js if (!doc.longname || doc.kind !== 'module') { ?>
|
|
18
|
+
<h2>
|
|
19
|
+
<?js if (doc.ancestors && doc.ancestors.length) { ?>
|
|
20
|
+
<span class="ancestors"><?js= doc.ancestors.join('') ?></span>
|
|
21
|
+
<?js } ?>
|
|
22
|
+
<?js= doc.name ?>
|
|
23
|
+
<?js if (doc.variation) { ?>
|
|
24
|
+
<sup class="variation"><?js= doc.variation ?></sup>
|
|
25
|
+
<?js } ?>
|
|
26
|
+
</h2>
|
|
27
|
+
|
|
28
|
+
<?js if (doc.classdesc) { ?>
|
|
29
|
+
<div class="class-description">
|
|
30
|
+
<?js= doc.classdesc ?>
|
|
31
|
+
</div>
|
|
32
|
+
<?js } ?>
|
|
33
|
+
<?js } else if (doc.kind === 'module' && doc.modules) { ?>
|
|
34
|
+
<?js doc.modules.forEach(function(module) { ?>
|
|
35
|
+
<?js if (module.classdesc) { ?>
|
|
36
|
+
<div class="class-description">
|
|
37
|
+
<?js= module.classdesc ?>
|
|
38
|
+
</div>
|
|
39
|
+
<?js }
|
|
40
|
+
})
|
|
41
|
+
} ?>
|
|
42
|
+
</header>
|
|
43
|
+
|
|
44
|
+
<article>
|
|
45
|
+
<div class="container-overview">
|
|
46
|
+
<?js if (doc.kind === 'module' && doc.modules) { ?>
|
|
47
|
+
<?js if (doc.description) { ?>
|
|
48
|
+
<div class="description">
|
|
49
|
+
<?js= doc.description ?>
|
|
50
|
+
</div>
|
|
51
|
+
<?js } ?>
|
|
52
|
+
|
|
53
|
+
<?js doc.modules.forEach(function(module) { ?>
|
|
54
|
+
<?js= self.partial('method.tmpl', module) ?>
|
|
55
|
+
<?js }) ?>
|
|
56
|
+
<?js } else if (doc.kind === 'class') { ?>
|
|
57
|
+
<?js= self.partial('method.tmpl', doc) ?>
|
|
58
|
+
<?js } else { ?>
|
|
59
|
+
<?js if (doc.description) { ?>
|
|
60
|
+
<div class="description">
|
|
61
|
+
<?js= doc.description ?>
|
|
62
|
+
</div>
|
|
63
|
+
<?js } ?>
|
|
64
|
+
|
|
65
|
+
<?js= self.partial('details.tmpl', doc) ?>
|
|
66
|
+
|
|
67
|
+
<?js if (doc.examples && doc.examples.length) { ?>
|
|
68
|
+
<h3>Example<?js= doc.examples.length > 1? 's':'' ?></h3>
|
|
69
|
+
<?js= self.partial('examples.tmpl', doc.examples) ?>
|
|
70
|
+
<?js } ?>
|
|
71
|
+
<?js } ?>
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
<?js if (doc.augments && doc.augments.length) { ?>
|
|
75
|
+
<h3 class="subsection-title">Extends</h3>
|
|
76
|
+
|
|
77
|
+
<?js= self.partial('augments.tmpl', doc) ?>
|
|
78
|
+
<?js } ?>
|
|
79
|
+
|
|
80
|
+
<?js if (doc.requires && doc.requires.length) { ?>
|
|
81
|
+
<h3 class="subsection-title">Requires</h3>
|
|
82
|
+
|
|
83
|
+
<ul>
|
|
84
|
+
<?js doc.requires.forEach(function(r) { ?>
|
|
85
|
+
<li>
|
|
86
|
+
<?js= self.linkto(r, r) ?>
|
|
87
|
+
</li>
|
|
88
|
+
<?js }); ?>
|
|
89
|
+
</ul>
|
|
90
|
+
<?js } ?>
|
|
91
|
+
|
|
92
|
+
<?js
|
|
93
|
+
var classes = self.find({kind: 'class', memberof: doc.longname});
|
|
94
|
+
if (!isGlobalPage && classes && classes.length) {
|
|
95
|
+
?>
|
|
96
|
+
<h3 class="subsection-title">Classes</h3>
|
|
97
|
+
|
|
98
|
+
<dl>
|
|
99
|
+
<?js classes.forEach(function(c) { ?>
|
|
100
|
+
<dt>
|
|
101
|
+
<?js= self.linkto(c.longname, c.name) ?>
|
|
102
|
+
</dt>
|
|
103
|
+
<dd>
|
|
104
|
+
<?js if (c.summary) { ?>
|
|
105
|
+
<?js= c.summary ?>
|
|
106
|
+
<?js } ?>
|
|
107
|
+
</dd>
|
|
108
|
+
<?js }); ?>
|
|
109
|
+
</dl>
|
|
110
|
+
<?js } ?>
|
|
111
|
+
|
|
112
|
+
<?js
|
|
113
|
+
var mixins = self.find({kind: 'mixin', memberof: doc.longname});
|
|
114
|
+
|
|
115
|
+
if (!isGlobalPage && mixins && mixins.length) {
|
|
116
|
+
?>
|
|
117
|
+
<h3 class="subsection-title">Mixins</h3>
|
|
118
|
+
|
|
119
|
+
<dl>
|
|
120
|
+
<?js mixins.forEach(function(m) { ?>
|
|
121
|
+
<dt>
|
|
122
|
+
<?js= self.linkto(m.longname, m.name) ?>
|
|
123
|
+
</dt>
|
|
124
|
+
<dd>
|
|
125
|
+
<?js if (m.summary) { ?><?js= m.summary ?><?js } ?>
|
|
126
|
+
</dd>
|
|
127
|
+
<?js }); ?>
|
|
128
|
+
</dl>
|
|
129
|
+
<?js } ?>
|
|
130
|
+
|
|
131
|
+
<?js
|
|
132
|
+
var namespaces = self.find({kind: 'namespace', memberof: doc.longname});
|
|
133
|
+
if (!isGlobalPage && namespaces && namespaces.length) {
|
|
134
|
+
?>
|
|
135
|
+
<h3 class="subsection-title">Namespaces</h3>
|
|
136
|
+
|
|
137
|
+
<dl>
|
|
138
|
+
<?js namespaces.forEach(function(n) { ?>
|
|
139
|
+
<dt>
|
|
140
|
+
<?js= self.linkto(n.longname, n.name) ?>
|
|
141
|
+
</dt>
|
|
142
|
+
<dd>
|
|
143
|
+
<?js if (n.summary) { ?><?js= n.summary ?><?js } ?>
|
|
144
|
+
</dd>
|
|
145
|
+
<?js }); ?>
|
|
146
|
+
</dl>
|
|
147
|
+
<?js } ?>
|
|
148
|
+
|
|
149
|
+
<?js
|
|
150
|
+
var members = self.find({kind: 'member', memberof: isGlobalPage ? {isUndefined: true} : doc.longname});
|
|
151
|
+
var excludePattern = new RegExp(conf.source.excludePattern);
|
|
152
|
+
|
|
153
|
+
// symbols that are assigned to module.exports are not globals, even though they're not a memberof anything
|
|
154
|
+
if (isGlobalPage && members && members.length && members.forEach) {
|
|
155
|
+
members = members.filter(function(m) {
|
|
156
|
+
return m.longname && m.longname.indexOf('module:') !== 0;
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
if (members && members.length && members.forEach) {
|
|
161
|
+
?>
|
|
162
|
+
<h3 class="subsection-title">Members</h3>
|
|
163
|
+
|
|
164
|
+
<?js members.forEach(function(p) {
|
|
165
|
+
if (!conf.source.excludePattern || !p.comment.match(excludePattern)) { ?>
|
|
166
|
+
<?js= self.partial('members.tmpl', p) ?>
|
|
167
|
+
<?js } ?>
|
|
168
|
+
<?js }); ?>
|
|
169
|
+
<?js } ?>
|
|
170
|
+
|
|
171
|
+
<?js
|
|
172
|
+
var methods = self.find({kind: 'function', memberof: isGlobalPage ? {isUndefined: true} : doc.longname});
|
|
173
|
+
if (methods && methods.length && methods.forEach) {
|
|
174
|
+
?>
|
|
175
|
+
<h3 class="subsection-title">Methods</h3>
|
|
176
|
+
|
|
177
|
+
<?js methods.forEach(function(m) { ?>
|
|
178
|
+
<?js= self.partial('method.tmpl', m) ?>
|
|
179
|
+
<?js }); ?>
|
|
180
|
+
<?js } ?>
|
|
181
|
+
|
|
182
|
+
<?js
|
|
183
|
+
var typedefs = self.find({kind: 'typedef', memberof: isGlobalPage ? {isUndefined: true} : doc.longname});
|
|
184
|
+
|
|
185
|
+
if (typedefs && typedefs.length && typedefs.forEach) {
|
|
186
|
+
?>
|
|
187
|
+
<h3 class="subsection-title">Type Definitions</h3>
|
|
188
|
+
|
|
189
|
+
<?js typedefs.forEach(function(e) {
|
|
190
|
+
if (e.signature) {
|
|
191
|
+
?>
|
|
192
|
+
<?js= self.partial('method.tmpl', e) ?>
|
|
193
|
+
<?js } else { ?>
|
|
194
|
+
<?js= self.partial('members.tmpl', e) ?>
|
|
195
|
+
<?js }
|
|
196
|
+
});
|
|
197
|
+
} ?>
|
|
198
|
+
|
|
199
|
+
<?js
|
|
200
|
+
var events = self.find({kind: 'event', memberof: isGlobalPage ? {isUndefined: true} : doc.longname});
|
|
201
|
+
if (events && events.length && events.forEach) {
|
|
202
|
+
?>
|
|
203
|
+
<h3 class="subsection-title">Events</h3>
|
|
204
|
+
|
|
205
|
+
<?js events.forEach(function(e) { ?>
|
|
206
|
+
<?js= self.partial('method.tmpl', e) ?>
|
|
207
|
+
<?js }); ?>
|
|
208
|
+
<?js } ?>
|
|
209
|
+
</article>
|
|
210
|
+
</section>
|
|
211
|
+
|
|
212
|
+
<?js } ?>
|
|
213
|
+
<?js }); ?>
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
<?js
|
|
2
|
+
var data = obj;
|
|
3
|
+
var self = this;
|
|
4
|
+
var defaultObjectClass = '';
|
|
5
|
+
|
|
6
|
+
// Check if the default value is an object or array; if so, apply code highlighting
|
|
7
|
+
if (data.defaultvalue && (data.defaultvaluetype === 'object' || data.defaultvaluetype === 'array')) {
|
|
8
|
+
data.defaultvalue = "<pre class=\"prettyprint\"><code>" + data.defaultvalue + "</code></pre>";
|
|
9
|
+
defaultObjectClass = ' class="object-value"';
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
var properties = data.properties;
|
|
13
|
+
|
|
14
|
+
if (properties && properties.length && properties.forEach) {
|
|
15
|
+
?>
|
|
16
|
+
|
|
17
|
+
<h5 class="subsection-title">Properties:</h5>
|
|
18
|
+
|
|
19
|
+
<?js= this.partial('properties.tmpl', data) ?>
|
|
20
|
+
|
|
21
|
+
<?js } ?>
|
|
22
|
+
|
|
23
|
+
<dl class="details">
|
|
24
|
+
|
|
25
|
+
<?js if (data.version) {?>
|
|
26
|
+
<dt class="tag-version">Version:</dt>
|
|
27
|
+
<dd class="tag-version">
|
|
28
|
+
<ul class="dummy">
|
|
29
|
+
<li>
|
|
30
|
+
<?js= version ?>
|
|
31
|
+
</li>
|
|
32
|
+
</ul>
|
|
33
|
+
</dd>
|
|
34
|
+
<?js } ?>
|
|
35
|
+
|
|
36
|
+
<?js if (data.since) {?>
|
|
37
|
+
<dt class="tag-since">Since:</dt>
|
|
38
|
+
<dd class="tag-since">
|
|
39
|
+
<ul class="dummy">
|
|
40
|
+
<li>
|
|
41
|
+
<?js= since ?>
|
|
42
|
+
</li>
|
|
43
|
+
</ul>
|
|
44
|
+
</dd>
|
|
45
|
+
<?js } ?>
|
|
46
|
+
|
|
47
|
+
<?js if (data.inherited && data.inherits && !data.overrides) { ?>
|
|
48
|
+
<dt class="inherited-from">Inherited From:</dt>
|
|
49
|
+
<dd class="inherited-from">
|
|
50
|
+
<ul class="dummy">
|
|
51
|
+
<li>
|
|
52
|
+
<?js= this.linkto(data.inherits, this.htmlsafe(data.inherits)) ?>
|
|
53
|
+
</li>
|
|
54
|
+
</ul>
|
|
55
|
+
</dd>
|
|
56
|
+
<?js } ?>
|
|
57
|
+
|
|
58
|
+
<?js if (data.overrides) { ?>
|
|
59
|
+
<dt class="tag-overrides">Overrides:</dt>
|
|
60
|
+
<dd class="tag-overrides">
|
|
61
|
+
<ul class="dummy">
|
|
62
|
+
<li>
|
|
63
|
+
<?js= this.linkto(data.overrides, this.htmlsafe(data.overrides)) ?>
|
|
64
|
+
</li>
|
|
65
|
+
</ul>
|
|
66
|
+
</dd>
|
|
67
|
+
<?js } ?>
|
|
68
|
+
|
|
69
|
+
<?js if (data.implementations && data.implementations.length) { ?>
|
|
70
|
+
<dt class="implementations">Implementations:</dt>
|
|
71
|
+
<dd class="implementations">
|
|
72
|
+
<ul>
|
|
73
|
+
<?js data.implementations.forEach(function(impl) { ?>
|
|
74
|
+
<li>
|
|
75
|
+
<?js= self.linkto(impl, self.htmlsafe(impl)) ?>
|
|
76
|
+
</li>
|
|
77
|
+
<?js }); ?>
|
|
78
|
+
</ul>
|
|
79
|
+
</dd>
|
|
80
|
+
<?js } ?>
|
|
81
|
+
|
|
82
|
+
<?js if (data.implements && data.implements.length) { ?>
|
|
83
|
+
<dt class="implements">Implements:</dt>
|
|
84
|
+
<dd class="implements">
|
|
85
|
+
<ul>
|
|
86
|
+
<?js data.implements.forEach(function(impl) { ?>
|
|
87
|
+
<li><?js= self.linkto(impl, self.htmlsafe(impl)) ?></li>
|
|
88
|
+
<?js }); ?>
|
|
89
|
+
</ul>
|
|
90
|
+
</dd>
|
|
91
|
+
<?js } ?>
|
|
92
|
+
|
|
93
|
+
<?js if (data.mixes && data.mixes.length) { ?>
|
|
94
|
+
<dt class="mixes">Mixes In:</dt>
|
|
95
|
+
|
|
96
|
+
<dd class="mixes">
|
|
97
|
+
<ul>
|
|
98
|
+
<?js data.mixes.forEach(function(a) { ?>
|
|
99
|
+
<li>
|
|
100
|
+
<?js= self.linkto(a, a) ?>
|
|
101
|
+
</li>
|
|
102
|
+
<?js }); ?>
|
|
103
|
+
</ul>
|
|
104
|
+
</dd>
|
|
105
|
+
<?js } ?>
|
|
106
|
+
|
|
107
|
+
<?js if (data.deprecated) { ?>
|
|
108
|
+
<dt class="important tag-deprecated">Deprecated:</dt>
|
|
109
|
+
<?js
|
|
110
|
+
if (data.deprecated === true) { ?>
|
|
111
|
+
<dd class="yes-def tag-deprecated">
|
|
112
|
+
<ul class="dummy">
|
|
113
|
+
<li>Yes</li>
|
|
114
|
+
</ul>
|
|
115
|
+
</dd>
|
|
116
|
+
<?js } else { ?>
|
|
117
|
+
<dd>
|
|
118
|
+
<ul class="dummy">
|
|
119
|
+
<li>
|
|
120
|
+
<?js= data.deprecated ?>
|
|
121
|
+
</li>
|
|
122
|
+
</ul>
|
|
123
|
+
</dd>
|
|
124
|
+
<?js } ?>
|
|
125
|
+
<br>
|
|
126
|
+
<?js } ?>
|
|
127
|
+
|
|
128
|
+
<?js if (data.author && author.length) {?>
|
|
129
|
+
<dt class="tag-author">Author:</dt>
|
|
130
|
+
<dd class="tag-author">
|
|
131
|
+
<ul>
|
|
132
|
+
<?js author.forEach(function(a) { ?>
|
|
133
|
+
<li>
|
|
134
|
+
<?js= self.resolveAuthorLinks(a) ?>
|
|
135
|
+
</li>
|
|
136
|
+
<?js }); ?>
|
|
137
|
+
</ul>
|
|
138
|
+
</dd>
|
|
139
|
+
<?js } ?>
|
|
140
|
+
|
|
141
|
+
<?js if (data.copyright) {?>
|
|
142
|
+
<dt class="tag-copyright">Copyright:</dt>
|
|
143
|
+
<dd class="tag-copyright">
|
|
144
|
+
<ul class="dummy">
|
|
145
|
+
<li>
|
|
146
|
+
<?js= copyright ?>
|
|
147
|
+
</li>
|
|
148
|
+
</ul>
|
|
149
|
+
</dd>
|
|
150
|
+
<?js } ?>
|
|
151
|
+
|
|
152
|
+
<?js if (data.license) {?>
|
|
153
|
+
<dt class="tag-license">License:</dt>
|
|
154
|
+
<dd class="tag-license">
|
|
155
|
+
<ul class="dummy">
|
|
156
|
+
<li>
|
|
157
|
+
<?js= license ?>
|
|
158
|
+
</li>
|
|
159
|
+
</ul>
|
|
160
|
+
</dd>
|
|
161
|
+
<?js } ?>
|
|
162
|
+
|
|
163
|
+
<?js if (data.defaultvalue) {?>
|
|
164
|
+
<dt class="tag-default">Default Value:</dt>
|
|
165
|
+
<dd class="tag-default">
|
|
166
|
+
<ul class="dummy">
|
|
167
|
+
<li<?js= defaultObjectClass ?>>
|
|
168
|
+
<?js= data.defaultvalue ?>
|
|
169
|
+
</li>
|
|
170
|
+
</ul>
|
|
171
|
+
</dd>
|
|
172
|
+
<?js } ?>
|
|
173
|
+
|
|
174
|
+
<?js if (data.meta && self.outputSourceFiles) {?>
|
|
175
|
+
<dt class="tag-source">Source:</dt>
|
|
176
|
+
<dd class="tag-source">
|
|
177
|
+
<ul class="dummy">
|
|
178
|
+
<li>
|
|
179
|
+
<?js= self.linkto(meta.shortpath) ?>, <?js= self.linkto(meta.shortpath, 'line ' + meta.lineno, null, 'line' + meta.lineno) ?>
|
|
180
|
+
</li>
|
|
181
|
+
</ul>
|
|
182
|
+
</dd>
|
|
183
|
+
<?js } ?>
|
|
184
|
+
|
|
185
|
+
<?js if (data.tutorials && tutorials.length) {?>
|
|
186
|
+
<dt class="tag-tutorial">Tutorials:</dt>
|
|
187
|
+
<dd class="tag-tutorial">
|
|
188
|
+
<ul>
|
|
189
|
+
<?js tutorials.forEach(function(t) { ?>
|
|
190
|
+
<li>
|
|
191
|
+
<?js= self.tutoriallink(t) ?>
|
|
192
|
+
</li>
|
|
193
|
+
<?js }); ?>
|
|
194
|
+
</ul>
|
|
195
|
+
</dd>
|
|
196
|
+
<?js } ?>
|
|
197
|
+
|
|
198
|
+
<?js if (data.see && see.length) {?>
|
|
199
|
+
<dt class="tag-see">See:</dt>
|
|
200
|
+
<dd class="tag-see">
|
|
201
|
+
<ul>
|
|
202
|
+
<?js see.forEach(function(s) { ?>
|
|
203
|
+
<li>
|
|
204
|
+
<?js= self.linkto(s) ?>
|
|
205
|
+
</li>
|
|
206
|
+
<?js }); ?>
|
|
207
|
+
</ul>
|
|
208
|
+
</dd>
|
|
209
|
+
<?js } ?>
|
|
210
|
+
|
|
211
|
+
<?js if (data.todo && todo.length) {?>
|
|
212
|
+
<dt class="tag-todo">To Do:</dt>
|
|
213
|
+
<dd class="tag-todo">
|
|
214
|
+
<ul>
|
|
215
|
+
<?js todo.forEach(function(t) { ?>
|
|
216
|
+
<li>
|
|
217
|
+
<?js= t ?>
|
|
218
|
+
</li>
|
|
219
|
+
<?js }); ?>
|
|
220
|
+
</ul>
|
|
221
|
+
</dd>
|
|
222
|
+
<?js } ?>
|
|
223
|
+
</dl>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?js
|
|
2
|
+
var data = obj;
|
|
3
|
+
var self = this;
|
|
4
|
+
|
|
5
|
+
data.forEach(function(example) {
|
|
6
|
+
if (example.caption) {
|
|
7
|
+
?>
|
|
8
|
+
<p class="code-caption">
|
|
9
|
+
<?js= example.caption ?>
|
|
10
|
+
</p>
|
|
11
|
+
<?js } ?>
|
|
12
|
+
|
|
13
|
+
<pre class="prettyprint"><code><?js= self.htmlsafe(example.code) ?></code></pre>
|
|
14
|
+
<?js }); ?>
|