@rian8337/osu-strain-graph-generator 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +7 -5
  2. package/typings/index.d.ts +21 -21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rian8337/osu-strain-graph-generator",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "A module for generating strain graph of an osu!standard beatmap.",
5
5
  "keywords": [
6
6
  "osu",
@@ -21,6 +21,8 @@
21
21
  },
22
22
  "scripts": {
23
23
  "build": "tsc",
24
+ "lint": "eslint --ext ts",
25
+ "generate-docs": "typedoc src/index.ts",
24
26
  "prepare": "npm run build",
25
27
  "test": "echo \"No tests for this module\""
26
28
  },
@@ -28,13 +30,13 @@
28
30
  "url": "https://github.com/Rian8337/osu-droid-module/issues"
29
31
  },
30
32
  "dependencies": {
31
- "@rian8337/osu-base": "^1.0.1",
32
- "@rian8337/osu-difficulty-calculator": "^1.0.1",
33
- "@rian8337/osu-rebalance-difficulty-calculator": "^1.0.1",
33
+ "@rian8337/osu-base": "^1.0.5",
34
+ "@rian8337/osu-difficulty-calculator": "^1.1.0",
35
+ "@rian8337/osu-rebalance-difficulty-calculator": "^1.1.0",
34
36
  "canvas": "^2.9.0"
35
37
  },
36
38
  "publishConfig": {
37
39
  "access": "public"
38
40
  },
39
- "gitHead": "8406e60764d46fc30483b95f56a097f2c0245417"
41
+ "gitHead": "409e4106e7d7297924a55c625d4214fb0ba79a18"
40
42
  }
@@ -1,21 +1,21 @@
1
- declare module "@rian8337/osu-strain-graph-generator" {
2
- import { StarRating } from "@rian8337/osu-difficulty-calculator";
3
- import { StarRating as RebalanceStarRating } from "@rian8337/osu-rebalance-difficulty-calculator";
4
-
5
- //#region Functions
6
-
7
- /**
8
- * Generates the strain chart of beatmap beatmap and returns the chart as a buffer.
9
- *
10
- * @param beatmap The beatmap to generate the strain graph for.
11
- * @param beatmapsetID The beatmapset ID to get background image from. If omitted, the background will be plain white.
12
- * @param color The color of the graph.
13
- */
14
- export default function getStrainChart(
15
- beatmap: StarRating | RebalanceStarRating,
16
- beatmapsetID?: number,
17
- color?: string
18
- ): Promise<Buffer | null>;
19
-
20
- //#endregion
21
- }
1
+ declare module "@rian8337/osu-strain-graph-generator" {
2
+ import { StarRating } from "@rian8337/osu-difficulty-calculator";
3
+ import { StarRating as RebalanceStarRating } from "@rian8337/osu-rebalance-difficulty-calculator";
4
+
5
+ //#region Functions
6
+
7
+ /**
8
+ * Generates the strain chart of beatmap beatmap and returns the chart as a buffer.
9
+ *
10
+ * @param beatmap The beatmap to generate the strain graph for.
11
+ * @param beatmapsetID The beatmapset ID to get background image from. If omitted, the background will be plain white.
12
+ * @param color The color of the graph.
13
+ */
14
+ export default function getStrainChart(
15
+ beatmap: StarRating | RebalanceStarRating,
16
+ beatmapsetID?: number,
17
+ color?: string
18
+ ): Promise<Buffer | null>;
19
+
20
+ //#endregion
21
+ }