@versatiles/style 4.2.6 → 4.2.8

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.
@@ -84,8 +84,6 @@ export function recolor(colors, opt) {
84
84
  const hsv = color.hsv().array();
85
85
  // eslint-disable-next-line @typescript-eslint/prefer-destructuring
86
86
  hsv[0] = tintColorHSV[0];
87
- hsv[1] *= tintColorHSV[1];
88
- hsv[2] *= tintColorHSV[2];
89
87
  const rgbNew = Color.hsv(hsv).rgb().array();
90
88
  return Color.rgb(rgb0[0] * (1 - value) + value * rgbNew[0], rgb0[1] * (1 - value) + value * rgbNew[1], rgb0[2] * (1 - value) + value * rgbNew[2], color.alpha());
91
89
  });
@@ -1,7 +1,8 @@
1
1
  import type StyleBuilder from '../style_builder/style_builder.js';
2
2
  import type { StyleBuilderOptions } from '../style_builder/types.js';
3
3
  import type { MaplibreStyle } from '../types/maplibre.js';
4
- export type { MaplibreStyle };
4
+ import type { RecolorOptions } from '../style_builder/recolor.js';
5
+ export type { MaplibreStyle, RecolorOptions };
5
6
  import Colorful from './colorful.js';
6
7
  import Graybeard from './graybeard.js';
7
8
  import Neutrino from './neutrino.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versatiles/style",
3
- "version": "4.2.6",
3
+ "version": "4.2.8",
4
4
  "description": "Generate StyleJSON for MapLibre",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",