Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
maybe math extension proposal will never get passed...
Browse files Browse the repository at this point in the history
  • Loading branch information
ruihe774 committed Dec 9, 2023
1 parent b5d6d9f commit f4dcbac
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/components/FeatureSlider.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import { defineComponent } from "vue";
import { clamp } from "lodash-es";
import monitorManager from "../monitor";
import sheet from "../style.module.sass";
Expand Down Expand Up @@ -65,7 +66,7 @@ export default defineComponent({
monitorManager.updateFeature(
this.monitorId,
this.featureName,
Math.clamp(Math.round(current + offset * 0.01), 0, this.maximum),
clamp(Math.round(current + offset * 0.01), 0, this.maximum),
);
}
},
Expand Down
4 changes: 0 additions & 4 deletions src/polyfill.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
interface Math {
clamp(x: number, lower: number, upper: number): number;
}

interface Uint8Array {
toBase64(options?: { alphabet?: "base64" | "base64url" }): string;
}
1 change: 0 additions & 1 deletion src/polyfill.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
import "core-js/full/math/clamp";
import "core-js/full/typed-array/to-base64";

0 comments on commit f4dcbac

Please sign in to comment.