sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
8b6a89659e7cc9656f26e9aa92595500a1b2feb2a986f493f86ed32e4d4c39b7 | TypeScript | 580 | 25 | import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { HttpClientModule, HTTP_INTERCEPTORS } from "@angular/common/http";
import { PriorityHttpInterceptor } from "src/util/priority";
import { MatSnackBarModule } from "@angular/material/snack-bar";
@NgModule({
imports: [
... |
b1f1e7934ee98f94ad8ef69aaa49828310afba07ed4b04e78e295418af2602db | TypeScript | 586 | 24 | import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { TransformOnhoverSegmentPipe } from "src/atlasViewer/onhoverSegment.pipe";
import { MouseHoverDirective } from "./mouseover.directive";
import { MouseOverConvertPipe } from "./mouseOverCvt.pipe";
@NgModule({
imports: [... |
a1478844601ffd213733e79d94e853a76db46c9b1f35a384120e22d443432b9e | TypeScript | 587 | 34 | export type TUrlStandaloneVolume<T> = {
sv: T // standalone volume
}
export type TUrlAtlas<T> = {
a: T // atlas
t: T // template
p: T // parcellation
r?: T // region selected
}
export type TUrlPlugin<T> = {
pl: T // pluginState
}
export type TUrlNav<T> = {
['@']: T // navstring
}
export type T... |
7f73b060cc99d6a69e1990f8ecba96a8899097ecac3d710d80152d775981ecfb | TypeScript | 609 | 18 | import { Pipe, PipeTransform } from "@angular/core";
@Pipe({
name : 'filterByRegex',
pure: true,
})
export class FilterByRegexPipe implements PipeTransform {
public transform(searchFields: string[], searchTerm: string) {
try {
return searchFields.some(searchField => new RegExp(searchTerm, 'i').test(se... |
e165182a79f17b4f776e63ed13fb8072306acdf65853bfd7b26ba0762e729cc5 | TypeScript | 622 | 24 | import { Component, EventEmitter, Output } from '@angular/core';
import { SAPI } from 'src/atlasComponents/sapi';
import { Feature } from 'src/atlasComponents/sapi/sxplrTypes';
import { ListDirective } from './list.directive';
@Component({
selector: 'sxplr-feature-list',
templateUrl: './list.component.html',
sty... |
581361a6ee2844c19589dbb0b8fece0930761a19ab84174c5dac1fcaf6f9bc6e | TypeScript | 631 | 27 | import { CommonModule } from "@angular/common";
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from "@angular/core";
import { MatButtonModule } from "@angular/material/button";
import { MatTooltipModule } from "@angular/material/tooltip";
import { SpinnerModule } from "src/components/spinner";
import { NgLayerCtrlCmp } fr... |
f91a5212a186e246c699a5739727f4a082eae65fffd6da4833e620f5fc2f8728 | TypeScript | 633 | 18 | import { TabularFeature, VoiFeature } from "src/atlasComponents/sapi/sxplrTypes"
export function isTabularData(feature: unknown): feature is TabularFeature<number|string|number[]> {
return !!feature['index'] && !!feature['columns']
}
export function isVoiData(feature: unknown): feature is VoiFeature {
return !!fe... |
9dcbc2329302777d8a7cb57507c0d507b426e3833099f45bbefba2d47cf62599 | TypeScript | 635 | 30 | import { Component, Inject } from "@angular/core";
import { MAT_DIALOG_DATA } from "@angular/material/dialog";
import { ARIA_LABELS, CONST } from 'common/constants'
export type UserLayerInfoData = {
layerName: string
filename: string
min: number
max: number
warning: string[]
}
@Component({
selector: `sxpl... |
b13b40139b8a6b5cea575b2f9e1eb1838fe015c91680b285965a363414f4d4c0 | TypeScript | 642 | 33 | /**
* Only the most common interfaces should reside here
*/
import { InjectionToken } from "@angular/core"
import { Observable } from "rxjs"
export interface IHasId{
['@id']: string
}
export interface IHasFullId{
['fullId']: string
}
export type TOverwriteShowDatasetDialog = (arg: any) => void
export type T... |
4ea00883b262684ca0039522f74ccd641d4734c587ebeeb3c71a89c6586df67a | TypeScript | 669 | 23 | import { Injectable } from "@angular/core";
import { createEffect } from "@ngrx/effects";
import { Store } from "@ngrx/store";
import { of } from "rxjs";
import { mapTo, switchMap } from "rxjs/operators";
import { atlasSelection, userInterface } from "src/state";
@Injectable()
export class ViewerCtrlEffects {
onTemp... |
cc2d670219e15a4afda18944c23e6e1fef198e8fc83d231ed72f898d45d5a7e7 | TypeScript | 673 | 22 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SlSpotlightDirective } from './sl-spotlight.directive';
import { SpotlightBackdropComponent } from './spotlight-backdrop/spotlight-backdrop.component';
import { SpotLightOverlayDirective } from './spot-light-overlay.direc... |
a3567931181252d7acb5f5b2f5cd055bbe7cbfcce299c5b491ba91362f4d37e7 | TypeScript | 686 | 27 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { SAPIModule } from 'src/atlasComponents/sapi';
import { ListComponent } from './list.component';
describe('ListComponent', () => {
let component: ListComponent;
let fixture: ComponentFixture<ListComponent>;
beforeEach(async () => {
... |
fbf8e213f397ac1b99c52ccce7b3da71eb0e3b8963c60a0830368870aa5a44c8 | TypeScript | 690 | 25 | import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { SpinnerModule } from "src/components/spinner";
import { SapiViewsCoreAtlasSplashScreen } from "./splashScreen/splashScreen.component";
import { MatCardModule } from "@angular/material/card";
import { SAPIModule } from "sr... |
c228c51dd49b733460cca834e683eb81eb6fe44df4aad16af60464f090743c73 | TypeScript | 691 | 21 | import { Injectable } from "@angular/core";
import { createEffect } from "@ngrx/effects";
import { select, Store } from "@ngrx/store";
import { distinctUntilChanged, map } from "rxjs/operators";
import { annotation, atlasAppearance } from "src/state"
@Injectable()
export class NgAnnotationEffects{
constructor(privat... |
6cb2f25ac8bdd4d8110173d2f726e5d0862897125e1547696431ec538cef6d3a | TypeScript | 702 | 32 | import { APP_BASE_HREF } from "@angular/common";
import { NgModule } from "@angular/core";
import { RouterModule } from '@angular/router'
import { RouterService } from "./router.service";
import { RouteStateTransformSvc } from "./routeStateTransform.service";
import { routes } from "./util";
@NgModule({
imports:[
... |
58e5c3f8a7976f24283ea29e8ea301ad9afb1becd87a9fc616c6fb14fe24673c | TypeScript | 705 | 27 | import { Injectable } from "@angular/core";
import {MatSnackBar, MatSnackBarConfig} from "@angular/material/snack-bar";
import { MatDialog } from "@angular/material/dialog";
import { ActionDialog } from "src/ui/actionDialog/actionDialog.component";
@Injectable({
providedIn: 'root',
})
export class UIService {
con... |
8e70d47aa23bc9b394e5f26ccbd896b3e05baadcf1389164d53ff19004952a8b | TypeScript | 705 | 27 | import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { MatButtonModule } from "@angular/material/button";
import { MatDialogModule } from "@angular/material/dialog";
import { MarkdownModule } from "src/components/markdown";
import { StrictLocalModule } from "src/strictLocal";... |
5a9e84465862650e9e43d7be6298039c401f6b4cbf6040b1d6932476b1864259 | TypeScript | 709 | 37 | import { createAction, props } from "@ngrx/store";
import { CustomLayer, nameSpace, UseViewer } from "./const"
export const setOctantRemoval = createAction(
`${nameSpace} setOctantRemoval`,
props<{
flag: boolean
}>()
)
export const setShowDelineation = createAction(
`${nameSpace} setShowDelineation`,
pr... |
245b98c7ac89a01d201cefb00041553eeebf6d085ab5c87d9b7003a5084b5c26 | TypeScript | 721 | 33 | import { Directive, HostListener, Input } from "@angular/core";
import { MatSnackBar } from "@angular/material/snack-bar";
import { Clipboard } from '@angular/cdk/clipboard'
@Directive({
selector: '[iav-clipboard-copy]',
exportAs: 'iavClipboardCopy'
})
export class ClipboardCopy{
@Input('iav-clipboard-copy')
... |
0697895f6c42527ed4912f8e27ac2016f3aec6491abe16d473916a2fc144f69f | TypeScript | 724 | 16 | // Copyright 2026 DeepMind Technologies Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
9dd092bd8f949b3a09c48c687c61f6850130f7d820feab63ede6a07ef462ce8e | TypeScript | 737 | 39 | import { createReducer, on } from "@ngrx/store";
import * as actions from "./actions"
import { PanelMode } from "./const"
export type UiStore = {
panelMode: PanelMode
panelOrder: string // permutation of 0123
octantRemoval: boolean
showDelineation: boolean
}
export const defaultState: UiStore = {
panelMode:... |
df7723d9c0bd4ce775a18f4c870b4ab243ee6fe4852f6f028d7be4e2227fa1d9 | TypeScript | 739 | 30 | import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { FormsModule } from "@angular/forms";
import { ComponentsModule } from "src/components";
import { AngularMaterialModule } from "src/sharedModules";
import { KeyFrameDirective } from "./keyframe.directive";
import { KeyFram... |
e4fe8771598ce8d0b2b514c91a941902f2928679b6e4a01ce512211f4e6ba2fc | TypeScript | 742 | 22 | export const environment = {
GIT_HASH: 'unknown hash',
VERSION: 'unknown version',
PRODUCTION: false,
BACKEND_URL: null,
SIIBRA_API_ENDPOINTS: 'https://siibra-api-latest.apps-dev.hbp.eu/v3_0', //'https://siibra-api-stable.apps.hbp.eu/v2_0,https://siibra-api-stable.apps.jsc.hbp.eu/v2_0,https://siibra-api-stab... |
f81c730b3aa00259d189c104a75716471fb7a9404daecb4ff67aa8163003cf69 | TypeScript | 762 | 28 | import { Pipe, PipeTransform } from "@angular/core";
export const steps = [
'byte(s)',
'KB',
'MB',
'GB',
'TB',
]
@Pipe({
name: 'humanReadableFileSizePipe',
})
export class HumanReadableFileSizePipe implements PipeTransform {
public transform(input: string | number, precision: number = 2) {
let _inp... |
e39c0d903c78729d0187e15077cce82015a4bfdadb29e00fe60a378cf5031b13 | TypeScript | 763 | 29 | import { CommonModule } from '@angular/common';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { SAPIModule } from 'src/atlasComponents/sapi';
import { EntryComponent } from './entry.component';
describe('EntryComponent', () => {
let component: EntryComponent;
let fixture: ComponentFixt... |
fe4bffb0dcb755b7a4438da32da4537a3f4fbf36c346383bd76f01298b1147df | TypeScript | 766 | 18 | // Copyright 2026 DeepMind Technologies Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
c628aa4bc573b904d045bfee137382fb66cfa974f7109a00b3a499f842ddd29f | TypeScript | 767 | 31 | import { AfterViewInit, Directive, HostListener, Input, OnDestroy, TemplateRef, ViewContainerRef } from "@angular/core";
import { ContextMenuService } from "./service";
import { TContextArg } from "src/viewerModule/viewer.interface";
@Directive({
selector: '[ctx-menu-host]'
})
export class CtxMenuHost implements On... |
7ecb4b216973775b5b5ed7a6c35bb0868e3d10508978e89e9cbf4cde802bd387 | TypeScript | 769 | 31 | import { InjectionToken } from "@angular/core";
import { MatDialogConfig, MatDialogRef } from "@angular/material/dialog";
export enum EnumActionToWidget{
OPEN,
CLOSE,
}
export interface IActionWidgetOption{
onClose?: () => void
data?: any
overrideMatDialogConfig?: Partial<MatDialogConfig>
id?: string
}
i... |
b02be5c68b85758fa9a309595dc7cd5927b668881b186ebe3bd628cd6fb23f6b | TypeScript | 780 | 29 | import { MatDialog } from '@angular/material/dialog';
import { Component } from "@angular/core";
import { ARIA_LABELS } from 'common/constants'
import { HowToCite } from '../howToCite/howToCite.component';
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { default: QUICK_STARTER } = require('!!raw-... |
5c2cc4170b7ed3710f1ed52386ede4f017fafc54233f3894eacaed5f14eab145 | TypeScript | 790 | 29 | import { Pipe, PipeTransform, SecurityContext } from "@angular/core";
import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
@Pipe({
name: 'transformOnhoverSegment',
})
export class TransformOnhoverSegmentPipe implements PipeTransform {
constructor(private sanitizer: DomSanitizer) {
}
private s... |
ced9f2882cc83a86af000cd092f3ebeadb56cf3850128e75a5f09e4a54fe53bc | TypeScript | 808 | 46 | import { createAction, props } from "@ngrx/store"
import { nameSpace, CSP } from "./const"
export const setAnimationFlag = createAction(
`${nameSpace} setAnimationFlag`,
props<{
flag: boolean
}>()
)
export const setGpuLimit = createAction(
`${nameSpace} setGpuLimit`,
props<{
limit: number
}>()
)
... |
96c158e379f289fe40c41f0ef826ea37d0068a3257ad2ec559fbae9190d3076d | TypeScript | 819 | 28 | import { Pipe, PipeTransform, SecurityContext } from "@angular/core";
import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
@Pipe({
name: 'hightlightPipe',
pure: true
})
export class HighlightPipe implements PipeTransform {
constructor(private sanitizer: DomSanitizer){}
transform(input: stri... |
fcc3bfeb606ec7bc0e56226e930bfdb297a89c72ada7a97db559bb598250c45a | TypeScript | 829 | 19 | // Copyright 2026 DeepMind Technologies Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
1dfaee3ebbb6c9b129e3d80a55783244b5bf16e8d37834dbda892b95311e2dc4 | TypeScript | 830 | 30 | import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { FileInputDirective } from "./getFileInput.directive";
import { MatDialogModule } from '@angular/material/dialog';
import { FileInputModal } from "./fileInputModal/fileInputModal.component";
import { FormsModule } from "@a... |
3d7de813b245cb8a0bf93c3f6740b2c8e4931c2ed4678d8d617f05127ccdc96d | TypeScript | 837 | 40 | import { createSelector } from "@ngrx/store"
import { nameSpace } from "./const"
import { UserPreference } from "./store"
const storeSelector = store => store[nameSpace] as UserPreference
export const useAnimation = createSelector(
storeSelector,
state => state.useAnimation
)
export const gpuLimit = createSelect... |
528c2683bef1eab514c0c428a1b8ceb2bbeb6914976d2834219cfdbe49ce0fc0 | TypeScript | 838 | 32 | import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { ComponentsModule } from "src/components";
import { UtilModule } from "src/util";
import { AngularMaterialModule } from "src/sharedModules";
import { AboutCmp } from './about/about.component'
import { HelpOnePager } from "... |
b20ef1221eae4caac00a0f674436c46a0b2063aaeee36e35c698689435e60d4f | TypeScript | 846 | 37 | import { InjectionToken } from '@angular/core'
import { Observable } from 'rxjs'
export const NEHUBA_VIEWER_FEATURE_KEY = 'ngViewerFeature'
export interface IRegion {
[key: string]: any
ngId: string
rgb?: [number, number, number]
}
export interface IMeshesToLoad {
labelIndicies: number[]
layer: {
name:... |
916155f623bf333dda000826362c61eed27d7a89ed7ef5766d8ed5e03e43186a | TypeScript | 853 | 29 | /* required or reflect metadata error will be thrown */
import 'reflect-metadata';
import 'zone.js/dist/zone'
import 'zone.js/dist/zone-testing'
import { getTestBed } from '@angular/core/testing'
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing'... |
c26b61e43f106a6af3f3759a9510bf237c1c414b420c067e44794f9860af6655 | TypeScript | 854 | 42 | import { Directive, HostListener, Input } from "@angular/core";
import { KeyFrameService } from "./service";
@Directive({
selector: '[key-frame-play-now]'
})
export class KeyFrameDirective{
@HostListener('click')
onClick(){
if (this._mode === 'on') {
this.svc.startKeyFrameSession()
return
}
... |
2e2dc4d621cd357a0400614fc722f653cd3f9109980a490db80d2d04b4b3a806 | TypeScript | 862 | 33 | import { SxplrAtlas, SxplrTemplate, SxplrParcellation, SxplrRegion } from "src/atlasComponents/sapi/sxplrTypes"
export const nameSpace = `[state.atlasSelection]`
export type ViewerMode = 'annotating' | 'key frame'
export type BreadCrumb = {
id: string
name: string
}
export type AtlasSelectionState = {
selectedA... |
3812cd1939584f6cd7d7a7fcd433bb44d7e620b09f94440da0bb8d88b5d6a561 | TypeScript | 873 | 28 | import { Directive, HostBinding, HostListener } from "@angular/core";
import { DomSanitizer, SafeUrl } from "@angular/platform-browser";
@Directive({
selector: '[floatingMouseContextualContainerDirective]',
})
export class FloatingMouseContextualContainerDirective {
private mousePos: [number, number] = [0, 0]
... |
43cc33c33bfecc022b810ad66e79c1488dc36b2aa4ff6a4739e708319ffb452c | TypeScript | 896 | 36 | import { CommonModule } from "@angular/common";
import { APP_INITIALIZER, NgModule } from "@angular/core";
import { MatCardModule } from "@angular/material/card";
import { APPEND_SCRIPT_TOKEN } from "src/util/constants";
import { LeapSignal } from "./leapSignal/leapSignal.component";
import { LeapService } from "./serv... |
931ad71b101940c55fca7596cf630f77b37f2fa44e2ce947cce78223bcfd4eb8 | TypeScript | 897 | 29 | import { InjectionToken } from "@angular/core";
import { Observable } from "rxjs";
/**
* Inject click interceptor
*/
export const CLICK_INTERCEPTOR_INJECTOR = new InjectionToken<ClickInterceptor>('CLICK_INTERCEPTOR_INJECTOR')
export type TClickInterceptorConfig = {
last?: boolean
}
/**
* Register callbacks
* i... |
3e3b495588c49ddc010cfb95ccf85bc7f65ccc7f357a878a40fffe81ffcf1fb8 | TypeScript | 898 | 22 | // Copyright 2026 DeepMind Technologies Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
428b6edabd45dbc7047f558f3e52ff46e4a134f340a2a2e410552a60f9eafa99 | TypeScript | 898 | 34 | import { Observable, of } from "rxjs"
import { SAPI } from "../sapi.service"
import { SapiParcellationModel } from "../typeV3"
import { SAPIBase } from "./base"
/**
* All valid parcellation features
*/
const ParcellationFeatures = {
RegionalConnectivity: "RegionalConnectivity",
} as const
export type PF = keyof t... |
b6502de4a49b0a3cc8417161abe81adab99c6dd0f58bdbbb8a4e10c0a89a260e | TypeScript | 908 | 36 | import { Component, Optional, Inject } from "@angular/core";
import { MAT_DIALOG_DATA } from "@angular/material/dialog";
interface IDialogAction{
type: 'mat-button' | 'mat-flat-button' | 'mat-raised-button' | 'mat-stroked-button'
color: 'primary' | 'accent' | 'warn' | 'default'
dismiss: boolean
text: string
... |
4f8b82fd67417f2ee8874b6d1087946c260e16073f98f9823928da847387df93 | TypeScript | 911 | 31 | import { CommonModule, DOCUMENT } from "@angular/common";
import { HttpClientModule } from "@angular/common/http";
import { NgModule } from "@angular/core";
import { LoggingModule } from "src/logging";
import { AngularMaterialModule } from "src/sharedModules";
import { UtilModule } from "src/util";
import { appendScrip... |
53459b6f3a6375f582af93c00e367c6d113323c3032d64be76f55f3eb91b28c5 | TypeScript | 913 | 27 | import { Directive, OnChanges, SimpleChanges } from "@angular/core";
import { BehaviorSubject, merge, NEVER } from "rxjs";
import { switchMap, filter, startWith, shareReplay, scan } from "rxjs/operators";
import { SAPI, SAPIRegion } from "src/atlasComponents/sapi";
import { SxplrAtlas, SxplrParcellation, SxplrTemplate... |
31c7c7bf94f36daa2c23f5d7d7f07746b8d32443e277c9d36b41ee542f318bb0 | TypeScript | 925 | 31 | import { Directive, Input, OnChanges, SimpleChanges } from "@angular/core";
import { GroupedFeature } from "./category-acc.directive";
import { combineLatest, Subject } from "rxjs";
import { map } from "rxjs/operators";
@Directive({
selector: '[filter-grp-feat]',
exportAs: 'filterGrpFeat'
})
export class FilterGro... |
c4ed36e874d21e91ed42bf65a9e972ad58abbca3ffeb9e5335c7422b814a8e96 | TypeScript | 930 | 31 | import { Pipe, PipeTransform } from "@angular/core";
import { SxplrParcellation } from "src/atlasComponents/sapi/sxplrTypes";
import { GroupedParcellation } from "./groupedParcellation";
@Pipe({
name: `filterGroupedParcs`,
pure: true
})
export class FilterGroupedParcellationPipe implements PipeTransform{
public... |
48a6c527b3c28cfe83feda36a997763e353a0d0339667ae1bf6175c54e8b86b0 | TypeScript | 932 | 34 | import { SxplrRegion, VoiFeature } from "src/atlasComponents/sapi/sxplrTypes"
import { IAnnotationGeometry } from "src/atlasComponents/userAnnotations/tools/type"
export type TOnHoverObj = {
regions: SxplrRegion[]
annotation: IAnnotationGeometry
voi: VoiFeature
}
/**
* Scan function which prepends newest posit... |
6060645e23163b2392a29ed266d62e372c4fc826e810477382aea2ba2e25c465 | TypeScript | 932 | 20 | // Copyright 2026 DeepMind Technologies Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
01c4ad3b6639b4f076e0aced63806a33132f2753b900acb80dfeed7216fe10bb | TypeScript | 945 | 35 | import { Component } from "@angular/core";
import { interval, merge, of } from "rxjs";
import { map } from "rxjs/operators";
import { UNSUPPORTED_INTERVAL, UNSUPPORTED_PREVIEW } from "src/util/constants";
import { MIN_REQ_EXPLAINER } from 'src/util/constants'
@Component({
selector: 'not-supported-component',
templ... |
5faf93570312e6661f37cb8eaaa16da3bd2869676e51a031ccb77475aae9a052 | TypeScript | 945 | 33 | import { Observable } from "rxjs"
import { SAPI } from "../sapi.service"
import { RouteParam } from "../typeV3"
const AllFeatures = {
CorticalProfile: "CorticalProfile",
EbrainsDataFeature: "EbrainsDataFeature",
RegionalConnectivity: "RegionalConnectivity",
Tabular: "Tabular",
// GeneExpressions: "GeneExpres... |
6f0bb6f5faec7b93731a1e0e92c3f61078a15940a09c60ea69e2a1f9bd75858e | TypeScript | 954 | 34 | import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { MatRippleModule } from "@angular/material/core";
import { MatMenuModule } from "@angular/material/menu";
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
import { SmartChip } from "./compone... |
e9abb9351d710f530abdb0f388c2f0a7b84d45c04b4d523c9e55b9f59b603bff | TypeScript | 954 | 34 | import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { ComponentsModule } from "src/components";
import { WidgetCanvas } from "./widgetCanvas.directive";
import { WidgetPortal } from "./widgetPortal/widgetPortal.component"
import { MatCardModule } from "@angular/material/card... |
233eb6df9a10fad2af0d1231cdf5cb0b3dbcab4d301b35a35c6e935b4690b1e1 | TypeScript | 963 | 27 | import { createSelector, select } from "@ngrx/store";
import { forkJoin, of, pipe } from "rxjs";
import { distinctUntilChanged, map, switchMap } from "rxjs/operators";
import { SAPI } from "src/atlasComponents/sapi";
import { translateV3Entities } from "src/atlasComponents/sapi/translateV3"
import { SxplrAtlas, SxplrPa... |
fbd452f0d8765fd06b383e68ef4c76135c68fbedb96456ad20ca014c12a5957f | TypeScript | 972 | 35 | import { CommonModule } from '@angular/common';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { EMPTY } from 'rxjs';
import { SAPIModule } from 'src/atlasComponents/sapi';
import { DARKTHEME } from 'src/util/injectionTokens';
import { FeatureViewComponent } from './feature-view.component';
... |
2e90574957c7d90015349065cd423c22f69df2f5a6f925ff4308ef95df6e2ab6 | TypeScript | 974 | 34 | import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { MatMenuModule } from "@angular/material/menu";
import { ViewerCtrlModule } from "../viewerCtrl";
import { NehubaLayoutOverlay } from "./nehuba.layoutOverlay/nehuba.layoutOverlay.component";
import { QuickTourModule } from... |
9298961b80a4b14b8712983935a571206d9abcaa0e2f30203592c5679693e66f | TypeScript | 980 | 26 | import { CommonModule } from "@angular/common"
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from "@angular/core"
import { MatDialogModule } from "@angular/material/dialog"
import { MatSnackBarModule } from "@angular/material/snack-bar"
import { DragDropFileModule } from "src/dragDropFile"
import { UserLayerDragDropDirec... |
3d305f1839131c69058a108a58b2b5371cb0395c599ed4f378afe09075c9efbe | TypeScript | 981 | 43 | import { Injectable } from "@angular/core";
import { fromEvent } from "rxjs";
import { filter, take } from "rxjs/operators";
import { getUuid } from "src/util/fn";
interface IWorkerMessage {
method: string
param: any
transfers?: any[]
}
@Injectable({
providedIn: 'root',
})
export class AtlasWorkerService {
... |
46db737920d0025ab4468c5954a0df67b19a13273bfb7fc94dfb1ea2f6acdb24 | TypeScript | 989 | 37 | import { TContextArg } from './../viewer.interface';
import { Pipe, PipeTransform } from "@angular/core";
type Point = [number, number, number]
type BBox = [Point, Point]
const MAGIC_RADIUS = 256
@Pipe({
name: "nehubaVCtxToBbox",
pure: true
})
export class NehubaVCtxToBbox implements PipeTransform{
public tra... |
fc67f3fc96a5c654d73327cf711a3de3147296368e3ec66ae9fde2e0367d1ad8 | TypeScript | 990 | 37 | import { NgModule } from "@angular/core";
import { AngularMaterialModule } from "src/sharedModules";
import { ClipboardCopy } from "./clipboardCopy.directive";
import { HttpClientModule } from "@angular/common/http";
import { SaneUrl } from "./saneUrl/saneUrl.component";
import { CommonModule } from "@angular/common";
... |
0070bbd146b41c5fbbcc393af452d363a7bfcfba449bd21ac5302535616a3a28 | TypeScript | 1,003 | 20 | export const IDS = {
ATLAES: {
HUMAN: "juelich/iav/atlas/v1.0.0/1",
RAT: "minds/core/parcellationatlas/v1.0.0/522b368e-49a3-49fa-88d3-0870a307974a",
},
TEMPLATES: {
BIG_BRAIN: "minds/core/referencespace/v1.0.0/a1655b99-82f1-420f-a3c2-fe80fd4c8588",
MNI152: "minds/core/referencespace/v1.0.0/dafcffc... |
fead91bd9906f80154ae4d6836a0988c7b793b466250f7688650120c3b6bde9b | TypeScript | 1,018 | 32 | // Copyright 2026 DeepMind Technologies Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
10f3737b304236853bb6cf8c63ab4f5ab6f094abd45fb4bc41def240a2abaaed | TypeScript | 1,040 | 40 | import { Component, HostListener, TemplateRef, HostBinding } from '@angular/core';
import { SlServiceService } from '../sl-service.service';
import { transition, animate, state, style, trigger } from '@angular/animations';
@Component({
selector: 'sl-spotlight-backdrop',
templateUrl: './spotlight-backdrop.component... |
364517194d7f79fecade0902152578a5e18b61b7ed8f20fa6884a648162869c5 | TypeScript | 1,046 | 37 | import { Pipe, PipeTransform } from "@angular/core";
import { SxplrParcellation } from "src/atlasComponents/sapi/sxplrTypes";
import { GroupedParcellation } from "./groupedParcellation";
import { translateV3Entities } from "src/atlasComponents/sapi/translateV3"
type Filterables = SxplrParcellation | GroupedParcellatio... |
767d9492b57f6beed847fac2770bd6b941b0845b8972ba4af0ed7b1d1e9c0920 | TypeScript | 1,065 | 27 | // Copyright 2026 DeepMind Technologies Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
7be13a315e10be20e05af3631a760aebe8fdc4bc84cdc4abcb142bfe5ebee5ac | TypeScript | 1,078 | 32 | // Copyright 2026 DeepMind Technologies Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
c67b1f3e1d6c727e69beb3657da1f530a406a1313e1680d40ae748e0b24df868 | TypeScript | 1,081 | 42 | import { getAtlases, getParcellations, getSpaces } from "src/atlasComponents/sapi/stories.base"
import { SapiAtlasModel, SapiParcellationModel, SapiSpaceModel } from "src/atlasComponents/sapi/type"
export const wrapperDecoratorFn = (story: string) => `
<style>
.wrapper {
width: 100%;
height: 100%;
back... |
df475457d8fde3d7a3381becad56eba6860efcd72997641f1eabd17ce9fcabf7 | TypeScript | 1,083 | 27 | // Copyright 2026 DeepMind Technologies Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
cee90574c444ba2721b30646c97b181e6e3cb7356e486f1b0f2937e5feda0046 | TypeScript | 1,101 | 55 | import { Directive, HostListener, Input, TemplateRef } from "@angular/core";
import { MatDialog, MatDialogConfig } from "@angular/material/dialog";
import { DialogFallbackCmp } from "./tmpl/tmpl.component"
type DialogSize = 's' | 'm' | 'l' | 'xl'
const sizeDict: Record<DialogSize, Partial<MatDialogConfig>> = {
's':... |
a621b3a9a26810d2ada3a5621e210effeac75f5ccd60c973e14b998f91c018e5 | TypeScript | 1,124 | 50 | import { Injectable, OnDestroy } from "@angular/core";
import { Store } from "@ngrx/store";
import { BehaviorSubject, Subscription } from "rxjs";
import { distinctUntilChanged } from "rxjs/operators";
import { actions } from "src/state/atlasSelection";
@Injectable()
export class KeyFrameService implements OnDestroy {
... |
b9e63d270881ced9835acea1ef3d77f21f9185012004ddb6acf19e3effe0d1f1 | TypeScript | 1,136 | 51 | import { createSelector } from "@ngrx/store"
import { nameSpace, AtlasSelectionState } from "./const"
export const viewerStateHelperStoreName = 'viewerStateHelper'
export const selectStore = (state: any) => state[nameSpace] as AtlasSelectionState
export const selectedAtlas = createSelector(
selectStore,
state =>... |
ee5dce400cc948de7556020cf6f180aa3ca3fa3055f797e25afcc75f7be50e9b | TypeScript | 1,153 | 28 | // Copyright 2026 DeepMind Technologies Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
3c344ff9366227fc92cde33ac68a8e7b09f9ab29753ab51f806cf980eb405df4 | TypeScript | 1,156 | 28 | // Copyright 2026 DeepMind Technologies Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
2b36c8a874a43bc6b368af7581fd3510818985be37f9720dbdac26ea2e807872 | TypeScript | 1,159 | 43 | import { Component, Inject, Input } from "@angular/core";
import { MAT_DIALOG_DATA } from "@angular/material/dialog";
@Component({
selector: 'confirm-dialog-component',
templateUrl: './confirmDialog.template.html',
styleUrls: [
'./confirmDialog.style.css',
],
})
export class ConfirmDialogComponent {
@In... |
1c6ad9defc9c7399374c53c5200ff7394cf7526d1d9efdc190db054528a12cc0 | TypeScript | 1,163 | 41 | import { Injectable } from "@angular/core";
import { NEVER } from "rxjs";
import { debounceTime, map, switchMap, take } from "rxjs/operators";
import { RouterService } from "src/routerModule/router.service";
import { SaneUrlSvc } from "src/share/saneUrl/saneUrl.service";
import { userAnnotationRouteKey } from "./consta... |
5e882177e364a4c7d2b2bd53dfa94888974d90ed7158dbd771c364f23bb66ea4 | TypeScript | 1,167 | 52 | import { Component, Input } from "@angular/core";
import { MatSnackBar } from "@angular/material/snack-bar";
import { ARIA_LABELS } from 'common/constants'
import { Clipboard } from "@angular/cdk/clipboard";
@Component({
selector: 'textarea-copy-export',
templateUrl: './textareaCopyExport.template.html',
styleUr... |
be1809d5506de786bdb473a229f92e226ea188ed78ec3a3379c4ef1fb7efab63 | TypeScript | 1,175 | 29 | // Copyright 2026 DeepMind Technologies Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
fb831844c55930149d1133fcbc6dd3ea659717b5d3852059911fa30b7a085641 | TypeScript | 1,180 | 50 | import { CommonModule } from "@angular/common"
import { Meta, moduleMetadata, Story } from "@storybook/angular"
import { AngularMaterialModule } from "src/sharedModules"
import {
DynamicMaterialBtn
} from "./dynamicMaterialBtn.component"
export default {
component: DynamicMaterialBtn,
decorators: [
moduleMet... |
ac24e7c402627a79c60d1a486cfd42522829f0786c336f8b01c78324d742d1f5 | TypeScript | 1,188 | 34 | // Copyright 2026 DeepMind Technologies Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
20a615720ed98cd7e0c974d747a0aa2da0a7952e5da05611761c7177b86d25b9 | TypeScript | 1,189 | 33 | // Copyright 2026 DeepMind Technologies Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
405877113ce3444fcca6af184652b0b14dd81be7777b1f75b5089f488ed6d9b3 | TypeScript | 1,193 | 46 | import { HttpClient } from "@angular/common/http";
import { Injectable } from "@angular/core";
import { throwError } from "rxjs";
import { catchError, mapTo } from "rxjs/operators";
import { BACKENDURL } from 'src/util/constants'
import { IKeyValStore, NotFoundError } from '../type'
@Injectable({
providedIn: 'root'
... |
a1eeab38f08f1cac115c7759e5c72c4b719796ff53253024d5da1d9f3acaca69 | TypeScript | 1,194 | 40 | // Copyright 2026 DeepMind Technologies Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
6ee11d84cde8893faf2253aaad161b1e8c460dea1017feab635e3dcd46304daa | TypeScript | 1,200 | 54 | import { createReducer, on } from "@ngrx/store";
import { actionRemoveAuxMesh, actionSetAuxMesh, actionSetAuxMeshes } from "./actions";
import { INehubaFeature } from "./type";
/**
* TODO port from global store to feature store
*/
export enum EnumPanelMode {
FOUR_PANEL = 'FOUR_PANEL',
V_ONE_THREE = 'V_ONE_THRE... |
2c2d9bc624f94736d338fa4d2b2531b3b3fda657700fcb5b1a035e531db3d3c7 | TypeScript | 1,221 | 38 | import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
import { ComponentsModule } from "src/components";
import { AngularMaterialModule } from "src/sharedModules";
import { UtilModule } from "src/util";
import { Viewe... |
1276c818ed4f395c1d571e6c5a70f1af5fddb140226ae9deb8e985c391679ffe | TypeScript | 1,237 | 54 | import { InjectionToken } from "@angular/core";
interface ILoadTemplateByIdPayload {
['@id']: string
}
interface IResourceType {
swc: string
}
export type TVec4 = number[]
export type TVec3 = number[]
export type TMat3 = TVec3[]
export type TMat4 = TVec4[]
interface ICommonResParam {
transform: TMat4
}
inter... |
739e5928ad399cfa7be047f1d18496a74afdbb8d4f646bbe08b31f8091308bd3 | TypeScript | 1,239 | 37 | // Copyright 2026 DeepMind Technologies Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
f2a1fc8cc48a92b4da6a4aad0b88e1b06d58f188fd99a8510c0051ba169dfa52 | TypeScript | 1,247 | 46 | import { CommonModule } from "@angular/common"
import { HttpClientModule } from "@angular/common/http"
import { Meta, moduleMetadata, Story } from "@storybook/angular"
import { provideDarkTheme } from "src/atlasComponents/sapi/stories.base"
import { ConfigModule } from "../module"
import { ConfigComponent } from "./con... |
da049607489f6e554cb4b0e8c0a9266b52c80d4211982600dc19075f0089933b | TypeScript | 1,257 | 54 | import { Directive } from "@angular/core";
import { BreakpointObserver } from "@angular/cdk/layout";
import { Observable } from "rxjs";
import { map } from "rxjs/operators";
const mediaBreakPoints = [
'(min-width: 576px)',
'(min-width: 768px)',
'(min-width: 992px)',
'(min-width: 1200px)',
// xxl, by popular... |
1860ff640869c81b2eac58d203e67d0fc18cf0bc88065fa4664fbec8e9862189 | TypeScript | 1,260 | 40 | import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { MatButtonModule } from "@angular/material/button";
import { MatRippleModule } from "@angular/material/core";
import { MatIconModule } from "@angular/material/icon";
import { MarkdownModule } from "src/components/markdown"... |
694f533fd4ea75dad1aaa98c2750e4ca7a83e6347c42147919142ca214690915 | TypeScript | 1,272 | 46 | import { Inject, Injectable, Optional } from "@angular/core";
import { concat, EMPTY, NEVER, Observable, of } from "rxjs";
import { delay, exhaustMap, shareReplay, switchMap, take, tap } from "rxjs/operators";
import { TNehubaViewerUnit } from "../constants";
import { NEHUBA_INSTANCE_INJTKN } from "../util";
@Injectab... |
890c148ea8eec52cb0d9f2a94c2cc9e3b53fc3c514eda78354cdf81675271d55 | TypeScript | 1,276 | 37 | // Copyright 2026 DeepMind Technologies Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
ef3e8f45d5bcef741d7c26f831bd701f64e6e271bfddad1c83d650e8316b17b1 | TypeScript | 1,276 | 39 | import { CdkTableDataSourceInput } from '@angular/cdk/table';
import { Pipe, PipeTransform } from '@angular/core';
import { TabularFeature } from 'src/atlasComponents/sapi/sxplrTypes';
function typeGuard(input: unknown): input is string | number | number[]{
return typeof input === "string" || typeof input === "numbe... |
693b5d37ac2ad3e1b2b814bf4f1972e148e114c8537f1eb49e7169391997a124 | TypeScript | 1,280 | 59 | import { HttpInterceptor, HttpEvent, HttpHandler, HttpRequest, HttpResponse, HttpHeaders } from '@angular/common/http'
import { Injectable } from '@angular/core';
import { Observable, of } from 'rxjs';
@Injectable()
export class HttpMockRequestInterceptor implements HttpInterceptor{
intercept(request:HttpRequest<an... |
c6f57def789ab9f22c22daaee697a085ea2452c095265264781c2ac16ed86b9e | TypeScript | 1,281 | 60 | import { TemplateRef } from "@angular/core";
import { MatBottomSheetConfig } from "@angular/material/bottom-sheet";
import { MatSnackBarConfig } from "@angular/material/snack-bar";
import { createAction, props } from "@ngrx/store";
import { nameSpace, PanelMode } from "./const"
export const openSidePanel = createActi... |
c41d2604eb5ccfd01e480730e2bf143b5d7e71cf0bab26af4cd2683dec7eb3d7 | TypeScript | 1,294 | 33 | // Copyright 2026 DeepMind Technologies Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
ddbd06ff226aab2e2055b486d9d63cb3f05944187bd36385b32518727e865bda | TypeScript | 1,303 | 34 | // Copyright 2026 DeepMind Technologies Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
d37f23e58b1c5ca819b5cfc903620f8ab1f55cb8e420f5fc4e105428ffef6d81 | TypeScript | 1,307 | 43 | // Copyright 2026 DeepMind Technologies Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.