gaugeit.js 0.1.0 → 0.1.1

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,73 @@
1
+ # Gaugeit.js AI documentation
2
+
3
+ This directory is a task-oriented documentation set for coding agents and language
4
+ models working with Gaugeit.js 0.1.1.
5
+
6
+ ## Choose the smallest useful guide
7
+
8
+ | Task | Read |
9
+ | --- | --- |
10
+ | Modify the Gaugeit.js repository | Root `AGENTS.md`, then `contributor-guide.md` |
11
+ | Generate correct application code | `library-usage.md` |
12
+ | Select or explain options | `options-reference.md` |
13
+ | Produce a complete integration | `integration-recipes.md` |
14
+ | Diagnose broken output or CI | `troubleshooting.md` |
15
+ | Supply one self-contained context file to a model | `ai-full.md` |
16
+
17
+ Do not load `ai-full.md` automatically when a focused guide is sufficient. It repeats
18
+ the detailed AI documentation in one file and is intentionally much larger than
19
+ `AGENTS.md`.
20
+
21
+ ## Documentation roles
22
+
23
+ - Root `AGENTS.md` contains concise repository-editing instructions intended for
24
+ automatic discovery by coding agents.
25
+ - `.github/copilot-instructions.md` contains the essential repository rules for GitHub
26
+ Copilot.
27
+ - `CLAUDE.md` and `GEMINI.md` import the root instructions for tools that use those
28
+ filenames.
29
+ - The files in this directory explain usage, options, integrations, contribution
30
+ architecture, and troubleshooting in enough detail for code generation.
31
+
32
+ ## Authority and conflict resolution
33
+
34
+ Use this precedence when information conflicts:
35
+
36
+ 1. canonical runtime source in `src/`;
37
+ 2. public core declarations in `src/index.d.ts` and React adapter declarations in
38
+ `adapters/react/Gaugeit.d.ts`;
39
+ 3. executable behavior in `tests/`;
40
+ 4. package metadata and build scripts;
41
+ 5. `README.md`, `docs/api.md`, and architecture documentation;
42
+ 6. this AI-oriented documentation.
43
+
44
+ A difference does not mean the source is automatically correct documentation. Confirm
45
+ the intended contract from tests and release metadata, then update every affected layer.
46
+
47
+ ## Version and package identity
48
+
49
+ This documentation describes Gaugeit.js `0.1.1`.
50
+
51
+ - npm package: `gaugeit.js`
52
+ - Composer package: `kasperi/gaugeit-js`
53
+ - browser global from UMD and standalone bundles: `Gaugeit`
54
+ - React component export: `Gaugeit`
55
+ - GitHub repository: `https://github.com/kasperikoski/gaugeit.js`
56
+
57
+ Use exact package versions in CDN examples. Do not invent package names, import paths,
58
+ global names, or option keys.
59
+
60
+ ## Important distinctions
61
+
62
+ - UMD requires separate CSS. Standalone injects the canonical CSS automatically.
63
+ - ESM and CommonJS expose the same core API.
64
+ - The React adapter is thin and must be paired with a CSS import.
65
+ - Composer installs prebuilt browser assets; it does not provide a PHP rendering API.
66
+ - `updateOptions()` deep-merges a patch. `replaceOptions()` resets omitted keys to
67
+ selected type defaults.
68
+ - Radial pointers, linear indicators, and rolling tapes share lifecycle and animation
69
+ state but use different geometry families.
70
+ - Value animation is application state. Jitter is visual-only.
71
+ - A light may blink or pulse; blink wins when both are enabled. Flicker may coexist
72
+ with either effect.
73
+ - `readout.visible` does not automatically make title, value, or unit visible.