From 0a345d4c2b83b471c5f21e1afaba3d3fcebd7237 Mon Sep 17 00:00:00 2001 From: Jacek Jan Pietal Date: Mon, 8 Aug 2022 00:38:37 +0200 Subject: [PATCH] chore: regen docs --- dist/system.d.ts | 1 - dist/system.d.ts.map | 2 +- dist/system.js.map | 2 +- docs/classes/Box.html | 62 ++++++++++----------- docs/classes/Circle.html | 38 ++++++------- docs/classes/Ellipse.html | 68 ++++++++++++------------ docs/classes/Line.html | 56 +++++++++---------- docs/classes/Point.html | 58 ++++++++++---------- docs/classes/Polygon.html | 50 ++++++++--------- docs/classes/System.html | 42 +++++++-------- docs/enums/Types.html | 14 ++--- docs/functions/clockwise.html | 2 +- docs/functions/createBox.html | 2 +- docs/functions/createEllipse.html | 2 +- docs/functions/dashLineTo.html | 2 +- docs/functions/distance.html | 2 +- docs/functions/ensureConvexPolygons.html | 2 +- docs/functions/ensurePolygonPoints.html | 2 +- docs/functions/ensureVectorPoint.html | 2 +- docs/functions/extendBody.html | 2 +- docs/functions/getBounceDirection.html | 2 +- docs/functions/intersectLineCircle.html | 2 +- docs/functions/intersectLineLine.html | 2 +- docs/functions/intersectLinePolygon.html | 2 +- docs/functions/mapArrayToVector.html | 2 +- docs/functions/mapVectorToArray.html | 2 +- docs/functions/updateAABB.html | 2 +- docs/index.html | 2 +- docs/interfaces/BodyOptions.html | 12 ++--- docs/interfaces/Collider.html | 18 +++---- docs/interfaces/Data.html | 4 +- docs/interfaces/GetAABBAsBox.html | 4 +- docs/interfaces/PotentialVector.html | 6 +-- docs/interfaces/Vector.html | 6 +-- docs/types/Body.html | 2 +- docs/types/RaycastResult.html | 2 +- 36 files changed, 240 insertions(+), 241 deletions(-) diff --git a/dist/system.d.ts b/dist/system.d.ts index f4f8a81d..043a6282 100644 --- a/dist/system.d.ts +++ b/dist/system.d.ts @@ -1,4 +1,3 @@ -/// import RBush from "rbush"; import { BaseSystem } from "./base-system"; import { Body, Data, RaycastResult, Response, Vector } from "./model"; diff --git a/dist/system.d.ts.map b/dist/system.d.ts.map index 901e41fc..7b57311e 100644 --- a/dist/system.d.ts.map +++ b/dist/system.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../src/system.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAS,MAAM,EAAE,MAAM,SAAS,CAAC;AAQ7E;;GAEG;AACH,qBAAa,MAAO,SAAQ,UAAW,YAAW,IAAI;IACpD,QAAQ,EAAE,QAAQ,CAAkB;IAEpC;;OAEG;IACH,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;IAoB5B;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,KAAK,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC;IAMvE;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;IAM/B;;OAEG;IACH,MAAM,IAAI,IAAI;IASd;;OAEG;IACH,QAAQ,IAAI,IAAI;IAchB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,GAAG,IAAI;IAalE;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,GAAG,IAAI;IAMtD;;OAEG;IACH,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE;IAKjC;;OAEG;IACH,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,GAAG,OAAO;IAwCpD;;OAEG;IACH,OAAO,CACL,KAAK,EAAE,MAAM,EACb,GAAG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M,EACb,GAAG,EAAE,MAAM,EACX,aAAa,GAAE,CAAC,YAAY,EAAE,IAAI,KAAK,OAAoB,GAC1D,aAAa;CA8BjB"} \ No newline at end of file diff --git a/dist/system.js.map b/dist/system.js.map index 5ff96e0d..7f4e11d8 100644 --- a/dist/system.js.map +++ b/dist/system.js.map @@ -1 +1 @@ -{"version":3,"file":"system.js","sourceRoot":"","sources":["../src/system.ts"],"names":[],"mappings":";;;AACA,6BAOa;AAEb,+CAA2C;AAE3C,mCAA6E;AAC7E,mCAKiB;AAEjB;;GAEG;AACH,MAAa,MAAO,SAAQ,wBAAU;IAAtC;;QACE,aAAQ,GAAa,IAAI,gBAAQ,EAAE,CAAC;IAyLtC,CAAC;IAvLC;;OAEG;IACH,UAAU,CAAC,IAAU;QACnB,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;QACpC,MAAM,MAAM,GACV,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI;YACvB,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI;YACvB,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI;YACvB,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QAE1B,IAAI,CAAC,MAAM,EAAE;YACX,OAAO;SACR;QAED,+BAA+B;QAC/B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAClB,sBAAsB;QACtB,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACxB,0CAA0C;QAC1C,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAU,EAAE,MAAsC;QACvD,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;QAExB,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACpC,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAU;QACf,IAAI,CAAC,MAAM,GAAG,IA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AAK,EAAE,KAAK,CAAC,CAAC;gBAErD,IAAI,aAAa,GAAG,WAAW,EAAE;oBAC/B,WAAW,GAAG,aAAa,CAAC;oBAC5B,MAAM,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;iBAC9B;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AA1LD,wBA0LC"} \ No newline at end of file diff --git a/docs/classes/Box.html b/docs/classes/Box.html index d996cd2f..931060cb 100644 --- a/docs/classes/Box.html +++ b/docs/classes/Box.html @@ -25,7 +25,7 @@

Hierarchy

+
  • Defined in src/bodies/box.ts:8
  • @@ -108,19 +108,19 @@
    Optional options: Returns Box
    +
  • Defined in src/bodies/box.ts:20
  • Properties

    _height: number
    +
  • Defined in src/bodies/box.ts:12
  • _width: number
    +
  • Defined in src/bodies/box.ts:11
  • angle: number
    +
  • Defined in src/bodies/polygon.ts:44
  • edges: SATVector[]
    +
  • Defined in src/bodies/polygon.ts:39
  • isStatic?: boolean
    @@ -162,7 +162,7 @@
    +
  • Defined in src/bodies/polygon.ts:54
  • isTrigger?: boolean
    @@ -170,19 +170,19 @@
    +
  • Defined in src/bodies/polygon.ts:59
  • maxX: number
    +
  • Defined in src/bodies/polygon.ts:32
  • maxY: number
    +
  • Defined in src/bodies/polygon.ts:34
  • minX: number
    @@ -190,13 +190,13 @@
    +
  • Defined in src/bodies/polygon.ts:31
  • minY: number
    +
  • Defined in src/bodies/polygon.ts:33
  • normals: SATVector[]
    +
  • Defined in src/bodies/polygon.ts:49
  • points: SATVector[]
    +
  • Defined in src/bodies/polygon.ts:64
  • type: Box | Point = Types.Box
    +
  • Defined in src/bodies/box.ts:9
  • Accessors

    @@ -254,7 +254,7 @@ +
  • Defined in src/bodies/box.ts:51
  • set height(height: number): void
  • set box height, update points

    @@ -266,7 +266,7 @@

    Parameters

    height: number
  • Returns void

    +
  • Defined in src/bodies/box.ts:58
  • set width(width: number): void
  • set box width, update points

    @@ -288,7 +288,7 @@

    Parameters

    width: number
  • Returns void

    +
  • Defined in src/bodies/box.ts:42
  • set x(x: number): void
  • updating this.pos.x by this.x = x updates AABB

    @@ -310,7 +310,7 @@
    x: number
  • Returns void

    +
  • Defined in src/bodies/polygon.ts:108
  • set y(y: number): void
  • updating this.pos.y by this.y = y updates AABB

    @@ -332,7 +332,7 @@
    y: number
  • Returns void

    +
  • Defined in src/bodies/polygon.ts:121
  • Methods

    @@ -345,7 +345,7 @@
    +
  • Defined in src/bodies/polygon.ts:226
    • @@ -363,7 +363,7 @@
      context: CanvasRenderingContext2DReturns void
    +
  • Defined in src/bodies/polygon.ts:180
  • +
  • Defined in src/bodies/polygon.ts:158
  • +
  • Defined in src/bodies/polygon.ts:209
  • +
  • Defined in src/bodies/polygon.ts:127
    • @@ -484,7 +484,7 @@
      y: number

    Returns void

    +
  • Defined in src/bodies/polygon.ts:148
  • +
  • Defined in src/bodies/polygon.ts:172
  • +
  • Defined in src/bodies/polygon.ts:133
  • Returns void

    +
  • Defined in src/bodies/circle.ts:84
  • Methods

    @@ -229,7 +229,7 @@
    context: CanvasRenderingContext2DReturns void
    +
  • Defined in src/bodies/circle.ts:125
  • +
  • Defined in src/bodies/circle.ts:105
    • @@ -257,7 +257,7 @@
      x: number
      y: number

    Returns void

    +
  • Defined in src/bodies/circle.ts:95
  • +
  • Defined in src/bodies/circle.ts:117
  • Returns void

    +
  • Defined in src/bodies/ellipse.ts:78
  • set step(step: number): void
  • set ellipse step number

    @@ -321,7 +321,7 @@

    Parameters

    step: number
  • Returns void

    +
  • Defined in src/bodies/ellipse.ts:46
  • set x(x: number): void
  • updating this.pos.x by this.x = x updates AABB

    @@ -343,7 +343,7 @@
    x: number
  • Returns void

    +
  • Defined in src/bodies/polygon.ts:108
  • set y(y: number): void
  • updating this.pos.y by this.y = y updates AABB

    @@ -365,7 +365,7 @@
    y: number
  • Returns void

    +
  • Defined in src/bodies/polygon.ts:121
  • Methods

    @@ -378,7 +378,7 @@
    +
  • Defined in src/bodies/polygon.ts:226
    • @@ -396,7 +396,7 @@
      context: CanvasRenderingContext2DReturns void
    +
  • Defined in src/bodies/polygon.ts:180
  • +
  • Defined in src/bodies/polygon.ts:158
  • +
  • Defined in src/bodies/polygon.ts:209
  • +
  • Defined in src/bodies/polygon.ts:127
    • @@ -517,7 +517,7 @@
      y: number

    Returns void

    +
  • Defined in src/bodies/polygon.ts:148
  • +
  • Defined in src/bodies/polygon.ts:172
  • +
  • Defined in src/bodies/polygon.ts:133
  • Returns void

    +
  • Defined in src/bodies/polygon.ts:121
  • Methods

    @@ -303,7 +303,7 @@
    +
  • Defined in src/bodies/polygon.ts:226
    • @@ -321,7 +321,7 @@
      context: CanvasRenderingContext2DReturns void
    +
  • Defined in src/bodies/polygon.ts:180
  • +
  • Defined in src/bodies/polygon.ts:158
  • +
  • Defined in src/bodies/line.ts:48
  • +
  • Defined in src/bodies/polygon.ts:209
  • +
  • Defined in src/bodies/polygon.ts:127
    • @@ -442,7 +442,7 @@
      y: number

    Returns void

    +
  • Defined in src/bodies/polygon.ts:148
  • +
  • Defined in src/bodies/polygon.ts:172
  • +
  • Defined in src/bodies/polygon.ts:133
  • Returns void

    +
  • Defined in src/bodies/box.ts:42
  • set x(x: number): void
  • updating this.pos.x by this.x = x updates AABB

    @@ -296,7 +296,7 @@
    x: number
  • Returns void

    +
  • Defined in src/bodies/polygon.ts:108
  • set y(y: number): void
  • updating this.pos.y by this.y = y updates AABB

    @@ -318,7 +318,7 @@
    y: number
  • Returns void

    +
  • Defined in src/bodies/polygon.ts:121
  • Methods

    @@ -331,7 +331,7 @@
    +
  • Defined in src/bodies/polygon.ts:226
    • @@ -349,7 +349,7 @@
      context: CanvasRenderingContext2DReturns void
    +
  • Defined in src/bodies/polygon.ts:180
  • +
  • Defined in src/bodies/polygon.ts:158
  • +
  • Defined in src/bodies/polygon.ts:209
  • +
  • Defined in src/bodies/polygon.ts:127
    • @@ -470,7 +470,7 @@
      y: number

    Returns void

    +
  • Defined in src/bodies/polygon.ts:148
  • +
  • Defined in src/bodies/polygon.ts:172
  • +
  • Defined in src/bodies/polygon.ts:133
  • +
  • Defined in src/bodies/polygon.ts:39
  • isStatic?: boolean
    @@ -152,7 +152,7 @@
    +
  • Defined in src/bodies/polygon.ts:54
  • isTrigger?: boolean
    @@ -160,19 +160,19 @@
    +
  • Defined in src/bodies/polygon.ts:59
  • maxX: number
    +
  • Defined in src/bodies/polygon.ts:32
  • maxY: number
    +
  • Defined in src/bodies/polygon.ts:34
  • minX: number
    @@ -180,13 +180,13 @@
    +
  • Defined in src/bodies/polygon.ts:31
  • minY: number
    +
  • Defined in src/bodies/polygon.ts:33
  • normals: SATVector[]
    +
  • Defined in src/bodies/polygon.ts:49
  • points: SATVector[]
    +
  • Defined in src/bodies/polygon.ts:64
  • type: Ellipse | Line | Box | Point | Polygon = Types.Polygon
    +
  • Defined in src/bodies/polygon.ts:66
  • Accessors

    @@ -242,7 +242,7 @@

    Returns void

    +
  • Defined in src/bodies/polygon.ts:108
  • set y(y: number): void
  • updating this.pos.y by this.y = y updates AABB

    @@ -274,7 +274,7 @@

    Parameters

    y: number
  • Returns void

    +
  • Defined in src/bodies/polygon.ts:121
  • Methods

    @@ -286,7 +286,7 @@
    +
  • Defined in src/bodies/polygon.ts:226
    • @@ -304,7 +304,7 @@
      context: CanvasRenderingContext2DReturns void
    +
  • Defined in src/bodies/polygon.ts:180
  • +
  • Defined in src/bodies/polygon.ts:158
  • +
  • Defined in src/bodies/polygon.ts:209
  • +
  • Defined in src/bodies/polygon.ts:127
    • @@ -422,7 +422,7 @@
      x: number
      y: number

    Returns void

    +
  • Defined in src/bodies/polygon.ts:148
  • +
  • Defined in src/bodies/polygon.ts:172
  • +
  • Defined in src/bodies/polygon.ts:133
  • Returns boolean

    +
  • Defined in src/system.ts:132
  • Returns void

    +
  • Defined in src/system.ts:99
  • +
  • Defined in src/base-system.ts:83
  • +
  • Defined in src/base-system.ts:68
  • +
  • Defined in src/base-system.ts:99
  • +
  • Defined in src/base-system.ts:57
  • +
  • Defined in src/base-system.ts:46
  • +
  • Defined in src/base-system.ts:116
    • @@ -433,7 +433,7 @@
      context: CanvasRenderingContext2DReturns void
    +
  • Defined in src/base-system.ts:19
    • @@ -449,7 +449,7 @@
      context: CanvasRenderingContext2DReturns void
    +
  • Defined in src/base-system.ts:28
    • @@ -489,7 +489,7 @@

      Parameters

      body: Body

    Returns Body[]

    +
  • Defined in src/system.ts:124
  • +
  • Defined in src/system.ts:61
  • Returns RaycastResult

    +
  • Defined in src/system.ts:175
  • +
  • Defined in src/system.ts:52
  • +
  • Defined in src/system.ts:82
  • +
  • Defined in src/system.ts:70
    • @@ -689,7 +689,7 @@

      Parameters

      body: Body

    Returns void

    +
  • Defined in src/system.ts:29
  • +
  • Defined in src/model.ts:23
  • +
  • Defined in src/utils.ts:70
  • +
  • Defined in src/utils.ts:29
  • +
  • Defined in src/utils.ts:9
  • +
  • Defined in src/utils.ts:114
  • +
  • Defined in src/utils.ts:63
  • +
  • Defined in src/utils.ts:244
  • +
  • Defined in src/utils.ts:50
  • +
  • Defined in src/utils.ts:41
  • +
  • Defined in src/utils.ts:86
  • +
  • Defined in src/utils.ts:257
  • +
  • Defined in src/utils.ts:147
  • +
  • Defined in src/utils.ts:179
  • +
  • Defined in src/utils.ts:211
  • +
  • Defined in src/utils.ts:237
  • +
  • Defined in src/utils.ts:230
  • +
  • Defined in src/utils.ts:104
  • +
  • Defined in src/model.ts:38
  • Returns void

    +
  • Defined in src/model.ts:106
  • +
  • Defined in src/model.ts:116
  • +
  • Defined in src/model.ts:111
  • +
  • Defined in src/model.ts:30
  • +
  • Defined in src/model.ts:59
  • +
  • Defined in src/model.ts:72
  • +
  • Defined in src/model.ts:44