Skip to content

Commit

Permalink
Merge pull request #1 from TeerthaDeb/Zooming-to-pointer-issue--185
Browse files Browse the repository at this point in the history
Zooming to pointer issue  185
  • Loading branch information
TeerthaDeb authored Aug 29, 2024
2 parents 78c5895 + a5ccb5b commit 380c95b
Show file tree
Hide file tree
Showing 4 changed files with 1,095 additions and 385 deletions.
6 changes: 2 additions & 4 deletions frontend/src/atoms/pipelineAtom.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { atom } from "jotai";
import { withImmer } from "jotai-immer";
import { customAlphabet } from "nanoid";
import rfdc from "rfdc";
import { sha1 } from "js-sha1";
import { generateId } from "@/utils/blockUtils";

export const pipelineKey = (id, data) => {
let hash = "";
Expand All @@ -13,9 +13,7 @@ export const pipelineKey = (id, data) => {
};

export const pipelineFactory = (cachePath, pipeline = null) => {
const nanoid = customAlphabet("1234567890abcedfghijklmnopqrstuvwxyz", 12);
const newNanoid = nanoid();
const id = `pipeline-${newNanoid}`;
const id = generateId("pipeline");
const buffer = `${cachePath}${id}`;
let defaultPipeline = {
id: id,
Expand Down
Loading

0 comments on commit 380c95b

Please sign in to comment.