sourcelib 0.1.0
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/LICENSE +7 -0
- package/README.md +4 -0
- package/out/captions/caption-tag-matches.d.ts +13 -0
- package/out/captions/caption-tag-matches.js +40 -0
- package/out/captions/caption-tag-matches.js.map +1 -0
- package/out/captions/main.d.ts +2 -0
- package/out/captions/main.js +3 -0
- package/out/captions/main.js.map +1 -0
- package/out/fs/source-fs.d.ts +1 -0
- package/out/fs/source-fs.js +8 -0
- package/out/fs/source-fs.js.map +1 -0
- package/out/kv/main.d.ts +6 -0
- package/out/kv/main.js +10 -0
- package/out/kv/main.js.map +1 -0
- package/out/kv/parser-types.d.ts +123 -0
- package/out/kv/parser-types.js +296 -0
- package/out/kv/parser-types.js.map +1 -0
- package/out/kv/parser.d.ts +3 -0
- package/out/kv/parser.js +121 -0
- package/out/kv/parser.js.map +1 -0
- package/out/kv/serializer.d.ts +20 -0
- package/out/kv/serializer.js +143 -0
- package/out/kv/serializer.js.map +1 -0
- package/out/kv/string-util.d.ts +20 -0
- package/out/kv/string-util.js +44 -0
- package/out/kv/string-util.js.map +1 -0
- package/out/kv/tokenizer.d.ts +7 -0
- package/out/kv/tokenizer.js +137 -0
- package/out/kv/tokenizer.js.map +1 -0
- package/out/main.d.ts +5 -0
- package/out/main.js +6 -0
- package/out/main.js.map +1 -0
- package/out/vmt/color.d.ts +16 -0
- package/out/vmt/color.js +76 -0
- package/out/vmt/color.js.map +1 -0
- package/out/vmt/main.d.ts +5 -0
- package/out/vmt/main.js +6 -0
- package/out/vmt/main.js.map +1 -0
- package/out/vmt/matrix.d.ts +5 -0
- package/out/vmt/matrix.js +15 -0
- package/out/vmt/matrix.js.map +1 -0
- package/out/vmt/shader-param-list.d.ts +3 -0
- package/out/vmt/shader-param-list.js +964 -0
- package/out/vmt/shader-param-list.js.map +1 -0
- package/out/vmt/shader-param.d.ts +14 -0
- package/out/vmt/shader-param.js +16 -0
- package/out/vmt/shader-param.js.map +1 -0
- package/package.json +31 -0
package/out/vmt/main.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ShaderParam, ShaderParamHint } from "./shader-param";
|
|
2
|
+
import { shaderParams, internalTextures } from "./shader-param-list";
|
|
3
|
+
import { ColorMatchDescription, ColorMatchParenthesisType, getColorMatches } from "./color";
|
|
4
|
+
import { getMatrixMatches, matrixRegExp } from "./matrix";
|
|
5
|
+
export { ShaderParam, ShaderParamHint, ColorMatchDescription, ColorMatchParenthesisType, getColorMatches, getMatrixMatches, matrixRegExp, shaderParams, internalTextures };
|
|
6
|
+
//# sourceMappingURL=main.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/vmt/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAG,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC5F,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE1D,OAAO,EACH,WAAW,EAAE,eAAe,EAC5B,qBAAqB,EAAE,yBAAyB,EAAE,eAAe,EACjE,gBAAgB,EAAE,YAAY,EAC9B,YAAY,EAAE,gBAAgB,EACjC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const matrixRegExp = / *\[ ((\d+(\.\d+)?|\.\d+) ?|)+\] */;
|
|
2
|
+
export function getMatrixMatches(matrixString) {
|
|
3
|
+
const matches = matrixString.match(matrixRegExp);
|
|
4
|
+
if (!matches)
|
|
5
|
+
return {
|
|
6
|
+
validFormat: false,
|
|
7
|
+
values: []
|
|
8
|
+
};
|
|
9
|
+
const vals = matches[1].split(" ").map(v => parseFloat(v));
|
|
10
|
+
return {
|
|
11
|
+
validFormat: true,
|
|
12
|
+
values: vals
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=matrix.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matrix.js","sourceRoot":"","sources":["../../src/vmt/matrix.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,oCAAoC,CAAC;AAEjE,MAAM,UAAU,gBAAgB,CAAC,YAAoB;IACjD,MAAM,OAAO,GAAG,YAAY,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IACjD,IAAG,CAAC,OAAO;QAAE,OAAO;YAChB,WAAW,EAAE,KAAK;YAClB,MAAM,EAAE,EAAE;SACb,CAAC;IAEF,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IAE3D,OAAO;QACH,WAAW,EAAE,IAAI;QACjB,MAAM,EAAE,IAAI;KACf,CAAC;AACN,CAAC"}
|