@ahmetilhn/hanui 5.3.0 → 5.3.2
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.
- package/README.md +6 -3
- package/build/charts.cjs +1 -1
- package/build/charts.cjs.map +1 -1
- package/build/charts.js +971 -949
- package/build/charts.js.map +1 -1
- package/build/chat.cjs.map +1 -1
- package/build/chat.css +1 -1
- package/build/chat.js.map +1 -1
- package/build/index.cjs.map +1 -1
- package/build/index.d.ts +3 -3
- package/build/index.js.map +1 -1
- package/build/scss/_mixins.scss +2 -0
- package/build/styles.css +1 -1
- package/build/types/charts/core/axes.d.ts +3 -0
- package/build/types/charts/core/cartesian.d.ts +4 -3
- package/build/types/charts/core/format.d.ts +12 -2
- package/build/types/chat/Prose/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import type { TickFormat } from './format';
|
|
1
2
|
import type { PlotArea } from './types';
|
|
2
3
|
export type Tick = {
|
|
3
4
|
/** Eksen boyunca konum (px). */
|
|
4
5
|
position: number;
|
|
5
6
|
label: string;
|
|
6
7
|
};
|
|
8
|
+
/** Bölme değerlerini konumlu bölmelere çevirir. Yazılar LİSTE olarak biçimlenir — basamak tüm bölmelerden. */
|
|
9
|
+
export declare const placeTicks: (values: readonly number[], scale: (value: number) => number, format: TickFormat) => Tick[];
|
|
7
10
|
/** Bir karakterin yaklaşık genişliği (px) — 11 px eksen yazısında ölçülmüş ortalama. */
|
|
8
11
|
export declare const CHAR_WIDTH = 6.4;
|
|
9
12
|
/** Etiketin kaplayacağı yaklaşık genişlik. Ölçüm (DOM) yerine tahmin: sunucuda da çalışır. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** KARTEZYEN GEOMETRİ — Çizgi, Alan, Çubuk ve Bileşik grafiğin ortak, saf (DOM'suz) motoru. */
|
|
2
2
|
import { type Tick } from './axes';
|
|
3
|
-
import type {
|
|
3
|
+
import type { TickFormat } from './format';
|
|
4
4
|
import { type ChartTone } from './palette';
|
|
5
5
|
import { type Curve, type MaybePoint } from './path';
|
|
6
6
|
import type { PlotArea } from './types';
|
|
@@ -28,8 +28,9 @@ export type CartesianInput = {
|
|
|
28
28
|
orientation: Orientation;
|
|
29
29
|
curve: Curve;
|
|
30
30
|
formatX: (value: unknown) => string;
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
/** Değer ekseni bölmeleri — basamak listeden çıktığı için LİSTE alır. */
|
|
32
|
+
formatLeft: TickFormat;
|
|
33
|
+
formatRight: TickFormat;
|
|
33
34
|
/** Değer ekseninin sabit uçları; verilmeyen uç veriden. */
|
|
34
35
|
domain?: readonly [number | undefined, number | undefined];
|
|
35
36
|
};
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
/** SAYI BİÇİMİ — eksen ve ipucu metni. Dil `labels.locale`ten, verilmezse tarayıcının dili. */
|
|
2
2
|
export type ValueFormat = (value: number) => string;
|
|
3
|
+
/** Eksen bölmelerinin yazısı — tek değerden değil LİSTEDEN: gereken basamak bölmelerin hepsinden çıkar. */
|
|
4
|
+
export type TickFormat = (values: readonly number[]) => string[];
|
|
3
5
|
/**
|
|
4
|
-
* Eksen
|
|
6
|
+
* Eksen bölmeleri: KISA gösterim ("12 B", "1,2 Mn"). Uzun bir sayı dar bir eksende üst üste biniyor;
|
|
5
7
|
* tam değer ipucunda ve veri tablosunda okunur.
|
|
8
|
+
*
|
|
9
|
+
* Basamak sayısı bölmelerin HEPSİNİ tam yazan en az basamak: en küçük anlamlı basamağı en ince olan
|
|
10
|
+
* bölme belirler, her bölme o basamağa kadar yazılır. 0,005 adımlı eksen "0 · 0,005 · 0,01 · 0,015",
|
|
11
|
+
* 50 adımlı "12 B · 12,05 B · 12,1 B".
|
|
12
|
+
*
|
|
13
|
+
* ⚠ Eskiden sabit "en çok bir ondalık" yazıyordu ve adımı 0,1'in altında kalan HER eksen sıfıra
|
|
14
|
+
* çöküyordu: 0,001-0,014 USD'lik maliyet grafiği "0 · 0 · 0 · 0" okunuyordu (ölçüldü: tüketicide).
|
|
15
|
+
* Kısa gösterimde de aynı hata vardı — 12 050 ile 12 100 ikisi de "12,1 B".
|
|
6
16
|
*/
|
|
7
|
-
export declare const
|
|
17
|
+
export declare const tickLabels: (locale?: string) => TickFormat;
|
|
8
18
|
/** İpucu ve tablo: tam değer, en çok iki ondalık. */
|
|
9
19
|
export declare const fullNumber: (locale?: string) => ValueFormat;
|
|
@@ -8,7 +8,7 @@ type Props = HTMLAttributes<HTMLDivElement> & {
|
|
|
8
8
|
*
|
|
9
9
|
* ⚠ AYRIŞTIRICI İÇERMEZ: `react-markdown`, `remark`/`rehype` eklentileri ve KaTeX tüketicide kalır;
|
|
10
10
|
* hanui yalnızca çıktının nasıl göründüğünü verir (`linkComponent` ile aynı desen). Bir UI paketinin
|
|
11
|
-
* markdown ayrıştırıcısı taşıması,
|
|
11
|
+
* markdown ayrıştırıcısı taşıması, sohbet kullanmayan tüketicinin hiç kullanmadığı yüzlerce kB demek.
|
|
12
12
|
*/
|
|
13
13
|
declare const Prose: FC<Props>;
|
|
14
14
|
declare const _default: typeof Prose;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ahmetilhn/hanui",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.2",
|
|
4
4
|
"description": "Accessible, theme-driven React component library built on SCSS Modules. Bootstrap Icons for shell iconography, two built-in themes and a fully overridable design-token contract.",
|
|
5
5
|
"author": "Ahmet ilhan <ahmetilhan.dev@gmail.com>",
|
|
6
6
|
"license": "MIT",
|