Skip to content

Commit

Permalink
fix doc issues
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoVinasco committed Sep 1, 2023
1 parent 367dab0 commit ac48136
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
2 changes: 0 additions & 2 deletions packages/browser/src/Widget/Server/SPARQL/Model/Graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
export class Graph {
/**
* Create a new Table using D3.
*
* @param {object} response A JSON object typically returned by a SparqlEndpointResponseProvider.EVENT_ENDPOINT_RESPONSE_UPDATED event
*/
constructor() {
this.nodes = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class SparqlQueryWindow extends EventSender {

// TODO extract table event listener assignments to example
this.addEventListener(Table.EVENT_CELL_CLICKED, (cell_text) => {
const clickedResult = fetchC3DTileFeatureWithNodeText(
const clickedResult = this.fetchC3DTileFeatureWithNodeText(
URI.getUriLocalname(cell_text)
);
if (!clickedResult) return;
Expand All @@ -158,12 +158,13 @@ export class SparqlQueryWindow extends EventSender {
});
}


/**
* fetchC3DTileFeatureWithNodeText takes a parameter `gmlId` and returns a feature from a `3DTileslayer` if
* the batch table content of the feature contains a given `gmlid`string in the 'gml_id' key.
* @param {string} gmlid a given gml ID.
* */
* @param {string} gmlId a given gml ID.
* @returns {object} containting the feature and the layer containing the feature
*
*/
fetchC3DTileFeatureWithNodeText(gmlId) {
let result = null;
this.itownsView
Expand All @@ -189,7 +190,7 @@ export class SparqlQueryWindow extends EventSender {
});

return result;
};
}

/**
* Update the DataView.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { getUriLocalname } from '../../SPARQL/Model/URI';
import { SparqlQueryWindow } from '../../SPARQL/View/SparqlQueryWindow';
import { Graph } from '../../SPARQL/Model/Graph';

export class Workspace extends Graph {
/**
* Create a new D3 workspace graph from an RDF JSON object.
*
* @param {SparqlQueryWindow} window the window this graph is attached to.
* @param {object} configSparqlWidget The sparqlModule configuration.
* @param {number} configSparqlWidget.height The SVG canvas height.
* @param {number} configSparqlWidget.width The SVG canvas width.
Expand Down Expand Up @@ -88,7 +86,7 @@ export class Workspace extends Graph {
* the layer.name of the Scenario's localname.
*
* @param {number} d the index of the Version or VersionTransition node
* @param itownsView
* @param {itowns.PlanarView} itownsView view
* @returns {C3DTilesLayer|null} return the a matching geometryLayer
*/
getScenarioLayerByIndex(d, itownsView) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { SparqlEndpointResponseProvider } from '../../SPARQL/Service/SparqlEndpointResponseProvider';
import { getUriLocalname } from '../../SPARQL/Model/URI';
import { SparqlQueryWindow } from '../../SPARQL/View/SparqlQueryWindow';
import { D3WorkspaceCanvas } from './D3WorkspaceCanvas';
import * as itowns from 'itowns';
Expand Down
6 changes: 4 additions & 2 deletions packages/browser/src/Widget/Temporal/Temporal.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,12 @@ export class Temporal3DTilesLayerWrapper {
},
});

/** @type {Array<number>} - all date possible to update style with (ascending order) */
// all date possible to update style with (ascending order)
/** @type {Array<number>} */
this.knownDatesForAllTiles = knownDatesForAllTiles.sort((a, b) => a - b);

/** @type {itowns.C3DTilesLayer} - the layer wrapped */
// the layer wrapped
/** @type {itowns.C3DTilesLayer} */
this.temporalC3DTilesLayer = temporalC3DTilesLayer;
}

Expand Down

0 comments on commit ac48136

Please sign in to comment.