Skip to content

Commit

Permalink
rename analyzing to analyze (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
madil4 authored Dec 9, 2023
1 parent 1f25853 commit 3faac2d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions src/App/App.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const Invalid: StoryObj<Args> = {

export const Default: StoryObj<Args> = {
args: {
script: `import { analyzing } from 'https://unpkg.com/awatif';
script: `import { analyze } from 'https://unpkg.com/awatif';
export const nodes = [[8, 12.5, 0], [15, 12.5, 0], [8, 12.5, 8]];;
export const elements = [[0, 1], [1, 2]]
Expand Down Expand Up @@ -42,13 +42,13 @@ export const assignments = [
}
]
export const analysisResults = analyzing(nodes, elements, assignments);`,
export const analysisResults = analyze(nodes, elements, assignments);`,
},
};

export const UndeformedAndGridSize: StoryObj<Args> = {
args: {
script: `import { analyzing } from 'https://unpkg.com/awatif';
script: `import { analyze } from 'https://unpkg.com/awatif';
export const nodes = [[8, 12.5, 0], [15, 12.5, 0], [8, 12.5, 8]];;;
export const elements = [[0, 1], [1, 2]]
Expand Down Expand Up @@ -78,7 +78,7 @@ export const assignments = [
}
]
export const analysisResults = analyzing(nodes, elements, assignments);
export const analysisResults = analyze(nodes, elements, assignments);
export const settings = {
deformedShape: false,
Expand All @@ -89,7 +89,7 @@ export const settings = {

export const ParametersAndResults: StoryObj<Args> = {
args: {
script: `import { analyzing } from 'https://unpkg.com/awatif';
script: `import { analyze } from 'https://unpkg.com/awatif';
export const parameters = {
xPosition: {
Expand Down Expand Up @@ -138,7 +138,7 @@ export const onParameterChange = (parameters) => {
}
]
const analysisResults = analyzing(nodes, elements, assignments);
const analysisResults = analyze(nodes, elements, assignments);
return { nodes, elements, assignments, analysisResults }
}
Expand Down
4 changes: 2 additions & 2 deletions src/App/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function App(props: AppProps) {
const solveWorker = new Worker(new URL("./solveWorker.ts", import.meta.url), {
type: "module",
});
const defaultScript = `import { analyzing } from 'https://unpkg.com/awatif';
const defaultScript = `import { analyze } from 'https://unpkg.com/awatif';
export const nodes = [[8, 12.5, 0], [15, 12.5, 0], [8, 12.5, 8]];;
export const elements = [[0, 1], [1, 2]]
Expand Down Expand Up @@ -66,7 +66,7 @@ export const assignments = [
}
]
export const analysisResults = analyzing(nodes, elements, assignments);`;
export const analysisResults = analyze(nodes, elements, assignments);`;
const defaultSettings: SettingsType = {
gridSize: 25,
displayScale: 1,
Expand Down
2 changes: 1 addition & 1 deletion src/Editor/useWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ monaco.languages.typescript.typescriptDefaults.setEagerModelSync(true);
monaco.languages.typescript.typescriptDefaults.addExtraLib(
`declare module 'https://unpkg.com/*'
declare module 'https://unpkg.com/awatif' {
export function analyzing(nodes: any, elements:any, assignments:any): any;
export function analyze(nodes: any, elements:any, assignments:any): any;
}`
);

0 comments on commit 3faac2d

Please sign in to comment.