Skip to content

Commit

Permalink
fix: rollback changes because of fixed runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Nov 16, 2022
1 parent 3a4671e commit bdaebec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/charting/utils/Transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,7 @@ export class Transformer {
if (!outputPoint) {
outputPoint = { x: 0, y: 0 };
}
// temp fix for latest runtimes. Should be Utils.getTempArray(2)
const buffer = Utils.getTempArray(2, false, false);
const buffer = Utils.getTempArray(2);
buffer[0] = x;
buffer[1] = y;

Expand Down
2 changes: 1 addition & 1 deletion src/charting/utils/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ export namespace Utils {
export const arrayToNativeArray = arrayToNativeArrayFn;

const mTempArrays: { [k: string]: TypedArray } = {};
export function getTempArray(length, useInts = false, canReturnBuffer = false, optKey?: string) {
export function getTempArray(length, useInts = false, canReturnBuffer = true, optKey?: string) {
// temp fix for latest runtimes. default should be canReturnBuffer = true
let key = length + '' + useInts + '' + canReturnBuffer;
if (optKey) {
Expand Down

0 comments on commit bdaebec

Please sign in to comment.