@equinor/videx-map
Advanced tools
Comparing version 1.4.3 to 1.4.4
import { WellboreEventData } from "./data"; | ||
import { HighlightEvent } from "./data/WellboreEventData"; | ||
import { EventHandler } from "../../EventHandler"; | ||
/** Resize config for [Multiplier] * [Base] ^ -(zoom - [zoomReference]). */ | ||
export interface ResizeConfig { | ||
/** Base of resizing function. Size does not change when base is 2. (Default: 1.75) */ | ||
base: number; | ||
/** Multiplier for adding additional size. (Default: 1) */ | ||
multiplier: number; | ||
/** Reference for calculating origin size. (Default: 12) */ | ||
zoomReference: number; | ||
} | ||
/** Interface for wellbore config. */ | ||
@@ -16,9 +25,11 @@ export interface Config { | ||
zoomOrigin: number; | ||
/** Grid size to control resolution of spacial indexing */ | ||
/** Grid size to control resolution of spacial indexing. */ | ||
gridSize: number; | ||
/** Function to be called when a wellbore is selected */ | ||
/** Resize configurations of roots. */ | ||
rootResize: ResizeConfig; | ||
/** Function to be called when a wellbore is selected. */ | ||
onWellboreClick?: (wellbore: WellboreEventData) => void; | ||
/** Function to be called when wellbores are highlighted */ | ||
/** Function to be called when wellbores are highlighted. */ | ||
onHighlightOn?: (event: HighlightEvent) => void; | ||
/** Function to be called when highlight is removed */ | ||
/** Function to be called when highlight is removed. */ | ||
onHighlightOff?: () => void; | ||
@@ -56,2 +67,4 @@ } | ||
gridSize?: number; | ||
/** Resize configurations of roots. */ | ||
rootResize?: ResizeConfig; | ||
/** Function to be called when a wellbore is selected */ | ||
@@ -58,0 +71,0 @@ onWellboreClick?: (selected: WellboreEventData) => void; |
import * as PIXI from 'pixi.js'; | ||
import { Color } from './Colors'; | ||
import { ResizeConfig } from './Config'; | ||
declare type vec3 = [number, number, number]; | ||
@@ -34,2 +35,12 @@ /** Uniforms used by the shader. */ | ||
export declare function getCircleShader(): PIXI.Shader; | ||
export declare class RootShader { | ||
static resizeConfig: ResizeConfig; | ||
static setResize(resizeConfig: ResizeConfig): void; | ||
/** Build root shader with assigned variables. */ | ||
static buildShader(): void; | ||
private static buildVertexShader; | ||
private static buildFragmentShader; | ||
static vertexShader: string; | ||
static fragmentShader: string; | ||
} | ||
export {}; |
{ | ||
"name": "@equinor/videx-map", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"description": "Component for Pixi-overlay in Leaflet.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
283088
2277