@geode/opengeodeweb-viewer 1.37.0-rc.2 → 1.37.0-rc.4

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.
@@ -1580,6 +1580,88 @@
1580
1580
  "additionalProperties": false
1581
1581
  }
1582
1582
  },
1583
+ "basemap_layers": {
1584
+ "$id": "opengeodeweb_viewer.mesh.basemap_layers",
1585
+ "rpc": "basemap_layers",
1586
+ "type": "object",
1587
+ "properties": {
1588
+ "id": {
1589
+ "type": "string",
1590
+ "minLength": 32,
1591
+ "maxLength": 32
1592
+ },
1593
+ "layers": {
1594
+ "type": "array",
1595
+ "items": {
1596
+ "type": "object",
1597
+ "properties": {
1598
+ "map": {
1599
+ "type": "string",
1600
+ "minLength": 1
1601
+ },
1602
+ "visible": {
1603
+ "type": "boolean"
1604
+ },
1605
+ "opacity": {
1606
+ "type": "number",
1607
+ "minimum": 0,
1608
+ "maximum": 1
1609
+ },
1610
+ "crop": {
1611
+ "type": "boolean"
1612
+ }
1613
+ },
1614
+ "required": [
1615
+ "map",
1616
+ "visible",
1617
+ "opacity",
1618
+ "crop"
1619
+ ],
1620
+ "additionalProperties": false
1621
+ }
1622
+ }
1623
+ },
1624
+ "required": [
1625
+ "id",
1626
+ "layers"
1627
+ ],
1628
+ "additionalProperties": false,
1629
+ "response": {
1630
+ "type": "object",
1631
+ "properties": {},
1632
+ "required": [],
1633
+ "additionalProperties": false
1634
+ }
1635
+ },
1636
+ "basemap_drape": {
1637
+ "$id": "opengeodeweb_viewer.mesh.basemap_drape",
1638
+ "rpc": "basemap_drape",
1639
+ "type": "object",
1640
+ "properties": {
1641
+ "id": {
1642
+ "type": "string",
1643
+ "minLength": 32,
1644
+ "maxLength": 32
1645
+ },
1646
+ "data_ids": {
1647
+ "type": "array",
1648
+ "items": {
1649
+ "type": "string"
1650
+ }
1651
+ }
1652
+ },
1653
+ "required": [
1654
+ "id",
1655
+ "data_ids"
1656
+ ],
1657
+ "additionalProperties": false,
1658
+ "response": {
1659
+ "type": "object",
1660
+ "properties": {},
1661
+ "required": [],
1662
+ "additionalProperties": false
1663
+ }
1664
+ },
1583
1665
  "apply_textures": {
1584
1666
  "$id": "opengeodeweb_viewer.mesh.apply_textures",
1585
1667
  "rpc": "apply_textures",
@@ -1625,6 +1707,101 @@
1625
1707
  "required": [],
1626
1708
  "additionalProperties": false
1627
1709
  }
1710
+ },
1711
+ "apply_basemap": {
1712
+ "$id": "opengeodeweb_viewer.mesh.apply_basemap",
1713
+ "rpc": "apply_basemap",
1714
+ "type": "object",
1715
+ "properties": {
1716
+ "id": {
1717
+ "type": "string",
1718
+ "minLength": 32,
1719
+ "maxLength": 32
1720
+ },
1721
+ "detail_of": {
1722
+ "type": "string",
1723
+ "minLength": 32,
1724
+ "maxLength": 32
1725
+ },
1726
+ "columns": {
1727
+ "type": "integer",
1728
+ "minimum": 1
1729
+ },
1730
+ "rows": {
1731
+ "type": "integer",
1732
+ "minimum": 1
1733
+ },
1734
+ "maps": {
1735
+ "type": "array",
1736
+ "minItems": 1,
1737
+ "items": {
1738
+ "type": "object",
1739
+ "properties": {
1740
+ "map": {
1741
+ "type": "string",
1742
+ "minLength": 1
1743
+ },
1744
+ "sources": {
1745
+ "type": "array",
1746
+ "items": {
1747
+ "type": "string",
1748
+ "minLength": 1
1749
+ }
1750
+ }
1751
+ },
1752
+ "required": [
1753
+ "map",
1754
+ "sources"
1755
+ ],
1756
+ "additionalProperties": false
1757
+ }
1758
+ },
1759
+ "layers": {
1760
+ "type": "array",
1761
+ "items": {
1762
+ "title": "MapState",
1763
+ "type": "object",
1764
+ "properties": {
1765
+ "map": {
1766
+ "type": "string",
1767
+ "minLength": 1
1768
+ },
1769
+ "visible": {
1770
+ "type": "boolean"
1771
+ },
1772
+ "opacity": {
1773
+ "type": "number",
1774
+ "minimum": 0,
1775
+ "maximum": 1
1776
+ },
1777
+ "crop": {
1778
+ "type": "boolean"
1779
+ }
1780
+ },
1781
+ "required": [
1782
+ "map",
1783
+ "visible",
1784
+ "opacity",
1785
+ "crop"
1786
+ ],
1787
+ "additionalProperties": false
1788
+ }
1789
+ }
1790
+ },
1791
+ "required": [
1792
+ "id",
1793
+ "columns",
1794
+ "rows",
1795
+ "maps",
1796
+ "layers"
1797
+ ],
1798
+ "additionalProperties": false,
1799
+ "response": {
1800
+ "type": "object",
1801
+ "properties": {},
1802
+ "required": [],
1803
+ "additionalProperties": false
1804
+ }
1628
1805
  }
1629
1806
  },
1630
1807
  "model": {
@@ -4686,6 +4863,89 @@
4686
4863
  "additionalProperties": false
4687
4864
  }
4688
4865
  },
4866
+ "set_text_style": {
4867
+ "$id": "opengeodeweb_viewer.viewer.set_text_style",
4868
+ "rpc": "set_text_style",
4869
+ "type": "object",
4870
+ "properties": {
4871
+ "color": {
4872
+ "title": "TextColor",
4873
+ "type": "object",
4874
+ "properties": {
4875
+ "r": {
4876
+ "type": "integer",
4877
+ "minimum": 0,
4878
+ "maximum": 255
4879
+ },
4880
+ "g": {
4881
+ "type": "integer",
4882
+ "minimum": 0,
4883
+ "maximum": 255
4884
+ },
4885
+ "b": {
4886
+ "type": "integer",
4887
+ "minimum": 0,
4888
+ "maximum": 255
4889
+ }
4890
+ },
4891
+ "required": [
4892
+ "r",
4893
+ "g",
4894
+ "b"
4895
+ ],
4896
+ "additionalProperties": false
4897
+ },
4898
+ "font_family": {
4899
+ "type": "string",
4900
+ "enum": [
4901
+ "arial",
4902
+ "courier",
4903
+ "times"
4904
+ ]
4905
+ },
4906
+ "opacity": {
4907
+ "type": "number",
4908
+ "minimum": 0,
4909
+ "maximum": 1
4910
+ }
4911
+ },
4912
+ "required": [
4913
+ "color",
4914
+ "font_family",
4915
+ "opacity"
4916
+ ],
4917
+ "additionalProperties": false,
4918
+ "response": {
4919
+ "type": "object",
4920
+ "properties": {},
4921
+ "required": [],
4922
+ "additionalProperties": false
4923
+ }
4924
+ },
4925
+ "set_orientation_widget": {
4926
+ "$id": "opengeodeweb_viewer.viewer.set_orientation_widget",
4927
+ "rpc": "set_orientation_widget",
4928
+ "type": "object",
4929
+ "properties": {
4930
+ "marker": {
4931
+ "type": "string",
4932
+ "enum": [
4933
+ "axes",
4934
+ "compass"
4935
+ ]
4936
+ }
4937
+ },
4938
+ "required": [
4939
+ "marker"
4940
+ ],
4941
+ "additionalProperties": false,
4942
+ "response": {
4943
+ "type": "object",
4944
+ "properties": {},
4945
+ "required": [],
4946
+ "additionalProperties": false
4947
+ }
4948
+ },
4689
4949
  "set_background_color": {
4690
4950
  "$id": "opengeodeweb_viewer.viewer.set_background_color",
4691
4951
  "rpc": "set_background_color",
@@ -442,6 +442,29 @@ export interface MeshColorParamsColor {
442
442
  export interface MeshColorResponse {
443
443
  }
444
444
 
445
+ export interface MeshBasemapLayersParams {
446
+ id: string;
447
+ layers: Layer[];
448
+ }
449
+
450
+ export interface Layer {
451
+ crop: boolean;
452
+ map: string;
453
+ opacity: number;
454
+ visible: boolean;
455
+ }
456
+
457
+ export interface MeshBasemapLayersResponse {
458
+ }
459
+
460
+ export interface MeshBasemapDrapeParams {
461
+ data_ids: string[];
462
+ id: string;
463
+ }
464
+
465
+ export interface MeshBasemapDrapeResponse {
466
+ }
467
+
445
468
  export interface MeshApplyTexturesParams {
446
469
  id: string;
447
470
  textures: MeshApplyTexturesParamsTexture[];
@@ -455,6 +478,30 @@ export interface MeshApplyTexturesParamsTexture {
455
478
  export interface MeshApplyTexturesResponse {
456
479
  }
457
480
 
481
+ export interface MeshApplyBasemapParams {
482
+ columns: number;
483
+ detail_of?: string;
484
+ id: string;
485
+ layers: MapState[];
486
+ maps: Map[];
487
+ rows: number;
488
+ }
489
+
490
+ export interface MapState {
491
+ crop: boolean;
492
+ map: string;
493
+ opacity: number;
494
+ visible: boolean;
495
+ }
496
+
497
+ export interface Map {
498
+ map: string;
499
+ sources: string[];
500
+ }
501
+
502
+ export interface MeshApplyBasemapResponse {
503
+ }
504
+
458
505
  export interface ModelBlocksAttributePolyhedronAttributeParams {
459
506
  block_ids: number[];
460
507
  id: string;
@@ -1269,6 +1316,32 @@ export interface ViewerSetZScalingParams {
1269
1316
  export interface ViewerSetZScalingResponse {
1270
1317
  }
1271
1318
 
1319
+ export interface ViewerSetTextStyleParams {
1320
+ color: TextColor;
1321
+ font_family: FontFamily;
1322
+ opacity: number;
1323
+ }
1324
+
1325
+ export interface TextColor {
1326
+ b: number;
1327
+ g: number;
1328
+ r: number;
1329
+ }
1330
+
1331
+ export type FontFamily = "arial" | "courier" | "times";
1332
+
1333
+ export interface ViewerSetTextStyleResponse {
1334
+ }
1335
+
1336
+ export interface ViewerSetOrientationWidgetParams {
1337
+ marker: Marker;
1338
+ }
1339
+
1340
+ export type Marker = "axes" | "compass";
1341
+
1342
+ export interface ViewerSetOrientationWidgetResponse {
1343
+ }
1344
+
1272
1345
  export interface ViewerSetBackgroundColorParams {
1273
1346
  color: ViewerSetBackgroundColorParamsColor;
1274
1347
  }
@@ -1507,7 +1580,10 @@ export interface Schemas {
1507
1580
  readonly highlight: (typeof json)["opengeodeweb_viewer"]["mesh"]["highlight"] & TypedSchema<MeshHighlightParams, MeshHighlightResponse>;
1508
1581
  readonly deregister: (typeof json)["opengeodeweb_viewer"]["mesh"]["deregister"] & TypedSchema<MeshDeregisterParams, MeshDeregisterResponse>;
1509
1582
  readonly color: (typeof json)["opengeodeweb_viewer"]["mesh"]["color"] & TypedSchema<MeshColorParams, MeshColorResponse>;
1583
+ readonly basemap_layers: (typeof json)["opengeodeweb_viewer"]["mesh"]["basemap_layers"] & TypedSchema<MeshBasemapLayersParams, MeshBasemapLayersResponse>;
1584
+ readonly basemap_drape: (typeof json)["opengeodeweb_viewer"]["mesh"]["basemap_drape"] & TypedSchema<MeshBasemapDrapeParams, MeshBasemapDrapeResponse>;
1510
1585
  readonly apply_textures: (typeof json)["opengeodeweb_viewer"]["mesh"]["apply_textures"] & TypedSchema<MeshApplyTexturesParams, MeshApplyTexturesResponse>;
1586
+ readonly apply_basemap: (typeof json)["opengeodeweb_viewer"]["mesh"]["apply_basemap"] & TypedSchema<MeshApplyBasemapParams, MeshApplyBasemapResponse>;
1511
1587
  };
1512
1588
  readonly model: {
1513
1589
  readonly blocks: {
@@ -1631,6 +1707,8 @@ export interface Schemas {
1631
1707
  readonly slice: (typeof json)["opengeodeweb_viewer"]["viewer"]["slice"] & TypedSchema<ViewerSliceParams, ViewerSliceResponse>;
1632
1708
  readonly shrink: (typeof json)["opengeodeweb_viewer"]["viewer"]["shrink"] & TypedSchema<ViewerShrinkParams, ViewerShrinkResponse>;
1633
1709
  readonly set_z_scaling: (typeof json)["opengeodeweb_viewer"]["viewer"]["set_z_scaling"] & TypedSchema<ViewerSetZScalingParams, ViewerSetZScalingResponse>;
1710
+ readonly set_text_style: (typeof json)["opengeodeweb_viewer"]["viewer"]["set_text_style"] & TypedSchema<ViewerSetTextStyleParams, ViewerSetTextStyleResponse>;
1711
+ readonly set_orientation_widget: (typeof json)["opengeodeweb_viewer"]["viewer"]["set_orientation_widget"] & TypedSchema<ViewerSetOrientationWidgetParams, ViewerSetOrientationWidgetResponse>;
1634
1712
  readonly set_background_color: (typeof json)["opengeodeweb_viewer"]["viewer"]["set_background_color"] & TypedSchema<ViewerSetBackgroundColorParams, ViewerSetBackgroundColorResponse>;
1635
1713
  readonly ruler: (typeof json)["opengeodeweb_viewer"]["viewer"]["ruler"] & TypedSchema<ViewerRulerParams, ViewerRulerResponse>;
1636
1714
  readonly reset_visualization: (typeof json)["opengeodeweb_viewer"]["viewer"]["reset_visualization"] & TypedSchema<ViewerResetVisualizationParams, ViewerResetVisualizationResponse>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geode/opengeodeweb-viewer",
3
- "version": "1.37.0-rc.2",
3
+ "version": "1.37.0-rc.4",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/Geode-solutions/OpenGeodeWeb-Viewer",
6
6
  "bugs": {