@idetik/core 0.20.1 → 0.20.2
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.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1135 -1231
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +32 -69
- package/dist/index.umd.cjs.map +1 -1
- package/dist/types/src/objects/renderable/image_renderable.d.ts +2 -11
- package/dist/types/src/objects/renderable/image_renderable.d.ts.map +1 -1
- package/dist/types/src/objects/textures/channel.d.ts.map +1 -1
- package/dist/types/src/renderers/shaders/index.d.ts +1 -1
- package/dist/types/src/renderers/shaders/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2,20 +2,11 @@ import { RenderableObject } from "../../core/renderable_object";
|
|
|
2
2
|
import { Texture } from "../../objects/textures/texture";
|
|
3
3
|
import { ChannelProps } from "../../objects/textures/channel";
|
|
4
4
|
import { vec3 } from "gl-matrix";
|
|
5
|
-
type
|
|
5
|
+
type UniformValues = {
|
|
6
6
|
ImageSampler: number;
|
|
7
7
|
Color: vec3;
|
|
8
8
|
ValueOffset: number;
|
|
9
9
|
ValueScale: number;
|
|
10
|
-
ChannelCount: number;
|
|
11
|
-
};
|
|
12
|
-
type ArrayUniformValues = {
|
|
13
|
-
ImageSampler: number;
|
|
14
|
-
ChannelCount: number;
|
|
15
|
-
"Visible[0]": boolean[];
|
|
16
|
-
"Color[0]": number[];
|
|
17
|
-
"ValueOffset[0]": number[];
|
|
18
|
-
"ValueScale[0]": number[];
|
|
19
10
|
};
|
|
20
11
|
export declare class ImageRenderable extends RenderableObject {
|
|
21
12
|
private channels_;
|
|
@@ -23,7 +14,7 @@ export declare class ImageRenderable extends RenderableObject {
|
|
|
23
14
|
get type(): string;
|
|
24
15
|
setChannelProps(channels: ChannelProps[]): void;
|
|
25
16
|
setChannelProperty<K extends keyof ChannelProps>(channelIndex: number, property: K, value: Required<ChannelProps>[K]): void;
|
|
26
|
-
getUniforms():
|
|
17
|
+
getUniforms(): UniformValues;
|
|
27
18
|
}
|
|
28
19
|
export {};
|
|
29
20
|
//# sourceMappingURL=image_renderable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image_renderable.d.ts","sourceRoot":"","sources":["../../../../../src/objects/renderable/image_renderable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"image_renderable.d.ts","sourceRoot":"","sources":["../../../../../src/objects/renderable/image_renderable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAEL,YAAY,EAGb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC,KAAK,aAAa,GAAG;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,IAAI,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,qBAAa,eAAgB,SAAQ,gBAAgB;IACnD,OAAO,CAAC,SAAS,CAAsB;gBAGrC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,QAAQ,GAAE,YAAY,EAAO;IAS/B,IAAW,IAAI,WAEd;IAEM,eAAe,CAAC,QAAQ,EAAE,YAAY,EAAE;IAIxC,kBAAkB,CAAC,CAAC,SAAS,MAAM,YAAY,EACpD,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,CAAC,EACX,KAAK,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;IAUlB,WAAW,IAAI,aAAa;CAe7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../../../../src/objects/textures/channel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EACL,OAAO,EAER,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../../../../src/objects/textures/channel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EACL,OAAO,EAER,MAAM,gCAAgC,CAAC;AAIxC,MAAM,MAAM,OAAO,GAAG;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;IACb,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC,CAAC;AAEF,2CAA2C;AAC3C,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,YAAY,EAAE,GAAG,SAAS,CAAC;IACzC,eAAe,CAAC,YAAY,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;IACpD,iBAAiB,IAAI,IAAI,CAAC;IAC1B,wBAAwB,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;IACrD,2BAA2B,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;CACzD;AAED,wBAAgB,eAAe,CAC7B,OAAO,EAAE,OAAO,GAAG,IAAI,EACvB,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE,YAAY,GAC/C,OAAO,CAwBT;AAED,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,OAAO,GAAG,IAAI,EACvB,YAAY,EAAE,YAAY,EAAE,GAC3B,OAAO,EAAE,CAMX;AAED,wBAAgB,yBAAyB,CACvC,YAAY,EAAE,YAAY,EAAE,GAAG,SAAS,EACxC,kBAAkB,EAAE,MAAM,GACzB,IAAI,CAON"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type Shader = "floatScalarImage" | "
|
|
1
|
+
export type Shader = "floatScalarImage" | "floatVolume" | "intScalarImage" | "intVolume" | "labelImage" | "points" | "projectedLine" | "uintScalarImage" | "uintVolume" | "wireframe";
|
|
2
2
|
type ShaderCode = {
|
|
3
3
|
vertex: string;
|
|
4
4
|
vertexDefines?: ReadonlyMap<string, string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/renderers/shaders/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/renderers/shaders/index.ts"],"names":[],"mappings":"AAYA,MAAM,MAAM,MAAM,GACd,kBAAkB,GAClB,aAAa,GACb,gBAAgB,GAChB,WAAW,GACX,YAAY,GACZ,QAAQ,GACR,eAAe,GACf,iBAAiB,GACjB,YAAY,GACZ,WAAW,CAAC;AAEhB,KAAK,UAAU,GAAG;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CA6CjD,CAAC"}
|