Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"@perspective-dev/viewer": "workspace:",
"@perspective-dev/client": "workspace:",
"@perspective-dev/server": "workspace:",
"blocks": "workspace:",
"puppeteer": "catalog:",
"superstore-arrow": "catalog:"
},
Expand Down
6 changes: 0 additions & 6 deletions docs/src/data/projects/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export const SUPERSTORE_PROJECTS: Project[] = [
"underneath.",
source: SUPERSTORE,
workspace: {
version: "5.2.0",
active: "PERSPECTIVE_GENERATED_ID_1",
layout: {
type: "split-layout",
Expand Down Expand Up @@ -103,7 +102,6 @@ export const SUPERSTORE_PROJECTS: Project[] = [
},
panels: {
PERSPECTIVE_GENERATED_ID_0: {
version: "5.2.0",
columns_config: {},
plugin: "Y Bar",
plugin_config: {},
Expand All @@ -120,7 +118,6 @@ export const SUPERSTORE_PROJECTS: Project[] = [
aggregates: {},
},
PERSPECTIVE_GENERATED_ID_1: {
version: "5.2.0",
columns_config: {
Profit: {
number_fg_mode: "label-bar",
Expand All @@ -142,7 +139,6 @@ export const SUPERSTORE_PROJECTS: Project[] = [
aggregates: {},
},
PERSPECTIVE_GENERATED_ID_2: {
version: "5.2.0",
columns_config: {},
plugin: "Treemap",
plugin_config: {},
Expand Down Expand Up @@ -190,7 +186,6 @@ export const OLYMPICS_PROJECTS: Project[] = [
name: "olympics",
},
workspace: {
version: "5.2.0",
active: "PERSPECTIVE_GENERATED_ID_0",
layout: {
type: "split-layout",
Expand Down Expand Up @@ -661,7 +656,6 @@ export const SF_PROJECTS: Project[] = [
name: "evictions",
},
workspace: singlePanel({
version: "5.2.0",
columns_config: {},
plugin: "Map Scatter",
plugin_config: {
Expand Down
6 changes: 0 additions & 6 deletions docs/src/data/projects/dashboards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ export const DASHBOARD_PROJECTS: Project[] = [
description: TRADING_DESK_DESCRIPTION,
source: MARKET_SOURCE,
workspace: {
version: "5.2.0",
active: "PERSPECTIVE_GENERATED_ID_0",
layout: {
type: "split-layout",
Expand Down Expand Up @@ -172,7 +171,6 @@ export const DASHBOARD_PROJECTS: Project[] = [
description: TRADING_DESK_DESCRIPTION,
source: MARKET_SOURCE,
workspace: {
version: "5.2.0",
active: "PERSPECTIVE_GENERATED_ID_2",
layout: {
type: "split-layout",
Expand Down Expand Up @@ -303,7 +301,6 @@ export const DASHBOARD_PROJECTS: Project[] = [
description: VIDEO_WALL_DESCRIPTION,
source: WEBCAM_SOURCE,
workspace: {
version: "5.2.0",
layout: {
type: "split-layout",
children: [
Expand Down Expand Up @@ -335,7 +332,6 @@ export const DASHBOARD_PROJECTS: Project[] = [
},
panels: {
PERSPECTIVE_GENERATED_ID_0: {
version: "5.2.0",
columns_config: {},
plugin: "Heatmap",
plugin_config: {},
Expand All @@ -356,7 +352,6 @@ export const DASHBOARD_PROJECTS: Project[] = [
aggregates: {},
},
PERSPECTIVE_GENERATED_ID_1: {
version: "5.2.0",
columns_config: {},
plugin: "Y Bar",
plugin_config: {},
Expand All @@ -378,7 +373,6 @@ export const DASHBOARD_PROJECTS: Project[] = [
aggregates: {},
},
PERSPECTIVE_GENERATED_ID_2: {
version: "5.2.0",
columns_config: {},
plugin: "X/Y Scatter",
plugin_config: {},
Expand Down
2 changes: 0 additions & 2 deletions docs/src/data/projects/market_layouts.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@
"aggregates": { "bucket(\"timestamp\", 'm')": "dominant" }
},
{
"version": "5.2.0",
"columns_config": {
"Diff from market open": {
"number_fg_mode": "bar",
Expand Down Expand Up @@ -140,7 +139,6 @@
"aggregates": {}
},
{
"version": "5.2.0",
"columns_config": {
"if(\"side\"=='buy'){-1}else{1}": {
"aggregate_depth": 1,
Expand Down
31 changes: 0 additions & 31 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions rust/metadata/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ use perspective_js::TypedArrayWindow;
use perspective_viewer::config::{
ClientOptions, CustomNumberFormatConfig, DatetimeColorMode, DatetimeFormatType, ExportMethod,
ExportOptions, FormatMode, GetClientOptions, GetTableOptions, Notation, NumberFormatStyle,
PanelOptions, PluginStaticConfig, RestoreOptions, StringColorMode, ViewerConfig,
ViewerConfigInitial, ViewerConfigUpdate, WorkspaceConfig, WorkspaceConfigUpdate,
PanelOptions, PluginStaticConfig, RestoreOptions, SaveWorkspaceOptions, StringColorMode,
ViewerConfig, ViewerConfigInitial, ViewerConfigUpdate, WorkspaceConfig, WorkspaceConfigUpdate,
};
use ts_rs::TS;

Expand Down Expand Up @@ -70,6 +70,7 @@ pub fn generate_type_bindings_viewer() -> Result<(), Box<dyn Error>> {
GetClientOptions::export_all_to(&path)?;
PluginStaticConfig::export_all_to(&path)?;
OnUpdateData::export_all_to(&path)?;
SaveWorkspaceOptions::export_all_to(&path)?;

// The column-format wire types (`columns_config` values): the
// flattened style/notation families export separately (ts-rs cannot
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def test_column_paths_split_by_range(self, superstore):
paths = view.column_paths(start_col=1, end_col=2)
assert paths == [
"Second Class|Sales",
"Standard Class|Sales",
]

view.delete()
Expand All @@ -82,7 +81,6 @@ def test_column_paths_split_by_range(self, superstore):
paths = view.column_paths(end_col=1)
assert paths == [
"First Class|Sales",
"Second Class|Sales",
]

view.delete()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ function(psp_build_dep name cmake_file)
set(ARROW_WITH_ZSTD ON)
set(ARROW_WITH_LZ4 ON)
set(ARROW_NO_EXPORT ON)
set(ARROW_CXXFLAGS "-Wno-documentation" CACHE STRING "" FORCE)
if(NOT WIN32)
set(ARROW_CXXFLAGS "-Wno-documentation" CACHE STRING "" FORCE)
endif()
set(ARROW_DEPENDENCY_SOURCE "BUNDLED" CACHE STRING "override arrow's dependency source" FORCE)
if(PSP_WASM_BUILD)
set(ARROW_ENABLE_THREADING OFF)
Expand Down
2 changes: 2 additions & 0 deletions rust/perspective-viewer/src/rust/custom_elements/viewer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ impl PerspectiveViewerElement {
}

async fn workspace_config(this: Self, full_palette: bool) -> ApiResult<JsValue> {
this.workspace.effects().settle().await;
let mut panels: std::collections::BTreeMap<String, PanelViewerConfig> = Default::default();
for id in &this.workspace.panel_ids() {
let panel = this.workspace.panel(id).into_apierror()?;
Expand Down Expand Up @@ -1266,6 +1267,7 @@ impl PerspectiveViewerElement {
let PanelOptions { panel: name } = parse_options(options);
let this = self.clone();
let fut = ApiFuture::new(async move {
this.workspace.effects().settle().await;
let panel = this.resolve_panel(name)?;
let viewer_config = panel
.renderer
Expand Down
23 changes: 13 additions & 10 deletions tools/bench/python_suite.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,19 @@ const CLIENT_VERSION = {
"3.3.0": "perspective-3-3-0",
"3.2.0": "perspective-3-2-0",
"3.1.0": "perspective-3-1-0",
"3.0.3": "perspective-3-0-0",
"2.10.1": "perspective-2-10-0",
"2.9.0": "perspective-2-9-0",
"2.8.0": "perspective-2-8-0",
"2.7.0": "perspective-2-7-0",
"2.6.0": "perspective-2-6-0",
"2.5.0": "perspective-2-5-0",
"2.4.0": "perspective-2-4-0",
"2.3.2": "perspective-2-3-0",
"2.3.1": "perspective-2-3-0",

// TODO(texodus): These suites are legacy broken with python 3.9+ and can't
// run in CI anymore, need to add python sandboxing to support them.
// "3.0.3": "perspective-3-0-0",
// "2.10.1": "perspective-2-10-0",
// "2.9.0": "perspective-2-9-0",
// "2.8.0": "perspective-2-8-0",
// "2.7.0": "perspective-2-7-0",
// "2.6.0": "perspective-2-6-0",
// "2.5.0": "perspective-2-5-0",
// "2.4.0": "perspective-2-4-0",
// "2.3.2": "perspective-2-3-0",
// "2.3.1": "perspective-2-3-0",
};

fs.mkdirSync(path.join(__dirname, "./dist"), { recursive: true });
Expand Down
Loading