paper 0.17.0 → 1.0.0-rc.1
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/CHANGELOG.md +199 -0
- package/LICENSE.txt +1 -1
- package/MIGRATION.md +402 -0
- package/README.md +137 -143
- package/dist/esm/anim/Tween.js +404 -0
- package/dist/esm/basic/Line.js +252 -0
- package/dist/esm/basic/Matrix.js +603 -0
- package/dist/esm/basic/Point.js +738 -0
- package/dist/esm/basic/Rectangle.js +788 -0
- package/dist/esm/basic/Size.js +368 -0
- package/dist/esm/boolean/graph.js +950 -0
- package/dist/esm/boolean/index.js +143 -0
- package/dist/esm/boolean/operations.js +94 -0
- package/dist/esm/boolean/split.js +89 -0
- package/dist/esm/canvas/blendModes.js +115 -0
- package/dist/esm/canvas/canvasProvider.js +102 -0
- package/dist/esm/constants.js +130 -0
- package/dist/esm/core/Base.js +52 -0
- package/dist/esm/core/Emitter.js +215 -0
- package/dist/esm/core/features.js +53 -0
- package/dist/esm/core/serialization.js +174 -0
- package/dist/esm/core.js +15 -0
- package/dist/esm/dom/domElement.js +112 -0
- package/dist/esm/dom/domEvent.js +106 -0
- package/dist/esm/env.js +66 -0
- package/dist/esm/event/DrawEvent.js +38 -0
- package/dist/esm/event/Event.js +79 -0
- package/dist/esm/event/Key.js +236 -0
- package/dist/esm/event/KeyEvent.js +39 -0
- package/dist/esm/event/MouseEvent.js +91 -0
- package/dist/esm/hosted/HostItem.js +60 -0
- package/dist/esm/hosted/Hosting.js +1061 -0
- package/dist/esm/hosted/index.js +20 -0
- package/dist/esm/index.js +38 -0
- package/dist/esm/internal.js +115 -0
- package/dist/esm/item/Effect.js +256 -0
- package/dist/esm/item/EffectInstance.js +184 -0
- package/dist/esm/item/Group.js +293 -0
- package/dist/esm/item/HitResult.js +126 -0
- package/dist/esm/item/Item.js +3339 -0
- package/dist/esm/item/ItemDefinition.js +95 -0
- package/dist/esm/item/Layer.js +69 -0
- package/dist/esm/item/Project.js +1013 -0
- package/dist/esm/item/Raster.js +722 -0
- package/dist/esm/item/Shape.js +355 -0
- package/dist/esm/item/SymbolDefinition.js +68 -0
- package/dist/esm/item/SymbolItem.js +131 -0
- package/dist/esm/item/bounds.js +324 -0
- package/dist/esm/item/draw.js +525 -0
- package/dist/esm/item/effects.js +124 -0
- package/dist/esm/item/expand.js +87 -0
- package/dist/esm/item/hitTest.js +203 -0
- package/dist/esm/item/hosting.js +12 -0
- package/dist/esm/item/props.js +12 -0
- package/dist/esm/item/query.js +139 -0
- package/dist/esm/item/sampling.js +67 -0
- package/dist/esm/item/transform.js +128 -0
- package/dist/esm/net/http.js +26 -0
- package/dist/esm/node/CanvasAdapter.js +137 -0
- package/dist/esm/node/index.js +150 -0
- package/dist/esm/node/peers.js +27 -0
- package/dist/esm/offset/curves.js +866 -0
- package/dist/esm/offset/index.js +70 -0
- package/dist/esm/offset/offset.js +178 -0
- package/dist/esm/offset/outline.js +91 -0
- package/dist/esm/offset/pen.js +298 -0
- package/dist/esm/offset/profile.js +772 -0
- package/dist/esm/offset/round.js +213 -0
- package/dist/esm/offset/sweep.js +100 -0
- package/dist/esm/paperscript/PaperScript.js +832 -0
- package/dist/esm/paperscript/autoload.js +27 -0
- package/dist/esm/paperscript/index.js +17 -0
- package/dist/esm/path/CompoundPath.js +367 -0
- package/dist/esm/path/Curve.js +996 -0
- package/dist/esm/path/CurveLocation.js +462 -0
- package/dist/esm/path/Path.js +1761 -0
- package/dist/esm/path/PathFlattener.js +186 -0
- package/dist/esm/path/PathItem.js +757 -0
- package/dist/esm/path/Segment.js +640 -0
- package/dist/esm/path/SegmentPoint.js +106 -0
- package/dist/esm/path/StrokeProfile.js +387 -0
- package/dist/esm/path/StrokeProfileStop.js +207 -0
- package/dist/esm/path/boolean.js +284 -0
- package/dist/esm/path/bounds.js +257 -0
- package/dist/esm/path/crossing.js +114 -0
- package/dist/esm/path/draw.js +161 -0
- package/dist/esm/path/hitTest.js +259 -0
- package/dist/esm/path/offset.js +152 -0
- package/dist/esm/path/shapes.js +231 -0
- package/dist/esm/path/smooth.js +84 -0
- package/dist/esm/path/values.js +40 -0
- package/dist/esm/scope/PaperScope.js +288 -0
- package/dist/esm/scope/PaperScopeItem.js +74 -0
- package/dist/esm/smoothing/index.js +71 -0
- package/dist/esm/style/Color.js +917 -0
- package/dist/esm/style/Gradient.js +191 -0
- package/dist/esm/style/GradientStop.js +168 -0
- package/dist/esm/style/PatternDefinition.js +383 -0
- package/dist/esm/style/Style.js +503 -0
- package/dist/esm/svg/index.js +27 -0
- package/dist/esm/svg/svgElement.js +97 -0
- package/dist/esm/svg/svgExport.js +847 -0
- package/dist/esm/svg/svgImport.js +1101 -0
- package/dist/esm/svg/svgStyles.js +96 -0
- package/dist/esm/text/AreaText.js +190 -0
- package/dist/esm/text/PathText.js +111 -0
- package/dist/esm/text/PointText.js +92 -0
- package/dist/esm/text/TextItem.js +538 -0
- package/dist/esm/text/TextRange.js +169 -0
- package/dist/esm/text/TextStory.js +394 -0
- package/dist/esm/text/areaLayout.js +439 -0
- package/dist/esm/text/layout.js +265 -0
- package/dist/esm/text/measure.js +57 -0
- package/dist/esm/text/pathLayout.js +93 -0
- package/dist/esm/tool/Tool.js +284 -0
- package/dist/esm/tool/ToolEvent.js +232 -0
- package/dist/esm/util/Formatter.js +57 -0
- package/dist/esm/util/collisions.js +216 -0
- package/dist/esm/util/list.js +110 -0
- package/dist/esm/util/numerical.js +656 -0
- package/dist/esm/util/object.js +81 -0
- package/dist/esm/util/string.js +29 -0
- package/dist/esm/util/uid.js +31 -0
- package/dist/esm/values/arcs.js +243 -0
- package/dist/esm/values/curve.js +975 -0
- package/dist/esm/values/fit.js +290 -0
- package/dist/esm/values/index.js +23 -0
- package/dist/esm/values/intersections.js +869 -0
- package/dist/esm/values/matrix.js +114 -0
- package/dist/esm/values/path.js +174 -0
- package/dist/esm/values/profile.js +221 -0
- package/dist/esm/values/region.js +63 -0
- package/dist/esm/values/smooth.js +248 -0
- package/dist/esm/values/svg.js +287 -0
- package/dist/esm/view/CanvasView.js +106 -0
- package/dist/esm/view/View.js +775 -0
- package/dist/esm/view/input.js +527 -0
- package/dist/paper-full.js +32941 -26371
- package/dist/paper-full.min.js +36 -31
- package/dist/paper-hosted.js +33623 -27236
- package/dist/paper-hosted.min.js +37 -0
- package/dist/paper-slim.js +28581 -0
- package/dist/paper-slim.min.js +17 -0
- package/dist/types/anim/Tween.d.ts +164 -0
- package/dist/types/basic/Line.d.ts +136 -0
- package/dist/types/basic/Matrix.d.ts +387 -0
- package/dist/types/basic/Point.d.ts +781 -0
- package/dist/types/basic/Rectangle.d.ts +550 -0
- package/dist/types/basic/Size.d.ts +457 -0
- package/dist/types/boolean/graph.d.ts +123 -0
- package/dist/types/boolean/index.d.ts +74 -0
- package/dist/types/boolean/operations.d.ts +9 -0
- package/dist/types/boolean/split.d.ts +19 -0
- package/dist/types/canvas/blendModes.d.ts +18 -0
- package/dist/types/canvas/canvasProvider.d.ts +32 -0
- package/dist/types/constants.d.ts +112 -0
- package/dist/types/core/Base.d.ts +50 -0
- package/dist/types/core/Emitter.d.ts +49 -0
- package/dist/types/core/features.d.ts +41 -0
- package/dist/types/core/serialization.d.ts +44 -0
- package/dist/types/core.d.ts +18 -0
- package/dist/types/dom/domElement.d.ts +33 -0
- package/dist/types/dom/domEvent.d.ts +29 -0
- package/dist/types/env.d.ts +26 -0
- package/dist/types/event/DrawEvent.d.ts +27 -0
- package/dist/types/event/Event.d.ts +47 -0
- package/dist/types/event/Key.d.ts +82 -0
- package/dist/types/event/KeyEvent.d.ts +35 -0
- package/dist/types/event/MouseEvent.d.ts +78 -0
- package/dist/types/hosted/HostItem.d.ts +26 -0
- package/dist/types/hosted/Hosting.d.ts +273 -0
- package/dist/types/hosted/index.d.ts +10 -0
- package/dist/types/index.d.ts +64 -0
- package/dist/types/internal.d.ts +101 -0
- package/dist/types/item/Effect.d.ts +128 -0
- package/dist/types/item/EffectInstance.d.ts +81 -0
- package/dist/types/item/Group.d.ts +225 -0
- package/dist/types/item/HitResult.d.ts +94 -0
- package/dist/types/item/Item.d.ts +2927 -0
- package/dist/types/item/ItemDefinition.d.ts +25 -0
- package/dist/types/item/Layer.d.ts +80 -0
- package/dist/types/item/Project.d.ts +748 -0
- package/dist/types/item/Raster.d.ts +431 -0
- package/dist/types/item/Shape.d.ts +219 -0
- package/dist/types/item/SymbolDefinition.d.ts +98 -0
- package/dist/types/item/SymbolItem.d.ts +92 -0
- package/dist/types/item/bounds.d.ts +56 -0
- package/dist/types/item/draw.d.ts +23 -0
- package/dist/types/item/effects.d.ts +22 -0
- package/dist/types/item/expand.d.ts +7 -0
- package/dist/types/item/hitTest.d.ts +10 -0
- package/dist/types/item/hosting.d.ts +20 -0
- package/dist/types/item/props.d.ts +35 -0
- package/dist/types/item/query.d.ts +14 -0
- package/dist/types/item/sampling.d.ts +5 -0
- package/dist/types/item/transform.d.ts +3 -0
- package/dist/types/net/http.d.ts +6 -0
- package/dist/types/node/CanvasAdapter.d.ts +19 -0
- package/dist/types/node/index.d.ts +60 -0
- package/dist/types/node/peers.d.ts +2 -0
- package/dist/types/offset/curves.d.ts +22 -0
- package/dist/types/offset/index.d.ts +65 -0
- package/dist/types/offset/offset.d.ts +18 -0
- package/dist/types/offset/outline.d.ts +14 -0
- package/dist/types/offset/pen.d.ts +36 -0
- package/dist/types/offset/profile.d.ts +37 -0
- package/dist/types/offset/round.d.ts +18 -0
- package/dist/types/offset/sweep.d.ts +44 -0
- package/dist/types/paperscript/PaperScript.d.ts +114 -0
- package/dist/types/paperscript/autoload.d.ts +1 -0
- package/dist/types/paperscript/index.d.ts +7 -0
- package/dist/types/path/CompoundPath.d.ts +183 -0
- package/dist/types/path/Curve.d.ts +567 -0
- package/dist/types/path/CurveLocation.d.ts +164 -0
- package/dist/types/path/Path.d.ts +1361 -0
- package/dist/types/path/PathFlattener.d.ts +48 -0
- package/dist/types/path/PathItem.d.ts +1190 -0
- package/dist/types/path/Segment.d.ts +335 -0
- package/dist/types/path/SegmentPoint.d.ts +1 -0
- package/dist/types/path/StrokeProfile.d.ts +74 -0
- package/dist/types/path/StrokeProfileStop.d.ts +110 -0
- package/dist/types/path/boolean.d.ts +24 -0
- package/dist/types/path/bounds.d.ts +24 -0
- package/dist/types/path/crossing.d.ts +2 -0
- package/dist/types/path/draw.d.ts +6 -0
- package/dist/types/path/hitTest.d.ts +8 -0
- package/dist/types/path/offset.d.ts +14 -0
- package/dist/types/path/shapes.d.ts +20 -0
- package/dist/types/path/smooth.d.ts +18 -0
- package/dist/types/path/values.d.ts +8 -0
- package/dist/types/scope/PaperScope.d.ts +182 -0
- package/dist/types/scope/PaperScopeItem.d.ts +26 -0
- package/dist/types/smoothing/index.d.ts +26 -0
- package/dist/types/style/Color.d.ts +829 -0
- package/dist/types/style/Gradient.d.ts +130 -0
- package/dist/types/style/GradientStop.d.ts +126 -0
- package/dist/types/style/PatternDefinition.d.ts +185 -0
- package/dist/types/style/Style.d.ts +757 -0
- package/dist/types/svg/index.d.ts +14 -0
- package/dist/types/svg/svgElement.d.ts +32 -0
- package/dist/types/svg/svgExport.d.ts +19 -0
- package/dist/types/svg/svgImport.d.ts +13 -0
- package/dist/types/svg/svgStyles.d.ts +20 -0
- package/dist/types/text/AreaText.d.ts +104 -0
- package/dist/types/text/PathText.d.ts +78 -0
- package/dist/types/text/PointText.d.ts +50 -0
- package/dist/types/text/TextItem.d.ts +163 -0
- package/dist/types/text/TextRange.d.ts +98 -0
- package/dist/types/text/TextStory.d.ts +119 -0
- package/dist/types/text/areaLayout.d.ts +3 -0
- package/dist/types/text/layout.d.ts +43 -0
- package/dist/types/text/measure.d.ts +7 -0
- package/dist/types/text/pathLayout.d.ts +3 -0
- package/dist/types/tool/Tool.d.ts +356 -0
- package/dist/types/tool/ToolEvent.d.ts +134 -0
- package/dist/types/util/Formatter.d.ts +34 -0
- package/dist/types/util/collisions.d.ts +77 -0
- package/dist/types/util/list.d.ts +23 -0
- package/dist/types/util/numerical.d.ts +196 -0
- package/dist/types/util/object.d.ts +19 -0
- package/dist/types/util/string.d.ts +12 -0
- package/dist/types/util/uid.d.ts +7 -0
- package/dist/types/values/arcs.d.ts +10 -0
- package/dist/types/values/curve.d.ts +42 -0
- package/dist/types/values/fit.d.ts +26 -0
- package/dist/types/values/index.d.ts +10 -0
- package/dist/types/values/intersections.d.ts +11 -0
- package/dist/types/values/matrix.d.ts +19 -0
- package/dist/types/values/path.d.ts +26 -0
- package/dist/types/values/profile.d.ts +41 -0
- package/dist/types/values/region.d.ts +13 -0
- package/dist/types/values/smooth.d.ts +39 -0
- package/dist/types/values/svg.d.ts +47 -0
- package/dist/types/view/CanvasView.d.ts +37 -0
- package/dist/types/view/View.d.ts +700 -0
- package/dist/types/view/input.d.ts +28 -0
- package/package.json +89 -59
- package/dist/docs/assets/css/docs.css +0 -414
- package/dist/docs/assets/js/codemirror.js +0 -4
- package/dist/docs/assets/js/docs.js +0 -493
- package/dist/docs/assets/js/jquery.js +0 -6
- package/dist/docs/assets/js/paper.js +0 -27591
- package/dist/docs/classes/AreaText.html +0 -9186
- package/dist/docs/classes/ChangeFlag.html +0 -385
- package/dist/docs/classes/Color.html +0 -2402
- package/dist/docs/classes/CompoundPath.html +0 -10018
- package/dist/docs/classes/Curve.html +0 -2326
- package/dist/docs/classes/CurveLocation.html +0 -673
- package/dist/docs/classes/DrawEvent.html +0 -69
- package/dist/docs/classes/Effect.html +0 -434
- package/dist/docs/classes/EffectInstance.html +0 -304
- package/dist/docs/classes/Event.html +0 -177
- package/dist/docs/classes/Gradient.html +0 -241
- package/dist/docs/classes/GradientStop.html +0 -274
- package/dist/docs/classes/Group.html +0 -7688
- package/dist/docs/classes/HitResult.html +0 -241
- package/dist/docs/classes/HostItem.html +0 -7314
- package/dist/docs/classes/Item.html +0 -7427
- package/dist/docs/classes/Key.html +0 -140
- package/dist/docs/classes/KeyEvent.html +0 -309
- package/dist/docs/classes/Layer.html +0 -7671
- package/dist/docs/classes/Matrix.html +0 -1745
- package/dist/docs/classes/MouseEvent.html +0 -356
- package/dist/docs/classes/PaperScope.html +0 -548
- package/dist/docs/classes/PaperScript.html +0 -204
- package/dist/docs/classes/Path.html +0 -13007
- package/dist/docs/classes/PathItem.html +0 -9780
- package/dist/docs/classes/PathText.html +0 -9056
- package/dist/docs/classes/PatternDefinition.html +0 -367
- package/dist/docs/classes/Point.html +0 -2860
- package/dist/docs/classes/PointText.html +0 -8967
- package/dist/docs/classes/Project.html +0 -1774
- package/dist/docs/classes/Raster.html +0 -8547
- package/dist/docs/classes/Rectangle.html +0 -1698
- package/dist/docs/classes/Segment.html +0 -1017
- package/dist/docs/classes/Shape.html +0 -8048
- package/dist/docs/classes/Size.html +0 -1915
- package/dist/docs/classes/StrokeProfileStop.html +0 -346
- package/dist/docs/classes/Style.html +0 -1765
- package/dist/docs/classes/SymbolDefinition.html +0 -338
- package/dist/docs/classes/SymbolItem.html +0 -7477
- package/dist/docs/classes/TextItem.html +0 -8810
- package/dist/docs/classes/TextRange.html +0 -186
- package/dist/docs/classes/TextStory.html +0 -355
- package/dist/docs/classes/Tool.html +0 -888
- package/dist/docs/classes/ToolEvent.html +0 -525
- package/dist/docs/classes/Tween.html +0 -390
- package/dist/docs/classes/View.html +0 -2108
- package/dist/docs/classes/global.html +0 -426
- package/dist/docs/classes/index.html +0 -88
- package/dist/docs/index.html +0 -11
- package/dist/node/browser.js +0 -15
- package/dist/node/canvas.js +0 -68
- package/dist/node/extend.js +0 -156
- package/dist/node/self.js +0 -67
- package/dist/paper-core.d.ts +0 -1
- package/dist/paper-core.js +0 -25636
- package/dist/paper-core.min.js +0 -32
- package/dist/paper.d.ts +0 -10481
- package/examples/Animated/AnimatedStar.html +0 -53
- package/examples/Animated/BooleanOperations.html +0 -115
- package/examples/Animated/CandyCrash.html +0 -151
- package/examples/Animated/Extruded.html +0 -50
- package/examples/Animated/Lines.html +0 -53
- package/examples/Animated/Smoothing.html +0 -70
- package/examples/Animated/Space.html +0 -86
- package/examples/Animated/SpaceUsingShapes.html +0 -79
- package/examples/Games/Paperoids.html +0 -569
- package/examples/JSON/Circle Testing.html +0 -34
- package/examples/JSON/Compound Path.html +0 -25
- package/examples/JSON/Empty Path Testing.html +0 -31
- package/examples/JSON/Gradients.html +0 -34
- package/examples/JSON/Group Transform.html +0 -28
- package/examples/JSON/Line Testing.html +0 -44
- package/examples/JSON/Random Path Testing.html +0 -42
- package/examples/JSON/Raster.html +0 -29
- package/examples/JSON/Rect and Attribute Testing.html +0 -56
- package/examples/JSON/Rotated Primitives.html +0 -55
- package/examples/JSON/Selection.html +0 -43
- package/examples/JSON/Shapes.html +0 -54
- package/examples/JSON/Symbols.html +0 -30
- package/examples/JSON/Text Testing.html +0 -38
- package/examples/JSON/Tiger.html +0 -19
- package/examples/JSON/Transform Test 1.html +0 -32
- package/examples/JSON/Transform Test 2.html +0 -30
- package/examples/Node.js/AnimatedStar.js +0 -52
- package/examples/Node.js/BooleanOperations.js +0 -36
- package/examples/Node.js/JSONtoPDF.js +0 -20
- package/examples/Node.js/Raster.js +0 -32
- package/examples/Node.js/RasterRemote.js +0 -33
- package/examples/Node.js/SvgExport.js +0 -52
- package/examples/Node.js/SvgImport.js +0 -23
- package/examples/Node.js/Tadpoles.js +0 -16
- package/examples/Node.js/Tadpoles.pjs +0 -278
- package/examples/Node.js/in.json +0 -1
- package/examples/Node.js/in.svg +0 -16
- package/examples/Paperjs.org/BooleanOperattions.html +0 -115
- package/examples/Paperjs.org/BouncingBalls.html +0 -103
- package/examples/Paperjs.org/Chain.html +0 -54
- package/examples/Paperjs.org/DivisionRaster.html +0 -72
- package/examples/Paperjs.org/FutureSplash.html +0 -122
- package/examples/Paperjs.org/HitTesting.html +0 -103
- package/examples/Paperjs.org/InteractiveTiger.html +0 -777
- package/examples/Paperjs.org/LiveEffects.html +0 -366
- package/examples/Paperjs.org/MetaBalls.html +0 -132
- package/examples/Paperjs.org/NyanRainbow.html +0 -202
- package/examples/Paperjs.org/Offsetting.html +0 -379
- package/examples/Paperjs.org/PathIntersections.html +0 -76
- package/examples/Paperjs.org/Qbertify.html +0 -146
- package/examples/Paperjs.org/RadialRainbows.html +0 -80
- package/examples/Paperjs.org/RoundedRectangles.html +0 -41
- package/examples/Paperjs.org/SatieLikedToDraw.html +0 -140
- package/examples/Paperjs.org/Simplify.html +0 -63
- package/examples/Paperjs.org/SpiralRaster.html +0 -120
- package/examples/Paperjs.org/StrokeProfiles.html +0 -706
- package/examples/Paperjs.org/Tadpoles.html +0 -283
- package/examples/Paperjs.org/Voronoi.html +0 -134
- package/examples/Rasters/PhyllotaxisRaster.html +0 -96
- package/examples/Rasters/Raster.html +0 -34
- package/examples/Rasters/RotationRaster.html +0 -44
- package/examples/Rasters/Smoothing.html +0 -36
- package/examples/SVG Export/Circle Testing.html +0 -32
- package/examples/SVG Export/Clipping.html +0 -17
- package/examples/SVG Export/Compound Path.html +0 -22
- package/examples/SVG Export/Empty Path Testing.html +0 -28
- package/examples/SVG Export/Gradients.html +0 -52
- package/examples/SVG Export/Group Transform.html +0 -25
- package/examples/SVG Export/Line Testing.html +0 -41
- package/examples/SVG Export/Random Path Testing.html +0 -39
- package/examples/SVG Export/Raster.html +0 -21
- package/examples/SVG Export/Rect and Attribute Testing.html +0 -53
- package/examples/SVG Export/Rotated Primitives.html +0 -80
- package/examples/SVG Export/Shapes.html +0 -58
- package/examples/SVG Export/Symbols.html +0 -27
- package/examples/SVG Export/Text Testing.html +0 -45
- package/examples/SVG Export/Tiger.html +0 -23
- package/examples/SVG Export/Transform Test 1.html +0 -29
- package/examples/SVG Export/Transform Test 2.html +0 -27
- package/examples/SVG Import/Arcs.html +0 -78
- package/examples/SVG Import/Butterfly.html +0 -223
- package/examples/SVG Import/Circle and Ellipse Testing.html +0 -26
- package/examples/SVG Import/Clipping.html +0 -100
- package/examples/SVG Import/From File.html +0 -30
- package/examples/SVG Import/Gradient.html +0 -138
- package/examples/SVG Import/Gradients.html +0 -30
- package/examples/SVG Import/Inkscape Pivot.html +0 -52
- package/examples/SVG Import/Inkscape.html +0 -88
- package/examples/SVG Import/Line Testing.html +0 -24
- package/examples/SVG Import/MoreGradients.html +0 -107
- package/examples/SVG Import/Multiple Paths Test 1.html +0 -42
- package/examples/SVG Import/Multiple Paths Test 2.html +0 -33
- package/examples/SVG Import/Nested Groups Test.html +0 -78
- package/examples/SVG Import/Polybezier.html +0 -43
- package/examples/SVG Import/Rect Testing.html +0 -25
- package/examples/SVG Import/Symbols.html +0 -24
- package/examples/SVG Import/Testing.html +0 -40
- package/examples/SVG Import/Text Testing.html +0 -19
- package/examples/SVG Import/Tiger.html +0 -742
- package/examples/SVG Import/Transform Testing.html +0 -22
- package/examples/SVG Import/Viewbox.html +0 -38
- package/examples/Scripts/Arcs.html +0 -39
- package/examples/Scripts/AreaText.html +0 -65
- package/examples/Scripts/BlendModes.html +0 -77
- package/examples/Scripts/BooleanOperations.html +0 -937
- package/examples/Scripts/CompoundPath.html +0 -19
- package/examples/Scripts/CurveTimeParameterization.html +0 -61
- package/examples/Scripts/HslColor.html +0 -53
- package/examples/Scripts/PathStructure.html +0 -82
- package/examples/Scripts/PathTangents.html +0 -73
- package/examples/Scripts/PathText.html +0 -48
- package/examples/Scripts/Patterns.html +0 -57
- package/examples/Scripts/Resize.html +0 -42
- package/examples/Scripts/RoundRectangle.html +0 -28
- package/examples/Scripts/Shapes.html +0 -54
- package/examples/Scripts/StrokeBounds.html +0 -101
- package/examples/Scripts/StrokeScaling.html +0 -65
- package/examples/Scripts/TextRanges.html +0 -51
- package/examples/Tools/BezierTool.html +0 -90
- package/examples/Tools/Circles.html +0 -28
- package/examples/Tools/Clouds.html +0 -35
- package/examples/Tools/DrippingBrush.html +0 -73
- package/examples/Tools/FancyBrush.html +0 -82
- package/examples/Tools/Grid.html +0 -44
- package/examples/Tools/MultiLines.html +0 -44
- package/examples/Tools/MultipleTools.html +0 -44
- package/examples/Tools/PathEditing.html +0 -95
- package/examples/Tools/SquareRounded.html +0 -76
- package/examples/Tools/Stars.html +0 -38
- package/examples/Tools/Vektor.html +0 -200
- package/examples/Tools/Wave.html +0 -50
- package/examples/Tools/WormFarm.html +0 -88
- package/examples/Worker/Main.html +0 -53
- package/examples/Worker/Worker.js +0 -14
- package/examples/css/style.css +0 -12
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Point, View } from '../internal.ts';
|
|
2
|
+
import type { DispatchOptions, PointerOptions } from './View.ts';
|
|
3
|
+
import type { KeyEventType } from '../event/KeyEvent.ts';
|
|
4
|
+
import type { ToolEventType } from '../tool/ToolEvent.ts';
|
|
5
|
+
type Listener = (event: any) => void;
|
|
6
|
+
export declare class ViewInput {
|
|
7
|
+
#private;
|
|
8
|
+
itemEvents: {
|
|
9
|
+
native: Record<string, number>;
|
|
10
|
+
virtual: Record<string, number>;
|
|
11
|
+
};
|
|
12
|
+
dragging: boolean;
|
|
13
|
+
isPrevented: boolean;
|
|
14
|
+
lastPoint: Point | null;
|
|
15
|
+
constructor(view: View);
|
|
16
|
+
handleMouseEvent(type: ToolEventType, event: PointerEvent, point?: Point | null, dispatched?: boolean): void;
|
|
17
|
+
handleKeyEvent(type: KeyEventType, event: globalThis.Event, key: string, character: string): void;
|
|
18
|
+
countItemEvent(type: string, sign: number): void;
|
|
19
|
+
}
|
|
20
|
+
export declare function getOffsetPoint(view: View, offset: Point): Point;
|
|
21
|
+
export declare const views: View[];
|
|
22
|
+
export declare const viewsByElement: WeakMap<Element, View>;
|
|
23
|
+
export declare let viewEvents: Record<string, Listener>;
|
|
24
|
+
export declare function installEvents(hasInput: boolean): void;
|
|
25
|
+
export declare function updateFocus(): void;
|
|
26
|
+
export declare function createEvent(type: string, options: DispatchOptions & PointerOptions, view: View): PointerEvent;
|
|
27
|
+
export declare function resetFocus(): void;
|
|
28
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "paper",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-rc.1",
|
|
4
4
|
"description": "The Swiss Army Knife of Vector Graphics Scripting",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "http://paperjs.org",
|
|
@@ -13,93 +13,108 @@
|
|
|
13
13
|
"Jürg Lehni <juerg@scratchdisk.com> (http://scratchdisk.com)",
|
|
14
14
|
"Jonathan Puckey <jonathan@puckey.studio> (http://studiomoniker.com)"
|
|
15
15
|
],
|
|
16
|
-
"
|
|
17
|
-
"
|
|
16
|
+
"type": "module",
|
|
17
|
+
"main": "./dist/esm/index.js",
|
|
18
|
+
"types": "./dist/types/index.d.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/types/index.d.ts",
|
|
22
|
+
"default": "./dist/esm/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./core": {
|
|
25
|
+
"types": "./dist/types/core.d.ts",
|
|
26
|
+
"default": "./dist/esm/core.js"
|
|
27
|
+
},
|
|
28
|
+
"./paperscript": {
|
|
29
|
+
"types": "./dist/types/paperscript/index.d.ts",
|
|
30
|
+
"default": "./dist/esm/paperscript/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./node": {
|
|
33
|
+
"types": "./dist/types/node/index.d.ts",
|
|
34
|
+
"default": "./dist/esm/node/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./hosted": {
|
|
37
|
+
"types": "./dist/types/hosted/index.d.ts",
|
|
38
|
+
"default": "./dist/esm/hosted/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./svg": {
|
|
41
|
+
"types": "./dist/types/svg/index.d.ts",
|
|
42
|
+
"default": "./dist/esm/svg/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./boolean": {
|
|
45
|
+
"types": "./dist/types/boolean/index.d.ts",
|
|
46
|
+
"default": "./dist/esm/boolean/index.js"
|
|
47
|
+
},
|
|
48
|
+
"./offset": {
|
|
49
|
+
"types": "./dist/types/offset/index.d.ts",
|
|
50
|
+
"default": "./dist/esm/offset/index.js"
|
|
51
|
+
},
|
|
52
|
+
"./smoothing": {
|
|
53
|
+
"types": "./dist/types/smoothing/index.d.ts",
|
|
54
|
+
"default": "./dist/esm/smoothing/index.js"
|
|
55
|
+
},
|
|
56
|
+
"./dist/paper-*.js": "./dist/paper-*.js",
|
|
57
|
+
"./package.json": "./package.json"
|
|
58
|
+
},
|
|
59
|
+
"sideEffects": [
|
|
60
|
+
"./dist/esm/index.js",
|
|
61
|
+
"./dist/esm/internal.js",
|
|
62
|
+
"./dist/esm/paperscript/index.js",
|
|
63
|
+
"./dist/esm/node/*.js",
|
|
64
|
+
"./dist/esm/hosted/*.js",
|
|
65
|
+
"./dist/paper-*.js"
|
|
66
|
+
],
|
|
18
67
|
"scripts": {
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"zip": "
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"load": "gulp load",
|
|
26
|
-
"jshint": "gulp jshint",
|
|
27
|
-
"eslint": "eslint test '*.mjs'",
|
|
68
|
+
"build": "node build.mjs && tsc -p tsconfig.build.json",
|
|
69
|
+
"watch": "node build.mjs --watch",
|
|
70
|
+
"build:docs": "pnpm build && node docs.mjs",
|
|
71
|
+
"zip": "rm -f dist/paperjs.zip && zip -qr dist/paperjs.zip dist/paper-*.js LICENSE.txt examples && cd dist && zip -qr paperjs.zip docs",
|
|
72
|
+
"release": "node release.mjs",
|
|
73
|
+
"eslint": "eslint src test '*.mjs'",
|
|
28
74
|
"test": "vitest run --project node --project browser",
|
|
29
75
|
"test:browser": "vitest run --project browser",
|
|
30
|
-
"test:
|
|
76
|
+
"test:booleans": "node test/booleans/run.mjs",
|
|
77
|
+
"test:coverage": "vitest run --project node --project browser --coverage --testTimeout=60000",
|
|
31
78
|
"test:node": "vitest run --project node",
|
|
32
79
|
"test:screenshots": "sh test/screenshots/docker.sh",
|
|
80
|
+
"test:types": "tsc -p test/types",
|
|
81
|
+
"typecheck": "tsc -p tsconfig.json",
|
|
33
82
|
"prepare": "husky"
|
|
34
83
|
},
|
|
35
84
|
"files": [
|
|
36
85
|
"AUTHORS.md",
|
|
37
86
|
"CHANGELOG.md",
|
|
87
|
+
"dist/esm/",
|
|
38
88
|
"dist/paper-*.js",
|
|
39
|
-
"dist
|
|
40
|
-
"dist/node/*",
|
|
41
|
-
"dist/docs/**",
|
|
42
|
-
"examples/",
|
|
89
|
+
"dist/types/",
|
|
43
90
|
"LICENSE.txt",
|
|
91
|
+
"MIGRATION.md",
|
|
44
92
|
"README.md"
|
|
45
93
|
],
|
|
46
94
|
"engines": {
|
|
47
|
-
"node": ">=
|
|
48
|
-
},
|
|
49
|
-
"browser": {
|
|
50
|
-
"./dist/node/extend.js": "./dist/node/browser.js",
|
|
51
|
-
"./dist/node/self.js": "./dist/node/browser.js",
|
|
52
|
-
"canvas": false,
|
|
53
|
-
"jsdom": false,
|
|
54
|
-
"jsdom/lib/generated/idl/utils": false,
|
|
55
|
-
"jsdom/lib/jsdom/living/generated/utils": false,
|
|
56
|
-
"source-map-support": false
|
|
95
|
+
"node": ">=22.22.0"
|
|
57
96
|
},
|
|
58
97
|
"devDependencies": {
|
|
59
98
|
"@eslint/js": "^10.0.1",
|
|
99
|
+
"@napi-rs/canvas": "^1.2.1",
|
|
60
100
|
"@vitest/browser-playwright": "^5.0.5",
|
|
61
101
|
"@vitest/coverage-v8": "^5.0.5",
|
|
62
|
-
"acorn": "~0.5.0",
|
|
63
|
-
"acorn-latest": "npm:acorn@8.15.0",
|
|
64
|
-
"ansi-colors": "^4.1.3",
|
|
65
|
-
"canvas": "^3.2.3",
|
|
66
|
-
"del": "^5.1.0",
|
|
67
102
|
"eslint": "^10.13.0",
|
|
68
103
|
"eslint-config-prettier": "^10.1.8",
|
|
69
104
|
"eslint-plugin-prettier": "^5.5.7",
|
|
70
|
-
"fancy-log": "^1.3.3",
|
|
71
105
|
"globals": "^17.13.0",
|
|
72
|
-
"
|
|
73
|
-
"gulp-cached": "^1.1.1",
|
|
74
|
-
"gulp-git-streamed": "^2.10.1",
|
|
75
|
-
"gulp-jshint": "^2.1.0",
|
|
76
|
-
"gulp-json-modifier": "^1.0.0",
|
|
77
|
-
"gulp-prepro": "^2.4.0",
|
|
78
|
-
"gulp-rename": "^2.0.0",
|
|
79
|
-
"gulp-shell": "^0.8.0",
|
|
80
|
-
"gulp-symlink": "^2.1.4",
|
|
81
|
-
"gulp-uglify": "^3.0.2",
|
|
82
|
-
"gulp-uncomment": "^0.3.0",
|
|
83
|
-
"gulp-whitespace": "^0.1.0",
|
|
84
|
-
"gulp-zip": "^5.1.0",
|
|
106
|
+
"happy-dom": "^21.0.4",
|
|
85
107
|
"husky": "^9.1.7",
|
|
86
|
-
"
|
|
87
|
-
"jshint": "^2.13.6",
|
|
88
|
-
"jshint-summary": "^0.4.0",
|
|
89
|
-
"merge-stream": "^2.0.0",
|
|
90
|
-
"minimist": "^1.2.8",
|
|
91
|
-
"mustache": "^4.2.0",
|
|
108
|
+
"markdown-it": "^15.0.3",
|
|
92
109
|
"playwright": "^1.64.1",
|
|
93
|
-
"prepro": "^2.5.0",
|
|
94
110
|
"prettier": "^3.9.10",
|
|
95
|
-
"prettier-plugin-penere": "^0.
|
|
96
|
-
"require-dir": "^1.2.0",
|
|
111
|
+
"prettier-plugin-penere": "^0.6.1",
|
|
97
112
|
"resemblejs": "^3.2.5",
|
|
98
|
-
"
|
|
99
|
-
"source-map-support": "^0.5.21",
|
|
113
|
+
"rolldown": "1.2.14",
|
|
100
114
|
"stats.js": "^0.17.0",
|
|
101
|
-
"
|
|
115
|
+
"typedoc": "0.28.20",
|
|
102
116
|
"typescript": "^5.9.3",
|
|
117
|
+
"typescript-eslint": "^8.72.1",
|
|
103
118
|
"vitest": "^5.0.5"
|
|
104
119
|
},
|
|
105
120
|
"keywords": [
|
|
@@ -118,5 +133,20 @@
|
|
|
118
133
|
"paper",
|
|
119
134
|
"paper.js",
|
|
120
135
|
"paperjs"
|
|
121
|
-
]
|
|
136
|
+
],
|
|
137
|
+
"dependencies": {
|
|
138
|
+
"acorn": "~8.15.0"
|
|
139
|
+
},
|
|
140
|
+
"peerDependencies": {
|
|
141
|
+
"@napi-rs/canvas": "^1.2.1",
|
|
142
|
+
"happy-dom": "^21.0.4"
|
|
143
|
+
},
|
|
144
|
+
"peerDependenciesMeta": {
|
|
145
|
+
"@napi-rs/canvas": {
|
|
146
|
+
"optional": true
|
|
147
|
+
},
|
|
148
|
+
"happy-dom": {
|
|
149
|
+
"optional": true
|
|
150
|
+
}
|
|
151
|
+
}
|
|
122
152
|
}
|
|
@@ -1,414 +0,0 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
|
-
form,
|
|
3
|
-
img,
|
|
4
|
-
ul,
|
|
5
|
-
ol,
|
|
6
|
-
table,
|
|
7
|
-
td,
|
|
8
|
-
article,
|
|
9
|
-
figure,
|
|
10
|
-
figcaption {
|
|
11
|
-
margin: 0;
|
|
12
|
-
padding: 0;
|
|
13
|
-
border: 0; }
|
|
14
|
-
|
|
15
|
-
a {
|
|
16
|
-
outline: none;
|
|
17
|
-
border: 0; }
|
|
18
|
-
|
|
19
|
-
ul,
|
|
20
|
-
ol {
|
|
21
|
-
list-style: none outside none; }
|
|
22
|
-
|
|
23
|
-
table {
|
|
24
|
-
border-spacing: 0; }
|
|
25
|
-
|
|
26
|
-
td {
|
|
27
|
-
vertical-align: top; }
|
|
28
|
-
|
|
29
|
-
html {
|
|
30
|
-
-webkit-text-size-adjust: none; }
|
|
31
|
-
|
|
32
|
-
/* Content Styles */
|
|
33
|
-
article {
|
|
34
|
-
/* Text Content */ }
|
|
35
|
-
article,
|
|
36
|
-
article a {
|
|
37
|
-
color: #333333; }
|
|
38
|
-
article a {
|
|
39
|
-
border-bottom: 1px solid; }
|
|
40
|
-
article a:hover,
|
|
41
|
-
article a:hover em {
|
|
42
|
-
background: #e5e5e5; }
|
|
43
|
-
article em {
|
|
44
|
-
font-style: normal;
|
|
45
|
-
background: #efefef; }
|
|
46
|
-
article p,
|
|
47
|
-
article ul,
|
|
48
|
-
article ol {
|
|
49
|
-
margin: 0 8px 16px 0; }
|
|
50
|
-
article p.small,
|
|
51
|
-
article ul.small,
|
|
52
|
-
article ol.small {
|
|
53
|
-
margin-bottom: 8px; }
|
|
54
|
-
article figure,
|
|
55
|
-
article .CodeMirror,
|
|
56
|
-
article .paperscript {
|
|
57
|
-
margin-bottom: 16px; }
|
|
58
|
-
article ul,
|
|
59
|
-
article ol {
|
|
60
|
-
padding: 0;
|
|
61
|
-
list-style: none outside none; }
|
|
62
|
-
article ul ul,
|
|
63
|
-
article ul ol,
|
|
64
|
-
article ol ul,
|
|
65
|
-
article ol ol {
|
|
66
|
-
margin-bottom: 0; }
|
|
67
|
-
article ul > li {
|
|
68
|
-
margin-left: 1em;
|
|
69
|
-
position: relative; }
|
|
70
|
-
article ul > li:before {
|
|
71
|
-
content: '–';
|
|
72
|
-
position: absolute;
|
|
73
|
-
left: -1em; }
|
|
74
|
-
article ol {
|
|
75
|
-
counter-reset: item; }
|
|
76
|
-
article ol > li {
|
|
77
|
-
margin-left: 1.5em;
|
|
78
|
-
position: relative; }
|
|
79
|
-
article ol > li:before {
|
|
80
|
-
position: absolute;
|
|
81
|
-
left: -1.5em;
|
|
82
|
-
content: counter(item,upper-latin) ") ";
|
|
83
|
-
counter-increment: item; }
|
|
84
|
-
|
|
85
|
-
section {
|
|
86
|
-
clear: both;
|
|
87
|
-
margin: 0 0 16px;
|
|
88
|
-
padding: 0; }
|
|
89
|
-
|
|
90
|
-
.column {
|
|
91
|
-
width: 260px;
|
|
92
|
-
float: left; }
|
|
93
|
-
.column + .column {
|
|
94
|
-
margin-left: 16px; }
|
|
95
|
-
|
|
96
|
-
.row {
|
|
97
|
-
clear: both; }
|
|
98
|
-
|
|
99
|
-
.donation {
|
|
100
|
-
padding-bottom: 16px; }
|
|
101
|
-
.donation input,
|
|
102
|
-
.donation select {
|
|
103
|
-
margin-right: 0.35em; }
|
|
104
|
-
|
|
105
|
-
.reference h1,
|
|
106
|
-
.reference h2,
|
|
107
|
-
.reference h3,
|
|
108
|
-
.reference h4 {
|
|
109
|
-
font-size: 13px;
|
|
110
|
-
font-weight: normal;
|
|
111
|
-
margin: 0; }
|
|
112
|
-
.reference h1,
|
|
113
|
-
.reference h2,
|
|
114
|
-
.reference h3 {
|
|
115
|
-
height: 18px;
|
|
116
|
-
border-bottom: 1px solid;
|
|
117
|
-
margin-bottom: 16px; }
|
|
118
|
-
.reference h2 a {
|
|
119
|
-
font-weight: bold; }
|
|
120
|
-
.reference h3 {
|
|
121
|
-
margin-top: 16px;
|
|
122
|
-
border-bottom-style: dotted; }
|
|
123
|
-
.reference h4 {
|
|
124
|
-
font-weight: bold; }
|
|
125
|
-
.reference h4 .description {
|
|
126
|
-
font-weight: normal; }
|
|
127
|
-
.reference h4 .description:before {
|
|
128
|
-
content: ' — '; }
|
|
129
|
-
.reference h4 + ul, .reference h4 + pre, .reference h4 + .paperscript {
|
|
130
|
-
margin-top: 8px;
|
|
131
|
-
margin-bottom: 16px; }
|
|
132
|
-
.reference a tt {
|
|
133
|
-
line-height: 17px; }
|
|
134
|
-
.reference ul,
|
|
135
|
-
.reference p {
|
|
136
|
-
margin-bottom: 16px; }
|
|
137
|
-
.reference hr {
|
|
138
|
-
border: none;
|
|
139
|
-
border-bottom: 1px dotted; }
|
|
140
|
-
.reference .reference-list ul,
|
|
141
|
-
.reference .reference-inherited ul {
|
|
142
|
-
margin-left: 16px; }
|
|
143
|
-
.reference .reference-inherited ul li {
|
|
144
|
-
text-indent: -30px;
|
|
145
|
-
padding-left: 30px; }
|
|
146
|
-
.reference ul.reference-classes {
|
|
147
|
-
padding-bottom: 4px; }
|
|
148
|
-
.reference ul.reference-classes li {
|
|
149
|
-
margin: 0;
|
|
150
|
-
text-indent: 0; }
|
|
151
|
-
.reference ul.reference-classes ul {
|
|
152
|
-
margin: 0 0 10px 10px; }
|
|
153
|
-
.reference ul.reference-classes h2,
|
|
154
|
-
.reference ul.reference-classes h3,
|
|
155
|
-
.reference ul.reference-classes hr {
|
|
156
|
-
margin: 10px 0 10px 0; }
|
|
157
|
-
.reference ul.reference-classes .first h2 {
|
|
158
|
-
margin-top: 0; }
|
|
159
|
-
* html .reference ul.reference-classes img {
|
|
160
|
-
margin-top: 5px; }
|
|
161
|
-
.reference ul.member-list li {
|
|
162
|
-
margin-left: 2em;
|
|
163
|
-
margin-bottom: 8px;
|
|
164
|
-
text-indent: -2em; }
|
|
165
|
-
.reference ul.member-list li:before {
|
|
166
|
-
display: none; }
|
|
167
|
-
.reference .reference-members {
|
|
168
|
-
margin-bottom: 16px; }
|
|
169
|
-
.reference .member-group-text {
|
|
170
|
-
margin-bottom: 16px; }
|
|
171
|
-
.reference .member-description {
|
|
172
|
-
border: 1px solid #999;
|
|
173
|
-
border-top: 0;
|
|
174
|
-
margin: 16px 0 16px 0; }
|
|
175
|
-
.reference .member-header {
|
|
176
|
-
border-top: 1px solid #999;
|
|
177
|
-
padding: 10px;
|
|
178
|
-
*zoom: 1; }
|
|
179
|
-
.reference .member-header .member-link {
|
|
180
|
-
float: left; }
|
|
181
|
-
.reference .member-header .member-close {
|
|
182
|
-
float: right; }
|
|
183
|
-
.reference .member-header:before, .reference .member-header:after {
|
|
184
|
-
content: " ";
|
|
185
|
-
display: table; }
|
|
186
|
-
.reference .member-header:after {
|
|
187
|
-
clear: both; }
|
|
188
|
-
.reference .member-text {
|
|
189
|
-
border-top: 1px dashed #999;
|
|
190
|
-
padding: 10px 10px 0 10px;
|
|
191
|
-
margin-bottom: -6px; }
|
|
192
|
-
.reference .member-text ul ul,
|
|
193
|
-
.reference .member-text ul ol,
|
|
194
|
-
.reference .member-text ol ul,
|
|
195
|
-
.reference .member-text ol ol,
|
|
196
|
-
.reference .member-text ul p,
|
|
197
|
-
.reference .member-text ol p {
|
|
198
|
-
margin-bottom: 8px; }
|
|
199
|
-
.reference .member-link {
|
|
200
|
-
text-indent: -30px;
|
|
201
|
-
padding-left: 30px; }
|
|
202
|
-
|
|
203
|
-
body,
|
|
204
|
-
select,
|
|
205
|
-
input,
|
|
206
|
-
textarea {
|
|
207
|
-
font-family: "Lucida Grande", Geneva, Verdana, Arial, sans-serif; }
|
|
208
|
-
|
|
209
|
-
tt,
|
|
210
|
-
pre,
|
|
211
|
-
.CodeMirror {
|
|
212
|
-
font-family: Menlo, Consolas, "Vera Mono", monospace;
|
|
213
|
-
font-size: 12px;
|
|
214
|
-
line-height: 17px; }
|
|
215
|
-
|
|
216
|
-
body {
|
|
217
|
-
background: #fff;
|
|
218
|
-
margin: 16px;
|
|
219
|
-
font-size: 13px;
|
|
220
|
-
line-height: 20px;
|
|
221
|
-
color: #333333;
|
|
222
|
-
max-width: 540px; }
|
|
223
|
-
|
|
224
|
-
select,
|
|
225
|
-
input,
|
|
226
|
-
textarea {
|
|
227
|
-
font-size: 11px;
|
|
228
|
-
margin: 0;
|
|
229
|
-
color: #000; }
|
|
230
|
-
|
|
231
|
-
a {
|
|
232
|
-
color: #333333;
|
|
233
|
-
text-decoration: none;
|
|
234
|
-
border-bottom: 1px solid #333333; }
|
|
235
|
-
a:hover {
|
|
236
|
-
background: #e5e5e5; }
|
|
237
|
-
|
|
238
|
-
img {
|
|
239
|
-
border: 0; }
|
|
240
|
-
|
|
241
|
-
p {
|
|
242
|
-
margin: 0 0 16px 0; }
|
|
243
|
-
|
|
244
|
-
ul,
|
|
245
|
-
ol {
|
|
246
|
-
padding: 0;
|
|
247
|
-
margin: 0 0 16px 0;
|
|
248
|
-
list-style: none; }
|
|
249
|
-
|
|
250
|
-
.clear {
|
|
251
|
-
clear: both; }
|
|
252
|
-
|
|
253
|
-
.hidden {
|
|
254
|
-
display: none; }
|
|
255
|
-
|
|
256
|
-
.reference-index,
|
|
257
|
-
.reference-index a {
|
|
258
|
-
color: #009dec;
|
|
259
|
-
border-bottom: 0px; }
|
|
260
|
-
.reference-index a:hover {
|
|
261
|
-
background: #e3f4fc; }
|
|
262
|
-
.reference-index h2,
|
|
263
|
-
.reference-index h3,
|
|
264
|
-
.reference-index hr {
|
|
265
|
-
border-color: #009dec; }
|
|
266
|
-
|
|
267
|
-
.reference h1 {
|
|
268
|
-
font-size: 18px;
|
|
269
|
-
font-weight: normal;
|
|
270
|
-
line-height: 24px;
|
|
271
|
-
border: none; }
|
|
272
|
-
.reference h1 .version {
|
|
273
|
-
font-size: 10px;
|
|
274
|
-
line-height: 16px;
|
|
275
|
-
vertical-align: top;
|
|
276
|
-
margin-left: 0.35em; }
|
|
277
|
-
|
|
278
|
-
.footer {
|
|
279
|
-
margin-top: 16px; }
|
|
280
|
-
|
|
281
|
-
.CodeMirror pre {
|
|
282
|
-
margin: 0;
|
|
283
|
-
padding: 0;
|
|
284
|
-
background: transparent; }
|
|
285
|
-
.paperscript .CodeMirror {
|
|
286
|
-
height: 100%; }
|
|
287
|
-
|
|
288
|
-
.CodeMirror-scroll {
|
|
289
|
-
min-height: 100%;
|
|
290
|
-
overflow: auto; }
|
|
291
|
-
|
|
292
|
-
.CodeMirror-gutter {
|
|
293
|
-
position: absolute;
|
|
294
|
-
left: 0;
|
|
295
|
-
top: 0;
|
|
296
|
-
min-width: 30px;
|
|
297
|
-
height: 100%;
|
|
298
|
-
background-color: #f4f4f4;
|
|
299
|
-
border-right: 1px solid #999; }
|
|
300
|
-
|
|
301
|
-
.CodeMirror-gutter-text {
|
|
302
|
-
color: #aaa;
|
|
303
|
-
text-align: right;
|
|
304
|
-
padding: 2px 8px 2px 8px; }
|
|
305
|
-
.CodeMirror-gutter-text pre {
|
|
306
|
-
font-size: 10px; }
|
|
307
|
-
|
|
308
|
-
.CodeMirror-lines {
|
|
309
|
-
background: #ffffff;
|
|
310
|
-
padding: 2px 0 2px 8px; }
|
|
311
|
-
.CodeMirror-lines pre.highlight {
|
|
312
|
-
background-color: #edf5fc; }
|
|
313
|
-
|
|
314
|
-
.CodeMirror-cursor {
|
|
315
|
-
z-index: 10;
|
|
316
|
-
position: absolute;
|
|
317
|
-
visibility: hidden;
|
|
318
|
-
border-left: 1px solid #7c7c7c !important;
|
|
319
|
-
height: 17px; }
|
|
320
|
-
|
|
321
|
-
.CodeMirror-selected {
|
|
322
|
-
background: #ccc !important;
|
|
323
|
-
color: HighlightText !important;
|
|
324
|
-
padding: 2px 0 2px 0; }
|
|
325
|
-
|
|
326
|
-
.CodeMirror-focused .CodeMirror-cursor {
|
|
327
|
-
visibility: visible; }
|
|
328
|
-
.CodeMirror-focused .CodeMirror-selected {
|
|
329
|
-
background: Highlight !important; }
|
|
330
|
-
|
|
331
|
-
.CodeMirror-matchingbracket {
|
|
332
|
-
background: #e3fc8d !important; }
|
|
333
|
-
|
|
334
|
-
.CodeMirror-nonmatchingbracket {
|
|
335
|
-
color: #d62a28 !important; }
|
|
336
|
-
|
|
337
|
-
/* JavaScript & HTML Modes */
|
|
338
|
-
span.cm-keyword {
|
|
339
|
-
color: #ff7800; }
|
|
340
|
-
span.cm-atom, span.cm-number {
|
|
341
|
-
color: #3b5bb5; }
|
|
342
|
-
span.cm-def, span.cm-variable-2, span.cm-variable-3 {
|
|
343
|
-
color: #3a4a64; }
|
|
344
|
-
span.cm-variable {
|
|
345
|
-
color: #000; }
|
|
346
|
-
span.cm-property {
|
|
347
|
-
color: #000; }
|
|
348
|
-
span.cm-operator {
|
|
349
|
-
color: #000; }
|
|
350
|
-
span.cm-comment {
|
|
351
|
-
color: #8c868f; }
|
|
352
|
-
span.cm-string {
|
|
353
|
-
color: #409b1c; }
|
|
354
|
-
span.cm-meta {
|
|
355
|
-
color: #555; }
|
|
356
|
-
span.cm-error {
|
|
357
|
-
color: #f30; }
|
|
358
|
-
span.cm-qualifier {
|
|
359
|
-
color: #555; }
|
|
360
|
-
span.cm-builtin {
|
|
361
|
-
color: #30a; }
|
|
362
|
-
span.cm-bracket {
|
|
363
|
-
color: #cc7; }
|
|
364
|
-
span.cm-tag {
|
|
365
|
-
font-weight: bold;
|
|
366
|
-
color: #3b5bb5; }
|
|
367
|
-
span.cm-attribute {
|
|
368
|
-
font-style: italic;
|
|
369
|
-
color: #3b5bb5; }
|
|
370
|
-
|
|
371
|
-
.paperscript {
|
|
372
|
-
position: relative; }
|
|
373
|
-
.paperscript .buttons {
|
|
374
|
-
position: absolute;
|
|
375
|
-
right: 0;
|
|
376
|
-
z-index: 1; }
|
|
377
|
-
.paperscript .button,
|
|
378
|
-
.paperscript .explain {
|
|
379
|
-
float: right;
|
|
380
|
-
display: none;
|
|
381
|
-
font-size: 12px;
|
|
382
|
-
line-height: 16px;
|
|
383
|
-
padding: 2px 6px;
|
|
384
|
-
border-radius: 4px;
|
|
385
|
-
-moz-border-radius: 4px;
|
|
386
|
-
-webkit-border-radius: 4px;
|
|
387
|
-
margin: 8px 8px 0 0; }
|
|
388
|
-
.paperscript .button {
|
|
389
|
-
background: #eee; }
|
|
390
|
-
.paperscript .explain {
|
|
391
|
-
background: #e3f4fc; }
|
|
392
|
-
.paperscript .explain, .paperscript:hover .button {
|
|
393
|
-
display: inline-block; }
|
|
394
|
-
.paperscript .button:hover {
|
|
395
|
-
background: #ddd;
|
|
396
|
-
cursor: pointer; }
|
|
397
|
-
.paperscript .tools {
|
|
398
|
-
display: inline; }
|
|
399
|
-
.paperscript .source {
|
|
400
|
-
overflow: auto;
|
|
401
|
-
border: 1px solid #999; }
|
|
402
|
-
.paperscript .CodeMirror {
|
|
403
|
-
margin: 0 !important; }
|
|
404
|
-
.paperscript .CodeMirror-gutter-text,
|
|
405
|
-
.paperscript .CodeMirror-lines {
|
|
406
|
-
padding-top: 8px;
|
|
407
|
-
padding-bottom: 8px; }
|
|
408
|
-
.paperscript .canvas {
|
|
409
|
-
line-height: 0; }
|
|
410
|
-
.paperscript .canvas.border canvas {
|
|
411
|
-
border: 1px solid #999; }
|
|
412
|
-
.paperscript.split .canvas {
|
|
413
|
-
border: 1px solid #999;
|
|
414
|
-
border-top: 0; }
|