Skip to content

Commit

Permalink
closes #6, removes the version and the logger from each instance
Browse files Browse the repository at this point in the history
  • Loading branch information
doubleactii committed Dec 3, 2024
1 parent 2728b61 commit f491ed5
Show file tree
Hide file tree
Showing 14 changed files with 6,465 additions and 6,840 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file modified bun.lockb
100644 → 100755
Binary file not shown.
12,960 changes: 6,295 additions & 6,665 deletions docs/ast/source/icon-point.mjs.json

Large diffs are not rendered by default.

222 changes: 111 additions & 111 deletions docs/class/es/icon-point.mjs~IconPoint.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/class/es/icon-point.mjs~e.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
<script src="script/prettify/prettify.js"></script>
<script src="script/manual.js"></script>
<meta name="description" content="A class that manager a point that exists inside/outside a virtual rectangle. The point&apos;s position inside/outside of the rectangle is maintained when the rectangle is rotated."><meta property="twitter:card" content="summary"><meta property="twitter:title" content="IconPoint"><meta property="twitter:description" content="A class that manager a point that exists inside/outside a virtual rectangle. The point&apos;s position inside/outside of the rectangle is maintained when the rectangle is rotated."><meta property="twitter:image" content="./evitcastudio_round_branding.png"></head>
<meta name="description" content="A class that manages a point that exists inside/outside a virtual rectangle. The point&apos;s position inside/outside of the rectangle is maintained when the rectangle is rotated."><meta property="twitter:card" content="summary"><meta property="twitter:title" content="IconPoint"><meta property="twitter:description" content="A class that manages a point that exists inside/outside a virtual rectangle. The point&apos;s position inside/outside of the rectangle is maintained when the rectangle is rotated."><meta property="twitter:image" content="./evitcastudio_round_branding.png"></head>
<body class="layout-container" data-ice="rootContainer">

<header>
Expand Down
20 changes: 7 additions & 13 deletions docs/file/es/icon-point.mjs.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,12 @@
<div class="content" data-ice="content"><h1 data-ice="title">es/icon-point.mjs</h1>
<pre class="source-code line-number raw-source-code"><code class="prettyprint linenums" data-ice="content">/*!
* icon-point@1.1.0 https://github.com/EvitcaStudio/IconPoint
* Compiled Mon, 18 Nov 2024 12:47:20 UTC
* Compiled Tue, 03 Dec 2024 02:09:23 UTC
*
* icon-point is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license
*/
/**
* logger@1.0.0 git+https://github.com/EvitcaStudio/Logger
* Compiled 1/9/2024, 7:19:18 AM UTC
*
* logger is licensed under a MIT styled License. See LICENSE.md for more info.
*
* Copyright 2024, Evitca Studio, All Rights Reserved
*/

/**
* The IconPoint class
* A point that exists inside/outside a virtual rectangle. The point&apos;s position inside/outside of the rectangle is maintained when the rectangle is rotated.
Expand All @@ -75,12 +68,15 @@
/**
* The version of the module.
*/
version = &quot;1.1.0&quot;;
static version = &quot;1.1.0&quot;;
/** The logger module this module uses to log errors / logs
* @private
* @type {Logger}
*/
logger;
static logger = new i({
type: &apos;Icon-Point-Module&apos;,
ansi: &apos;#ff6600&apos;
});
/**
* An object storing the position of the point that was set. This is the point on the rectangle.
* It can be changed at runtime.
Expand Down Expand Up @@ -141,8 +137,6 @@
this.bounds.height = height;
this.positionalPoint = pPoint;
this.setPoint(pIconPoint);
this.logger = new i();
this.logger.registerType(&apos;Icon-Point-Module&apos;, &apos;#ff6600&apos;);
}
/**
* Gets the new point&apos;s position inside a rectangle after taking pAngle into account.
Expand Down
56 changes: 28 additions & 28 deletions docs/index.json

Large diffs are not rendered by default.

Empty file modified docs/script/prettify/prettify.js
100644 → 100755
Empty file.
24 changes: 12 additions & 12 deletions docs/script/search_index.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,6 @@ window.esdocSearchIndex = [
"es/icon-point.mjs~IconPoint#iconPoint",
"member"
],
[
"es/icon-point.mjs~iconpoint#logger",
"class/es/icon-point.mjs~IconPoint.html#instance-member-logger",
"es/icon-point.mjs~IconPoint#logger",
"member"
],
[
"es/icon-point.mjs~iconpoint#point",
"class/es/icon-point.mjs~IconPoint.html#instance-member-point",
Expand Down Expand Up @@ -353,12 +347,6 @@ window.esdocSearchIndex = [
"es/icon-point.mjs~IconPoint#updatePoint",
"method"
],
[
"es/icon-point.mjs~iconpoint#version",
"class/es/icon-point.mjs~IconPoint.html#instance-member-version",
"es/icon-point.mjs~IconPoint#version",
"member"
],
[
"es/icon-point.mjs~iconpoint.defaultanchor",
"class/es/icon-point.mjs~IconPoint.html#static-member-defaultAnchor",
Expand All @@ -370,5 +358,17 @@ window.esdocSearchIndex = [
"class/es/icon-point.mjs~IconPoint.html#static-member-defaultOffset",
"es/icon-point.mjs~IconPoint.defaultOffset",
"member"
],
[
"es/icon-point.mjs~iconpoint.logger",
"class/es/icon-point.mjs~IconPoint.html#static-member-logger",
"es/icon-point.mjs~IconPoint.logger",
"member"
],
[
"es/icon-point.mjs~iconpoint.version",
"class/es/icon-point.mjs~IconPoint.html#static-member-version",
"es/icon-point.mjs~IconPoint.version",
"member"
]
]
6 changes: 3 additions & 3 deletions docs/source.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
<td data-ice="filePath"><span><a href="file/es/icon-point.mjs.html">es/icon-point.mjs</a></span></td>
<td data-ice="identifier" class="identifiers"><span><a href="class/es/icon-point.mjs~IconPoint.html">IconPoint</a></span></td>
<td class="coverage"><span data-ice="coverage">-</span></td>
<td style="display: none;" data-ice="size">9930 byte</td>
<td style="display: none;" data-ice="lines">209</td>
<td style="display: none;" data-ice="updated">2024-11-02 12:56:47 (UTC)</td>
<td style="display: none;" data-ice="size">9678 byte</td>
<td style="display: none;" data-ice="lines">203</td>
<td style="display: none;" data-ice="updated">2024-12-03 02:09:37 (UTC)</td>
</tr>
</tbody>
</table>
Expand Down
2 changes: 1 addition & 1 deletion docs/variable/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
<script src="script/prettify/prettify.js"></script>
<script src="script/manual.js"></script>
<meta name="description" content="A class that manager a point that exists inside/outside a virtual rectangle. The point&apos;s position inside/outside of the rectangle is maintained when the rectangle is rotated."><meta property="twitter:card" content="summary"><meta property="twitter:title" content="IconPoint"><meta property="twitter:description" content="A class that manager a point that exists inside/outside a virtual rectangle. The point&apos;s position inside/outside of the rectangle is maintained when the rectangle is rotated."><meta property="twitter:image" content="./evitcastudio_round_branding.png"></head>
<meta name="description" content="A class that manages a point that exists inside/outside a virtual rectangle. The point&apos;s position inside/outside of the rectangle is maintained when the rectangle is rotated."><meta property="twitter:card" content="summary"><meta property="twitter:title" content="IconPoint"><meta property="twitter:description" content="A class that manages a point that exists inside/outside a virtual rectangle. The point&apos;s position inside/outside of the rectangle is maintained when the rectangle is rotated."><meta property="twitter:image" content="./evitcastudio_round_branding.png"></head>
<body class="layout-container" data-ice="rootContainer">

<header>
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-terser": "^0.4.4",
"@types/bun": "latest",
"bun": "^1.1.38",
"esdoc": "^1.1.0",
"esdoc-ecmascript-proposal-plugin": "^1.0.0",
"esdoc-standard-plugin": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { cleandir } from 'rollup-plugin-cleandir';
import typescript from 'rollup-plugin-typescript2';
import resolve from '@rollup/plugin-node-resolve';

import packageJson from './package.json' assert { type: 'json' };
import packageJson from './package.json' with { type: 'json' };

const fileName = packageJson.name;

Expand Down
10 changes: 5 additions & 5 deletions src/icon-point.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,15 @@ export class IconPoint {
/**
* The version of the module.
*/
version = "VERSION_REPLACE_ME";
static version = "VERSION_REPLACE_ME";
/** The logger module this module uses to log errors / logs
* @private
* @type {Logger}
*/
private logger: typeof Logger;
private static logger: typeof Logger = new Logger({
type: 'Icon-Point-Module',
ansi: '#ff6600'
});
/**
* An object storing the position of the point that was set. This is the point on the rectangle.
* It can be changed at runtime.
Expand Down Expand Up @@ -119,9 +122,6 @@ export class IconPoint {
this.positionalPoint = pPoint;

this.setPoint(pIconPoint);

this.logger = new Logger();
this.logger.registerType('Icon-Point-Module', '#ff6600');
}
/**
* Gets the new point's position inside a rectangle after taking pAngle into account.
Expand Down

0 comments on commit f491ed5

Please sign in to comment.