@websy/websy-designs 1.6.1 → 1.6.3

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.
@@ -341,6 +341,7 @@ class PGHelper {
341
341
  }
342
342
  execute (query) {
343
343
  return new Promise((resolve, reject) => {
344
+ // console.log(query)
344
345
  if (query !== null) {
345
346
  this.client.query(query, (err, queryResponse) => {
346
347
  if (err) {
@@ -4183,6 +4183,9 @@ class WebsyRouter {
4183
4183
  }
4184
4184
  }
4185
4185
  showView (view, params, group) {
4186
+ if (view === '/' || view === '') {
4187
+ view = this.options.defaultView || ''
4188
+ }
4186
4189
  this.activateItem(view, this.options.triggerClass)
4187
4190
  this.activateItem(view, this.options.viewClass)
4188
4191
  let children = this.getActiveViewsFromParent(view)
@@ -7483,7 +7486,7 @@ else {
7483
7486
  .attr('height', this.plotHeight + this.options.margin.top + this.options.margin.axisTop)
7484
7487
  this.xAxisClip
7485
7488
  .attr('transform', `translate(${this.options.margin.left}, ${this.options.margin.top + this.options.margin.axisTop + this.plotHeight})`)
7486
- .attr('width', this.plotWidth + this.options.margin.axisLeft)
7489
+ .attr('width', this.plotWidth + this.options.margin.axisLeft + this.options.margin.axisRight)
7487
7490
  .attr('height', longestBottomBounds.height + 10)
7488
7491
  this.brushClip
7489
7492
  .attr('transform', `translate(${this.options.margin.left + this.options.margin.axisLeft}, ${this.options.margin.top + this.options.margin.axisTop + this.plotHeight + longestBottomBounds.height})`)
@@ -4585,6 +4585,10 @@ var WebsyRouter = /*#__PURE__*/function () {
4585
4585
  }, {
4586
4586
  key: "showView",
4587
4587
  value: function showView(view, params, group) {
4588
+ if (view === '/' || view === '') {
4589
+ view = this.options.defaultView || '';
4590
+ }
4591
+
4588
4592
  this.activateItem(view, this.options.triggerClass);
4589
4593
  this.activateItem(view, this.options.viewClass);
4590
4594
  var children = this.getActiveViewsFromParent(view);
@@ -8213,7 +8217,7 @@ var WebsyChart = /*#__PURE__*/function () {
8213
8217
  this.trackingLineLayer.attr('transform', "translate(".concat(this.options.margin.left + this.options.margin.axisLeft, ", ").concat(this.options.margin.top + this.options.margin.axisTop, ")"));
8214
8218
  this.brushLayer.attr('transform', "translate(".concat(this.options.margin.left + this.options.margin.axisLeft, ", ").concat(this.options.margin.top + this.options.margin.axisTop + this.plotHeight + longestBottomBounds.height, ")"));
8215
8219
  this.clip.attr('transform', "translate(".concat(this.options.margin.left + this.options.margin.axisLeft, ", 0)")).attr('width', this.plotWidth).attr('height', this.plotHeight + this.options.margin.top + this.options.margin.axisTop);
8216
- this.xAxisClip.attr('transform', "translate(".concat(this.options.margin.left, ", ").concat(this.options.margin.top + this.options.margin.axisTop + this.plotHeight, ")")).attr('width', this.plotWidth + this.options.margin.axisLeft).attr('height', longestBottomBounds.height + 10);
8220
+ this.xAxisClip.attr('transform', "translate(".concat(this.options.margin.left, ", ").concat(this.options.margin.top + this.options.margin.axisTop + this.plotHeight, ")")).attr('width', this.plotWidth + this.options.margin.axisLeft + this.options.margin.axisRight).attr('height', longestBottomBounds.height + 10);
8217
8221
  this.brushClip.attr('transform', "translate(".concat(this.options.margin.left + this.options.margin.axisLeft, ", ").concat(this.options.margin.top + this.options.margin.axisTop + this.plotHeight + longestBottomBounds.height, ")")).attr('width', this.plotWidth).attr('height', this.options.brushHeight);
8218
8222
  this.eventLayer.attr('transform', "translate(".concat(this.options.margin.left + this.options.margin.axisLeft, ", ").concat(this.options.margin.top + this.options.margin.axisTop, ")"));
8219
8223
  var that = this;