Skip to content

Commit

Permalink
bump: version to 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
doubleactii committed Sep 8, 2024
1 parent 22818bd commit ba9066e
Show file tree
Hide file tree
Showing 11 changed files with 55,694 additions and 57,562 deletions.
111,263 changes: 53,760 additions & 57,503 deletions docs/ast/source/lens.mjs.json

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions docs/class/src/lens.mjs~LensComponent.html
Original file line number Diff line number Diff line change
Expand Up @@ -2329,7 +2329,7 @@ <h3 data-ice="anchor" id="instance-method-attach">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1256">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1239">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2446,7 +2446,7 @@ <h3 data-ice="anchor" id="instance-method-cancelSpectate">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1226">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1209">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2491,7 +2491,7 @@ <h3 data-ice="anchor" id="instance-method-detach">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1288">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1271">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2535,7 +2535,7 @@ <h3 data-ice="anchor" id="instance-method-isMoving">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1445">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1428">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2592,7 +2592,7 @@ <h3 data-ice="anchor" id="instance-method-isPanning">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1438">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1421">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2649,7 +2649,7 @@ <h3 data-ice="anchor" id="instance-method-isShaking">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1417">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1400">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2706,7 +2706,7 @@ <h3 data-ice="anchor" id="instance-method-isSpectating">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1424">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1407">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -2763,7 +2763,7 @@ <h3 data-ice="anchor" id="instance-method-isZooming">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1431">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1414">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -3007,7 +3007,7 @@ <h3 data-ice="anchor" id="instance-method-setSettings">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1098">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1081">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -3110,7 +3110,7 @@ <h3 data-ice="anchor" id="instance-method-shake">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1312">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1295">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -3192,7 +3192,7 @@ <h3 data-ice="anchor" id="instance-method-spectate">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1176">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1159">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -3267,7 +3267,7 @@ <h3 data-ice="anchor" id="instance-method-zoom">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber957">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber942">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -3379,7 +3379,7 @@ <h3 data-ice="anchor" id="instance-method-follow">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber840">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber827">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -3447,7 +3447,7 @@ <h3 data-ice="anchor" id="instance-method-followLogic">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber808">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber795">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -3647,7 +3647,7 @@ <h3 data-ice="anchor" id="instance-method-onPanFinish">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber790">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber782">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -3691,7 +3691,7 @@ <h3 data-ice="anchor" id="instance-method-onPanned">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber753">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber748">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -3735,7 +3735,7 @@ <h3 data-ice="anchor" id="instance-method-onShakeEnd">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1405">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1388">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -3778,7 +3778,7 @@ <h3 data-ice="anchor" id="instance-method-onZoomEnd">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1080">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber1063">source</a></span></span>
</span>
</h3>

Expand Down Expand Up @@ -3943,7 +3943,7 @@ <h3 data-ice="anchor" id="instance-method-update">
<span class="right-info">


<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber909">source</a></span></span>
<span data-ice="source"><span><a href="file/src/lens.mjs.html#lineNumber895">source</a></span></span>
</span>
</h3>

Expand Down
41 changes: 12 additions & 29 deletions docs/file/src/lens.mjs.html
Original file line number Diff line number Diff line change
Expand Up @@ -767,13 +767,8 @@
}
}

if (this.camera.x !== this.settings.pan.target.x) {
this.settings.pan.active.x = true;
}

if (this.camera.y !== this.settings.pan.target.y) {
this.settings.pan.active.y = true;
}
if (this.camera.x !== this.settings.pan.target.x) this.settings.pan.active.x = true;
if (this.camera.y !== this.settings.pan.target.y) this.settings.pan.active.y = true;

} else {
this.logger.prefix(&apos;Lens-Module&apos;).error(&apos;No target property included inside of the pSettings parameter. Pan failed&apos;);
Expand All @@ -789,10 +784,7 @@
* @private
*/
onPanned() {
if (this.settings.pan.panToCallback) {
this.settings.pan.panToCallback();
this.settings.pan.panToCallback = null;
}
if (this.settings.pan.panToCallback) this.settings.pan.panToCallback();
if (this.settings.pan.attach) {
// Check if its on the map
if (this.settings.pan.target.mapName) {
Expand Down Expand Up @@ -826,13 +818,8 @@
* @private
*/
onPanFinish() {
if (this.settings.pan.forceDirChange) {
this.following.dir = this.settings.pan.storedDir;
}
if (this.settings.pan.panBackCallback) {
this.settings.pan.panBackCallback();
this.settings.pan.panBackCallback = null;
}
if (this.settings.pan.forceDirChange) this.following.dir = this.settings.pan.storedDir;
if (this.settings.pan.panBackCallback) this.settings.pan.panBackCallback();
this.reset(&apos;pan&apos;);
}
/**
Expand Down Expand Up @@ -885,8 +872,6 @@
const target = (pMethod === &apos;pan&apos;) ? settings.target : this.following;
// Get the center of the target position.
const centerPositionOfTarget = this.getTrueCenterPos(target);
// swappedMethod
let swappedMethod = pMethod;

if (pMethod === &apos;pan&apos;) {
// Now check to see if there is a paused duration you want the camera to stay at the panned object for before moving back
Expand All @@ -896,16 +881,17 @@
if (settings.pauseDuration &gt; 0) return;
}

// We swap methods from pan to the configured camera mode, to finish animating the camera in the axis that is finished panning.
const cameraMode = this.custom ? &apos;custom&apos; : &apos;standard&apos;;

for (const axis of LensComponent.AXIS) {
// xNeedsUpdate | yNeedsUpdate is set when the axis is reset. This is in the event the axis is not finished panning but the other axis is.
// The axis is updated with the `standard` or `custom` setting based on what is configured.
if (this.settings.pan[`${axis}NeedsUpdate`]) {
// We swap methods from pan to the configured camera mode, to finish animating the camera in the axis that is finished panning.
swappedMethod = this.custom ? &apos;custom&apos; : &apos;standard&apos;;
this.settings[swappedMethod].active[axis] = (this.camera[axis] !== centerPositionOfTarget[axis] ? true : false);
this.settings[swappedMethod].time[axis] = 0;
this.settings[swappedMethod].initialPos[axis] = this.camera[axis];
this.followLogic(axis, centerPositionOfTarget, swappedMethod, pElapsedMS);
this.settings[cameraMode].active[axis] = this.camera[axis] !== centerPositionOfTarget[axis];
this.settings[cameraMode].time[axis] = 0;
this.settings[cameraMode].initialPos[axis] = this.camera[axis];
this.followLogic(axis, centerPositionOfTarget, cameraMode, pElapsedMS);
} else {
if (this.camera[axis] !== centerPositionOfTarget[axis]) {
settings.active[axis] = true;
Expand Down Expand Up @@ -990,7 +976,6 @@
* @param {string} pEase.x - The ease to use for the x scale zooming.
* @param {string} pEase.y - The ease to use for the y scale zooming.
* @param {Function} pCallback - The callback to call after the zoom ends.
* @returns
*/
zoom(pDestinationLevel={&apos;x&apos;: 1, &apos;y&apos;: 1}, pDuration={&apos;x&apos;: 1000, &apos;y&apos;: 1000}, pEase={&apos;x&apos;: LensComponent.DEFAULT_EASE, &apos;y&apos;: LensComponent.DEFAULT_EASE}, pCallback) {
const zoomSettings = this.settings.zoom;
Expand Down Expand Up @@ -1027,15 +1012,13 @@
}

if (zoomSettings.destinationLevel.x !== destinationX) {
if (zoomSettings.active.x) this.reset(&apos;zoomX&apos;);
zoomSettings.active.x = true;
zoomSettings.destinationLevel.x = Math.floor(destinationX * 10) / 10;
zoomSettings.initialLevel.x = Math.floor(VYLO.Client.mapView.zoom.x * 10) / 10;
zoomSettings.differenceLevel.x = Math.floor((zoomSettings.destinationLevel.x - zoomSettings.initialLevel.x) * 10) / 10;
}

if (zoomSettings.destinationLevel.y !== destinationY) {
if (zoomSettings.active.y) this.reset(&apos;zoomY&apos;);
zoomSettings.active.y = true;
zoomSettings.destinationLevel.y = Math.floor(destinationY * 10) / 10;
zoomSettings.initialLevel.y = Math.floor(VYLO.Client.mapView.zoom.y * 10) / 10;
Expand Down
72 changes: 70 additions & 2 deletions docs/identifiers.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
<nav class="navigation" data-ice="nav"><div>
<ul>

</ul>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/lens.mjs~LensComponent.html">LensComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-Lens">Lens</a></span></span></li>
</ul>
</div>
</nav>

Expand All @@ -38,7 +40,73 @@
<div class="identifiers-wrap">
<div>

</div>
<div data-ice="dirSummaryWrap">

<div data-ice="dirSummary"><table class="summary" data-ice="summary">
<thead><tr><td data-ice="title" colspan="3">summary</td></tr></thead>
<tbody>

<tr data-ice="target">
<td>
<span class="access" data-ice="access">private</span>



<span class="override" data-ice="override"></span>
</td>
<td>
<div>
<p>
<span data-ice="kind-icon" class="kind-class">C</span>


<span class="code" data-ice="name"><span><a href="class/src/lens.mjs~LensComponent.html">LensComponent</a></span></span>
</p>
</div>
<div>



</div>
</td>
<td>


</td>
</tr>
<tr data-ice="target">
<td>
<span class="access" data-ice="access">public</span>



<span class="override" data-ice="override"></span>
</td>
<td>
<div>
<p>
<span data-ice="kind-icon" class="kind-variable">V</span>


<span class="code" data-ice="name"><span><a href="variable/index.html#static-variable-Lens">Lens</a></span></span><span class="code" data-ice="signature">: <span><a href="class/src/lens.mjs~LensComponent.html">LensComponent</a></span></span>
</p>
</div>
<div>



</div>
</td>
<td>


</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>


</div>
Expand Down
4 changes: 3 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
<nav class="navigation" data-ice="nav"><div>
<ul>

</ul>
<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/lens.mjs~LensComponent.html">LensComponent</a></span></span></li>
<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-Lens">Lens</a></span></span></li>
</ul>
</div>
</nav>

Expand Down
1,525 changes: 1,524 additions & 1 deletion docs/index.json

Large diffs are not rendered by default.

Loading

0 comments on commit ba9066e

Please sign in to comment.