Skip to content

Commit

Permalink
fix(demo): make demo page use jsdeliver
Browse files Browse the repository at this point in the history
  • Loading branch information
MD4 committed Dec 2, 2020
1 parent 5958581 commit 22036b8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
background: #fff;
}
</style>
<script type="text/javascript" src="../dist/index.umd.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/shadowed"></script>
<script>
const segments = [
{ a: { x: 100, y: 150 }, b: { x: 120, y: 50 } },
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

`Const`**computeShadows**(`bounds`: [Bounds](interfaces/bounds.md), `walls`: [Segment2](interfaces/segment2.md)[], `light`: [Vec2](interfaces/vec2.md)): [Vec2](interfaces/vec2.md)[][]

*Defined in [computeShadows.ts:39](https://github.com/MD4/shadowed/blob/45d1da1/src/computeShadows.ts#L39)*
*Defined in [computeShadows.ts:39](https://github.com/MD4/shadowed/blob/5958581/src/computeShadows.ts#L39)*

Computes casted shadows by a light for a given set of walls within specified bounds.

Expand Down
4 changes: 2 additions & 2 deletions docs/interfaces/bounds.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@

**bottomRight**: [Vec2](vec2.md)

*Defined in [entities.ts:8](https://github.com/MD4/shadowed/blob/45d1da1/src/entities.ts#L8)*
*Defined in [entities.ts:8](https://github.com/MD4/shadowed/blob/5958581/src/entities.ts#L8)*

___

### topLeft

**topLeft**: [Vec2](vec2.md)

*Defined in [entities.ts:7](https://github.com/MD4/shadowed/blob/45d1da1/src/entities.ts#L7)*
*Defined in [entities.ts:7](https://github.com/MD4/shadowed/blob/5958581/src/entities.ts#L7)*
4 changes: 2 additions & 2 deletions docs/interfaces/segment2.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@

**a**: [Vec2](vec2.md)

*Defined in [entities.ts:12](https://github.com/MD4/shadowed/blob/45d1da1/src/entities.ts#L12)*
*Defined in [entities.ts:12](https://github.com/MD4/shadowed/blob/5958581/src/entities.ts#L12)*

___

### b

**b**: [Vec2](vec2.md)

*Defined in [entities.ts:13](https://github.com/MD4/shadowed/blob/45d1da1/src/entities.ts#L13)*
*Defined in [entities.ts:13](https://github.com/MD4/shadowed/blob/5958581/src/entities.ts#L13)*
4 changes: 2 additions & 2 deletions docs/interfaces/vec2.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@

**x**: number

*Defined in [entities.ts:2](https://github.com/MD4/shadowed/blob/45d1da1/src/entities.ts#L2)*
*Defined in [entities.ts:2](https://github.com/MD4/shadowed/blob/5958581/src/entities.ts#L2)*

___

### y

**y**: number

*Defined in [entities.ts:3](https://github.com/MD4/shadowed/blob/45d1da1/src/entities.ts#L3)*
*Defined in [entities.ts:3](https://github.com/MD4/shadowed/blob/5958581/src/entities.ts#L3)*

0 comments on commit 22036b8

Please sign in to comment.