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.
Files changed (48) hide show
  1. package/LICENSE +7 -0
  2. package/README.md +4 -0
  3. package/out/captions/caption-tag-matches.d.ts +13 -0
  4. package/out/captions/caption-tag-matches.js +40 -0
  5. package/out/captions/caption-tag-matches.js.map +1 -0
  6. package/out/captions/main.d.ts +2 -0
  7. package/out/captions/main.js +3 -0
  8. package/out/captions/main.js.map +1 -0
  9. package/out/fs/source-fs.d.ts +1 -0
  10. package/out/fs/source-fs.js +8 -0
  11. package/out/fs/source-fs.js.map +1 -0
  12. package/out/kv/main.d.ts +6 -0
  13. package/out/kv/main.js +10 -0
  14. package/out/kv/main.js.map +1 -0
  15. package/out/kv/parser-types.d.ts +123 -0
  16. package/out/kv/parser-types.js +296 -0
  17. package/out/kv/parser-types.js.map +1 -0
  18. package/out/kv/parser.d.ts +3 -0
  19. package/out/kv/parser.js +121 -0
  20. package/out/kv/parser.js.map +1 -0
  21. package/out/kv/serializer.d.ts +20 -0
  22. package/out/kv/serializer.js +143 -0
  23. package/out/kv/serializer.js.map +1 -0
  24. package/out/kv/string-util.d.ts +20 -0
  25. package/out/kv/string-util.js +44 -0
  26. package/out/kv/string-util.js.map +1 -0
  27. package/out/kv/tokenizer.d.ts +7 -0
  28. package/out/kv/tokenizer.js +137 -0
  29. package/out/kv/tokenizer.js.map +1 -0
  30. package/out/main.d.ts +5 -0
  31. package/out/main.js +6 -0
  32. package/out/main.js.map +1 -0
  33. package/out/vmt/color.d.ts +16 -0
  34. package/out/vmt/color.js +76 -0
  35. package/out/vmt/color.js.map +1 -0
  36. package/out/vmt/main.d.ts +5 -0
  37. package/out/vmt/main.js +6 -0
  38. package/out/vmt/main.js.map +1 -0
  39. package/out/vmt/matrix.d.ts +5 -0
  40. package/out/vmt/matrix.js +15 -0
  41. package/out/vmt/matrix.js.map +1 -0
  42. package/out/vmt/shader-param-list.d.ts +3 -0
  43. package/out/vmt/shader-param-list.js +964 -0
  44. package/out/vmt/shader-param-list.js.map +1 -0
  45. package/out/vmt/shader-param.d.ts +14 -0
  46. package/out/vmt/shader-param.js +16 -0
  47. package/out/vmt/shader-param.js.map +1 -0
  48. package/package.json +31 -0
@@ -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,5 @@
1
+ export declare const matrixRegExp: RegExp;
2
+ export declare function getMatrixMatches(matrixString: string): {
3
+ validFormat: boolean;
4
+ values: number[];
5
+ };
@@ -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"}
@@ -0,0 +1,3 @@
1
+ import { ShaderParam } from "./shader-param";
2
+ export declare const shaderParams: ShaderParam[];
3
+ export declare const internalTextures: string[];