@rian8337/osu-strain-graph-generator 2.0.0-alpha.2 → 2.0.0-alpha.4

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 +5 -6
  2. package/typings/index.d.ts +14 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rian8337/osu-strain-graph-generator",
3
- "version": "2.0.0-alpha.2",
3
+ "version": "2.0.0-alpha.4",
4
4
  "description": "A module for generating strain graph of an osu!standard beatmap.",
5
5
  "keywords": [
6
6
  "osu",
@@ -23,20 +23,19 @@
23
23
  "scripts": {
24
24
  "build": "rollup -c ../../rollup.config.js",
25
25
  "lint": "eslint --ext ts",
26
- "prepare": "npm run build",
27
26
  "test": "echo \"No tests for this module\""
28
27
  },
29
28
  "bugs": {
30
29
  "url": "https://github.com/Rian8337/osu-droid-module/issues"
31
30
  },
32
31
  "dependencies": {
33
- "@rian8337/osu-base": "^2.0.0-alpha.0",
34
- "@rian8337/osu-difficulty-calculator": "^2.0.0-alpha.2",
35
- "@rian8337/osu-rebalance-difficulty-calculator": "^2.0.0-alpha.2",
32
+ "@rian8337/osu-base": "^2.0.0-alpha.4",
33
+ "@rian8337/osu-difficulty-calculator": "^2.0.0-alpha.4",
34
+ "@rian8337/osu-rebalance-difficulty-calculator": "^2.0.0-alpha.4",
36
35
  "canvas": "^2.9.0"
37
36
  },
38
37
  "publishConfig": {
39
38
  "access": "public"
40
39
  },
41
- "gitHead": "89a6ff4e787b4ee614f0e5472f4fb9ba0a3411f0"
40
+ "gitHead": "d7ebd2e4178199a8ccede5e409bbeaaafae62b35"
42
41
  }
@@ -1,13 +1,17 @@
1
- import { StarRating } from '@rian8337/osu-difficulty-calculator';
2
- import { StarRating as StarRating$1 } from '@rian8337/osu-rebalance-difficulty-calculator';
1
+ import { StarRating } from "@rian8337/osu-difficulty-calculator";
2
+ import { StarRating as StarRating$1 } from "@rian8337/osu-rebalance-difficulty-calculator";
3
3
 
4
- /**
5
- * Generates the strain chart of beatmap beatmap and returns the chart as a buffer.
6
- *
7
- * @param beatmap The beatmap to generate the strain graph for.
8
- * @param beatmapsetID The beatmapset ID to get background image from. If omitted, the background will be plain white.
9
- * @param color The color of the graph.
10
- */
11
- declare function getStrainChart(beatmap: StarRating | StarRating$1, beatmapsetID?: number, color?: string): Promise<Buffer | null>;
4
+ /**
5
+ * Generates the strain chart of beatmap beatmap and returns the chart as a buffer.
6
+ *
7
+ * @param beatmap The beatmap to generate the strain graph for.
8
+ * @param beatmapsetID The beatmapset ID to get background image from. If omitted, the background will be plain white.
9
+ * @param color The color of the graph.
10
+ */
11
+ declare function getStrainChart(
12
+ beatmap: StarRating | StarRating$1,
13
+ beatmapsetID?: number,
14
+ color?: string
15
+ ): Promise<Buffer | null>;
12
16
 
13
17
  export { getStrainChart as default };