global - hiro-nyon/cesium-heatbox GitHub Wiki
日本語 | English
Color-related constants.
Coordinate-related constants.
Default option values.
Default statistics values.
Density pattern generators map (ADR-0011 Phase 1)
Device tier constants
Error message strings.
Log level constants.
Common logging utility.
Performance limits.
Predefined configuration profiles
Library metadata.
Wrapper functions for backward compatibility.
Apply auto render budget to options
| Name | Type | Description |
|---|---|---|
| options | Object | 設定オプション |
Apply profile to options with user options taking priority
| Name | Type | Description |
|---|---|---|
| profileName | string | Profile name / プロファイル名 |
| userOptions | Object | User provided options / ユーザー提供オプション |
Calculate physical span (meters) from geographic bounds.
| Name | Type | Description |
|---|---|---|
| bounds | Object | Bounds information / 境界情報 |
Clear all warning states (for testing)
Coerce various input types to boolean while respecting common string representations.
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
| value | * | 値 | ||
| fallback | boolean | false | 未定義/無効値時のフォールバック |
Legend UI component for Heatbox classification.
Compute SpatialIdEdgeCaseMetrics for a given adapter instance.
| Name | Type | Description |
|---|---|---|
| adapter | Object | Loaded SpatialIdAdapter instance / 初期化済みSpatialIdAdapterインスタンス |
Create an axis-aligned bounding box from a centre point and edge length.
| Name | Type | Description |
|---|---|---|
| centerLon | number | 中心経度 |
| centerLat | number | 中心緯度 |
| centerAlt | number | 中心高度 |
| sizeMeters | number | 一辺のサイズ(メートル) |
Detect device tier and return appropriate maxRenderVoxels
Escape special HTML characters.
| Name | Type | Description |
|---|---|---|
| value | string | 対象文字列 |
Estimate initial voxel size based on data range.
| Name | Type | Description |
|---|---|---|
| bounds | Object | Bounds info / 境界情報 |
| entityCount | number | Number of entities / エンティティ数 |
| options | Object | Calculation options / 計算オプション |
Basic voxel size estimation (existing algorithm).
| Name | Type | Description |
|---|---|---|
| bounds | Object | Bounds info / 境界情報 |
| entityCount | number | Number of entities / エンティティ数 |
Occupancy-based voxel size estimation with iterative approximation.
| Name | Type | Description |
|---|---|---|
| bounds | Object | Bounds info / 境界情報 |
| entityCount | number | Number of entities / エンティティ数 |
| options | Object | Calculation options / 計算オプション |
Generate a clustered density pattern.
| Name | Type | Default | Description |
|---|---|---|---|
| bounds | Object | Bounding box | |
| count | number | Total entity count | |
| clusterCount | number | 3 | Number of clusters (default: 3) |
Generate a gradient-based density pattern.
| Name | Type | Description |
|---|---|---|
| bounds | Object | Bounding box |
| count | number | Total entity count |
Generate a mixed density pattern.
| Name | Type | Description |
|---|---|---|
| bounds | Object | Bounding box |
| count | number | Total entity count |
Generate test dataset with specified pattern
| Name | Type | Description |
|---|---|---|
| pattern | string | Pattern name ('clustered', 'scattered', 'gradient', 'mixed') |
| bounds | Object | Bounding box |
| count | number | Total entity count |
Generate clustered sample entities without adding to a viewer.
| Name | Type | Description |
|---|---|---|
| total | number | 総エンティティ数 |
| config | Object | { clusters: Array<{ center:[lon,lat,alt], radius:number, density:number, count:number }> } |
Generate a scattered density pattern.
| Name | Type | Description |
|---|---|---|
| bounds | Object | Bounding box |
| count | number | Total entity count |
Generate pseudo-random test entities within the specified bounds.
| Name | Type | Description |
|---|---|---|
| viewer | Object | CesiumJS Viewer |
| bounds | Object | 生成範囲 {minLon, maxLon, minLat, maxLat, minAlt, maxAlt} |
| count | number | 生成数(デフォルト: 500) |
Retrieve every entity registered on the given viewer.
| Name | Type | Description |
|---|---|---|
| viewer | Object | CesiumJS Viewer |
Get device information
Get environment information.
Determine current log level.
Get profile configuration
| Name | Type | Description |
|---|---|---|
| profileName | string | Profile name / プロファイル名 |
Get list of available profile names
Return a convenience bounding box covering the Tokyo Station area.
Get WebGL capability information
Check whether an entity has a valid position.
| Name | Type | Description |
|---|---|---|
| entity | Object | Cesium Entity |
Check whether the entity array is valid.
| Name | Type | Description |
|---|---|---|
| entities | Array | Entity array / エンティティ配列 |
Validate profile name
| Name | Type | Description |
|---|---|---|
| profileName | string | Profile name to validate / 検証するプロファイル名 |
Check whether a CesiumJS Viewer is valid.
| Name | Type | Description |
|---|---|---|
| viewer | Object | CesiumJS Viewer |
Check whether the voxel size is valid.
| Name | Type | Description |
|---|---|---|
| voxelSize | number | Voxel size / ボクセルサイズ |
Resolve Cesium Property or raw value to plain data.
| Name | Type | Attributes | Description |
|---|---|---|---|
| property | * | Cesium Property / raw value | |
| time | Cesium.JulianDate | Evaluation time / 評価時刻 |
Validate and normalize aggregation options (v0.1.18 ADR-0014).
| Name | Type | Description |
|---|---|---|
| aggregation | Object | Aggregation options / 集約オプション |
Validate and normalize options.
| Name | Type | Description |
|---|---|---|
| options | Object | User-specified options / ユーザー指定のオプション |
Validate that total voxel count is within limits.
| Name | Type | Description |
|---|---|---|
| totalVoxels | number | Total voxels / 総ボクセル数 |
| voxelSize | number | Voxel size / ボクセルサイズ |
Warn once about deprecated feature
| Name | Type | Description |
|---|---|---|
| code | string | Unique warning code / 一意の警告コード |
| message | string | Warning message / 警告メッセージ |
色分け関連定数。
座標変換定数。
デフォルト設定値。
統計情報のデフォルト値。
パラメータ最適化用密度パターンマップ
端末ティア定数
エラーメッセージ。
ログレベル定数。
ログ出力の共通ユーティリティ。
パフォーマンス制限値。
事前定義された設定プロファイル
ライブラリのメタ情報。
既存の console.log 置き換え用のラッパー関数群。
Auto Render Budgetをオプションに適用
| 名前 | 型 | 説明 |
|---|---|---|
| options | Object | 設定オプション |
ユーザーオプション優先でプロファイルをオプションに適用
| 名前 | 型 | 説明 |
|---|---|---|
| profileName | string | Profile name / プロファイル名 |
| userOptions | Object | User provided options / ユーザー提供オプション |
境界からデータ範囲(メートル)を計算します。
| 名前 | 型 | 説明 |
|---|---|---|
| bounds | Object | Bounds information / 境界情報 |
すべての警告状態をクリア(テスト用)
文字列で渡された真偽値表現にも対応した安全な真偽値変換を行う。
| 名前 | 型 | 属性 | 既定値 | 説明 |
|---|---|---|---|---|
| value | * | 値 | ||
| fallback | boolean | false | 未定義/無効値時のフォールバック |
Heatboxの分類用凡例コンポーネント。
指定されたアダプタに対する SpatialIdEdgeCaseMetrics を計算します。 主にテスト用の軽量なQAヘルパーであり、本番運用では明示的に呼び出さない限り メトリクスは計算されません。
| 名前 | 型 | 説明 |
|---|---|---|
| adapter | Object | Loaded SpatialIdAdapter instance / 初期化済みSpatialIdAdapterインスタンス |
指定された中心点とサイズから境界を生成します。
| 名前 | 型 | 説明 |
|---|---|---|
| centerLon | number | 中心経度 |
| centerLat | number | 中心緯度 |
| centerAlt | number | 中心高度 |
| sizeMeters | number | 一辺のサイズ(メートル) |
端末ティアを検出し、適切なmaxRenderVoxelsを返す
HTMLの特殊文字をエスケープします。
| 名前 | 型 | 説明 |
|---|---|---|
| value | string | 対象文字列 |
データ範囲に基づいて初期ボクセルサイズを推定します。
| 名前 | 型 | 説明 |
|---|---|---|
| bounds | Object | Bounds info / 境界情報 |
| entityCount | number | Number of entities / エンティティ数 |
| options | Object | Calculation options / 計算オプション |
基本的なボクセルサイズ推定(既存アルゴリズム)
| 名前 | 型 | 説明 |
|---|---|---|
| bounds | Object | Bounds info / 境界情報 |
| entityCount | number | Number of entities / エンティティ数 |
占有率ベースのボクセルサイズ推定(反復近似)
| 名前 | 型 | 説明 |
|---|---|---|
| bounds | Object | Bounds info / 境界情報 |
| entityCount | number | Number of entities / エンティティ数 |
| options | Object | Calculation options / 計算オプション |
高密度クラスターの分布を生成します。
| 名前 | 型 | 既定値 | 説明 |
|---|---|---|---|
| bounds | Object | Bounding box | |
| count | number | Total entity count | |
| clusterCount | number | 3 | Number of clusters (default: 3) |
グラデーション分布のデータセットを生成します。
| 名前 | 型 | 説明 |
|---|---|---|
| bounds | Object | Bounding box |
| count | number | Total entity count |
混在分布のデータセットを生成します。
| 名前 | 型 | 説明 |
|---|---|---|
| bounds | Object | Bounding box |
| count | number | Total entity count |
指定したパターンでテストデータセットを生成
| 名前 | 型 | 説明 |
|---|---|---|
| pattern | string | Pattern name ('clustered', 'scattered', 'gradient', 'mixed') |
| bounds | Object | Bounding box |
| count | number | Total entity count |
ビューアに追加せず、クラスター状のサンプルエンティティ配列を生成します。
| 名前 | 型 | 説明 |
|---|---|---|
| total | number | 総エンティティ数 |
| config | Object | { clusters: Array<{ center:[lon,lat,alt], radius:number, density:number, count:number }> } |
疎分布のデータセットを生成します。
| 名前 | 型 | 説明 |
|---|---|---|
| bounds | Object | Bounding box |
| count | number | Total entity count |
指定範囲内にランダムなテストエンティティを生成します。
| 名前 | 型 | 説明 |
|---|---|---|
| viewer | Object | CesiumJS Viewer |
| bounds | Object | 生成範囲 {minLon, maxLon, minLat, maxLat, minAlt, maxAlt} |
| count | number | 生成数(デフォルト: 500) |
指定された Viewer の全エンティティを取得します。
| 名前 | 型 | 説明 |
|---|---|---|
| viewer | Object | CesiumJS Viewer |
端末情報を取得
環境情報を取得します。
現在のログレベルを決定します。 NODE_ENV=production では ERROR と WARN のみ、DEBUG=true または NODE_ENV=development では全レベル出力。
プロファイル設定を取得
| 名前 | 型 | 説明 |
|---|---|---|
| profileName | string | Profile name / プロファイル名 |
利用可能なプロファイル名の一覧を取得
東京駅周辺の境界情報を返します。
WebGL能力情報を取得
エンティティが有効な位置情報を持つかチェックします。
| 名前 | 型 | 説明 |
|---|---|---|
| entity | Object | Cesium Entity |
エンティティ配列が有効かチェックします。
| 名前 | 型 | 説明 |
|---|---|---|
| entities | Array | Entity array / エンティティ配列 |
プロファイル名の検証
| 名前 | 型 | 説明 |
|---|---|---|
| profileName | string | Profile name to validate / 検証するプロファイル名 |
CesiumJS Viewerが有効かチェックします。
| 名前 | 型 | 説明 |
|---|---|---|
| viewer | Object | CesiumJS Viewer |
ボクセルサイズが有効かチェックします。
| 名前 | 型 | 説明 |
|---|---|---|
| voxelSize | number | Voxel size / ボクセルサイズ |
CesiumのPropertyまたは生値をプレーンな値に解決します。
| 名前 | 型 | 属性 | 説明 |
|---|---|---|---|
| property | * | Cesium Property / raw value | |
| time | Cesium.JulianDate | Evaluation time / 評価時刻 |
集約オプションの検証と正規化(v0.1.18 ADR-0014)
| 名前 | 型 | 説明 |
|---|---|---|
| aggregation | Object | Aggregation options / 集約オプション |
オプションを検証して正規化します。 v0.1.5: batchMode 非推奨化と新機能バリデーションを追加。
| 名前 | 型 | 説明 |
|---|---|---|
| options | Object | User-specified options / ユーザー指定のオプション |
処理するボクセル数が制限内かチェックします。
| 名前 | 型 | 説明 |
|---|---|---|
| totalVoxels | number | Total voxels / 総ボクセル数 |
| voxelSize | number | Voxel size / ボクセルサイズ |
廃止予定機能について一度だけ警告する
| 名前 | 型 | 説明 |
|---|---|---|
| code | string | Unique warning code / 一意の警告コード |
| message | string | Warning message / 警告メッセージ |