@c2n/color-area 0.0.12 → 0.0.13

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.
@@ -0,0 +1 @@
1
+ {"schemaVersion":"1.0.0","readme":"","modules":[{"kind":"javascript-module","path":"src/color-area.ts","declarations":[{"kind":"class","description":"Two-dimensional saturation/value picker for a hue, with pointer and keyboard interaction.","name":"ColorArea","cssProperties":[{"type":{"text":"pixel"},"name":"--c2-color-area--width","default":"240px"},{"type":{"text":"pixel"},"name":"--c2-color-area--height","default":"240px"},{"type":{"text":"pixel"},"name":"--c2-color-area__color-handle--size","default":"12px"},{"type":{"text":"border-radius"},"name":"--c2-color-area--border-top-left-radius"},{"type":{"text":"border-radius"},"name":"--c2-color-area--border-top-right-radius"},{"type":{"text":"border-radius"},"name":"--c2-color-area--border-bottom-left-radius"},{"type":{"text":"border-radius"},"name":"--c2-color-area--border-bottom-right-radius"}],"members":[{"kind":"field","name":"hue","type":{"text":"number"},"default":"0","description":"Hue of the colour plane in degrees.","attribute":"hue"},{"kind":"field","name":"saturation","type":{"text":"number"},"default":"1","description":"Selected saturation from 0 to 1.","attribute":"saturation"},{"kind":"field","name":"value","type":{"text":"number"},"default":"1","description":"Selected brightness value from 0 to 1.","attribute":"value"},{"kind":"field","name":"tinyColor","type":{"text":"TinyColor"},"privacy":"public","readonly":true},{"kind":"field","name":"colorHandle","type":{"text":"HTMLElement | undefined"}},{"kind":"field","name":"rootElement","type":{"text":"HTMLElement | undefined"}},{"kind":"field","name":"currentMousePosition","type":{"text":"Point"},"default":"{ x: 0, y: 0 }"},{"kind":"field","name":"rootElementsRect","type":{"text":"DOMRect | undefined"},"privacy":"private"},{"kind":"field","name":"colorHandleRect","type":{"text":"DOMRect | undefined"},"privacy":"private"},{"kind":"method","name":"convertPositionToHslValues","parameters":[{"name":"position","type":{"text":"Point"}}]},{"kind":"method","name":"convertValueToPosition","privacy":"private"},{"kind":"method","name":"handleAreaPointerdown","privacy":"private","return":{"type":{"text":"void"}},"parameters":[{"name":"event","type":{"text":"PointerEvent"}}]},{"kind":"field","name":"handleMouseMove"},{"kind":"method","name":"getPointerPosition","parameters":[{"name":"event","type":{"text":"PointerEvent"}}]},{"kind":"field","name":"handleMouseUp"},{"kind":"method","name":"updateColorHandlePosition","privacy":"private"},{"kind":"method","name":"dispatchChangeColor"}],"events":[{"name":"change","type":{"text":"CustomEvent<{ saturation: number; value: number }>"},"description":"Fired while the selected saturation or value changes."}],"attributes":[{"name":"hue","type":{"text":"number"},"default":"0","description":"Hue of the colour plane in degrees.","fieldName":"hue"},{"name":"saturation","type":{"text":"number"},"default":"1","description":"Selected saturation from 0 to 1.","fieldName":"saturation"},{"name":"value","type":{"text":"number"},"default":"1","description":"Selected brightness value from 0 to 1.","fieldName":"value"}],"superclass":{"name":"LitElement","package":"lit"},"tagName":"c2-color-area","customElement":true}],"exports":[{"kind":"js","name":"ColorArea","declaration":{"name":"ColorArea","module":"src/color-area.ts"}},{"kind":"custom-element-definition","name":"c2-color-area","declaration":{"name":"ColorArea","module":"src/color-area.ts"}}]}]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c2n/color-area",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "type": "module",
5
5
  "main": "dist/color-area.js",
6
6
  "exports": {
@@ -21,6 +21,7 @@
21
21
  "files": [
22
22
  "dist",
23
23
  "types",
24
+ "custom-elements.json",
24
25
  "react.d.ts",
25
26
  "react.js",
26
27
  "vue.d.ts",
@@ -60,7 +61,7 @@
60
61
  }
61
62
  },
62
63
  "dependencies": {
63
- "@c2n/core": "0.0.12",
64
+ "@c2n/core": "0.0.13",
64
65
  "@ctrl/tinycolor": "4.2.0",
65
66
  "lit": "3.3.3"
66
67
  },
@@ -68,5 +69,5 @@
68
69
  "@c2n/config": "*"
69
70
  },
70
71
  "customElements": "custom-elements.json",
71
- "gitHead": "43e38b42ac221ffeef99a773c42dd3356961d26a"
72
+ "gitHead": "aa19b641f64fbc54c36b7649a8171d7a686abbdd"
72
73
  }