gosling.js 2.0.0-alpha.4 → 2.0.0-alpha.5
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../demo/renderer/main.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAGhE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAK9D;;;;GAIG;AACH,wBAAgB,eAAe,CAC3B,SAAS,EAAE,SAAS,EAAE,EACtB,eAAe,EAAE,cAAc,EAAE,EACjC,WAAW,EAAE,WAAW,EACxB,iBAAiB,CAAC,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../demo/renderer/main.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAGhE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAK9D;;;;GAIG;AACH,wBAAgB,eAAe,CAC3B,SAAS,EAAE,SAAS,EAAE,EACtB,eAAe,EAAE,cAAc,EAAE,EACjC,WAAW,EAAE,WAAW,EACxB,iBAAiB,CAAC,EAAE,iBAAiB,2BAwHxC"}
|
package/dist/gosling.js
CHANGED
|
@@ -55,7 +55,7 @@ import { createNanoEvents } from "nanoevents";
|
|
|
55
55
|
import PubSub$1 from "pubsub-js";
|
|
56
56
|
import { zoom, ZoomTransform } from "d3-zoom";
|
|
57
57
|
const name = "gosling.js";
|
|
58
|
-
const version = "2.0.0-alpha.
|
|
58
|
+
const version = "2.0.0-alpha.5";
|
|
59
59
|
const $ref$1 = "#/definitions/GoslingSpec";
|
|
60
60
|
const $schema$1 = "http://json-schema.org/draft-07/schema#";
|
|
61
61
|
const definitions$1 = {
|
|
@@ -11766,7 +11766,6 @@ function compile(spec, templates, theme, containerStatus) {
|
|
|
11766
11766
|
trackInfos = getRelativeTrackInfo(specCopy, theme).trackInfos;
|
|
11767
11767
|
}
|
|
11768
11768
|
const compileResult = collectViewsAndTracks(specCopy, trackInfos, theme);
|
|
11769
|
-
console.warn(compileResult);
|
|
11770
11769
|
return compileResult;
|
|
11771
11770
|
}
|
|
11772
11771
|
class PixiManager {
|
|
@@ -29920,7 +29919,7 @@ function renderTrackDefs(trackDefs, linkedEncodings, pixiManager, urlToFetchOpti
|
|
|
29920
29919
|
const brushOptions = options;
|
|
29921
29920
|
const domain = getEncodingSignal(trackDef.trackId, "x", linkedEncodings);
|
|
29922
29921
|
const brushDomain = getEncodingSignal(trackDef.trackId, "brush", linkedEncodings);
|
|
29923
|
-
if (!domain || !brushDomain
|
|
29922
|
+
if (!domain || !brushDomain)
|
|
29924
29923
|
return;
|
|
29925
29924
|
const brush = new BrushLinearTrack(
|
|
29926
29925
|
brushOptions,
|
|
@@ -29936,7 +29935,7 @@ function renderTrackDefs(trackDefs, linkedEncodings, pixiManager, urlToFetchOpti
|
|
|
29936
29935
|
const brushOptions = options;
|
|
29937
29936
|
const domain = getEncodingSignal(trackDef.trackId, "x", linkedEncodings);
|
|
29938
29937
|
const brushDomain = getEncodingSignal(trackDef.trackId, "brush", linkedEncodings);
|
|
29939
|
-
if (!domain || !brushDomain
|
|
29938
|
+
if (!domain || !brushDomain)
|
|
29940
29939
|
return;
|
|
29941
29940
|
const brush = new BrushCircularTrack(
|
|
29942
29941
|
brushOptions,
|
|
@@ -29957,15 +29956,6 @@ function renderTrackDefs(trackDefs, linkedEncodings, pixiManager, urlToFetchOpti
|
|
|
29957
29956
|
});
|
|
29958
29957
|
return plotDict;
|
|
29959
29958
|
}
|
|
29960
|
-
function hasLinkedTracks(brushId, linkedEncodings) {
|
|
29961
|
-
const linkedEncoding = linkedEncodings.find(
|
|
29962
|
-
(link) => link.tracks.find((t) => t.id === brushId && t.encoding === "brush")
|
|
29963
|
-
);
|
|
29964
|
-
if (!linkedEncoding)
|
|
29965
|
-
return false;
|
|
29966
|
-
const nonBrushTracks = linkedEncoding.tracks.filter((t) => t.encoding !== "brush");
|
|
29967
|
-
return nonBrushTracks.length > 0;
|
|
29968
|
-
}
|
|
29969
29959
|
function getEncodingSignal(trackDefId, encodingType, linkedEncodings) {
|
|
29970
29960
|
const linkedEncoding = linkedEncodings.find(
|
|
29971
29961
|
(link) => link.tracks.find((t) => t.id === trackDefId && t.encoding === encodingType)
|