mirror of
https://github.com/SamEyeBam/animate.git
synced 2025-09-28 06:55:25 +00:00
larry babby and threejs for glsl
This commit is contained in:
1
webGl/my-threejs-test/node_modules/posthtml-parser/dist/chunk.T6SARJYH.js
generated
vendored
Normal file
1
webGl/my-threejs-test/node_modules/posthtml-parser/dist/chunk.T6SARJYH.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var i=class{constructor(t){this.source=t,this.lastPosition={line:1,column:1},this.lastIndex=0}getPosition(t){if(t<this.lastIndex)throw new Error("Source indices must be monotonic");for(;this.lastIndex<t;)this.source.charCodeAt(this.lastIndex)===10?(this.lastPosition.line++,this.lastPosition.column=1):this.lastPosition.column++,this.lastIndex++;return{line:this.lastPosition.line,column:this.lastPosition.column}}};exports.a = i;
|
26
webGl/my-threejs-test/node_modules/posthtml-parser/dist/index.d.ts
generated
vendored
Normal file
26
webGl/my-threejs-test/node_modules/posthtml-parser/dist/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import { ParserOptions } from 'htmlparser2';
|
||||
import { SourceLocation } from './location-tracker';
|
||||
|
||||
declare type Directive = {
|
||||
name: string | RegExp;
|
||||
start: string;
|
||||
end: string;
|
||||
};
|
||||
declare type Options = {
|
||||
directives?: Directive[];
|
||||
sourceLocations?: boolean;
|
||||
} & ParserOptions;
|
||||
declare type Tag = string | boolean;
|
||||
declare type Attributes = Record<string, string | number | boolean>;
|
||||
declare type Content = NodeText | Array<Node | Node[]>;
|
||||
declare type NodeText = string | number;
|
||||
declare type NodeTag = {
|
||||
tag?: Tag;
|
||||
attrs?: Attributes;
|
||||
content?: Content;
|
||||
location?: SourceLocation;
|
||||
};
|
||||
declare type Node = NodeText | NodeTag;
|
||||
declare const parser: (html: string, options?: Options) => Node[];
|
||||
|
||||
export { Attributes, Content, Directive, Node, NodeTag, NodeText, Options, Tag, parser };
|
1
webGl/my-threejs-test/node_modules/posthtml-parser/dist/index.js
generated
vendored
Normal file
1
webGl/my-threejs-test/node_modules/posthtml-parser/dist/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkT6SARJYHjs = require('./chunk.T6SARJYH.js');var _htmlparser2 = require('htmlparser2');var j={lowerCaseTags:!1,lowerCaseAttributeNames:!1,decodeEntities:!1},v=[{name:"!doctype",start:"<",end:">"}],I= exports.parser =(d,f={})=>{let c=new (0, _chunkT6SARJYHjs.a)(d),i=[],s=[],p=0;function a(){return i[i.length-1]}function b(n,t){return n.name instanceof RegExp?new RegExp(n.name.source,"i").test(t):t===n.name}function y(n){let t={};return Object.keys(n).forEach(e=>{let o={};o[e]=String(n[e]).replace(/"/g,'"'),Object.assign(t,o)}),t}function x(n,t){var g;let e=v.concat((g=f.directives)!=null?g:[]),o=a();for(let u of e){let l=u.start+t+u.end;if(b(u,n.toLowerCase())){if(o===void 0){s.push(l);return}typeof o=="object"&&(o.content===void 0&&(o.content=[]),Array.isArray(o.content)&&o.content.push(l))}}}function A(n){let t=a(),e=`<!--${n}-->`;if(t===void 0){s.push(e);return}typeof t=="object"&&(t.content===void 0&&(t.content=[]),Array.isArray(t.content)&&t.content.push(e))}function m(n,t){let e={tag:n};f.sourceLocations&&(e.location={start:c.getPosition(r.startIndex),end:c.getPosition(r.endIndex)},p=r.endIndex),Object.keys(t).length>0&&(e.attrs=y(t)),i.push(e)}function h(n,t){let e=i.pop();if(e&&typeof e=="object"&&e.location&&r.endIndex!==null&&(t?p<r.startIndex&&(e.location.end=c.getPosition(r.startIndex-1)):e.location.end=c.getPosition(r.endIndex)),e){let o=a();if(i.length<=0){s.push(e);return}typeof o=="object"&&(o.content===void 0&&(o.content=[]),Array.isArray(o.content)&&o.content.push(e))}}function N(n){let t=a();if(t===void 0){s.push(n);return}if(typeof t=="object"){if(t.content&&Array.isArray(t.content)&&t.content.length>0){let e=t.content[t.content.length-1];if(typeof e=="string"&&!e.startsWith("<!--")){t.content[t.content.length-1]=`${e}${n}`;return}}t.content===void 0&&(t.content=[]),Array.isArray(t.content)&&t.content.push(n)}}let r=new (0, _htmlparser2.Parser)({onprocessinginstruction:x,oncomment:A,onopentag:m,onclosetag:h,ontext:N},{...j,...f});return r.write(d),r.end(),s};exports.parser = I;
|
17
webGl/my-threejs-test/node_modules/posthtml-parser/dist/location-tracker.d.ts
generated
vendored
Normal file
17
webGl/my-threejs-test/node_modules/posthtml-parser/dist/location-tracker.d.ts
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
declare type SourceLocation = {
|
||||
start: Position;
|
||||
end: Position;
|
||||
};
|
||||
declare type Position = {
|
||||
line: number;
|
||||
column: number;
|
||||
};
|
||||
declare class LocationTracker {
|
||||
private readonly source;
|
||||
private lastPosition;
|
||||
private lastIndex;
|
||||
constructor(source: string);
|
||||
getPosition(index: number): Position;
|
||||
}
|
||||
|
||||
export { LocationTracker, Position, SourceLocation };
|
1
webGl/my-threejs-test/node_modules/posthtml-parser/dist/location-tracker.js
generated
vendored
Normal file
1
webGl/my-threejs-test/node_modules/posthtml-parser/dist/location-tracker.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkT6SARJYHjs = require('./chunk.T6SARJYH.js');exports.LocationTracker = _chunkT6SARJYHjs.a;
|
Reference in New Issue
Block a user