Initial commit
This commit is contained in:
20
dist/bim-engine-sdk.es.js
vendored
Normal file
20
dist/bim-engine-sdk.es.js
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
class e {
|
||||
container;
|
||||
constructor(n) {
|
||||
const i = typeof n == "string" ? document.getElementById(n) : n;
|
||||
if (!i) throw new Error("Container not found");
|
||||
this.container = i, this.init();
|
||||
}
|
||||
init() {
|
||||
this.container.innerHTML = `
|
||||
<div style="font-family: sans-serif; color: #333;">
|
||||
<h1>BimEngine</h1>
|
||||
<p>这是一个纯 TypeScript 组件入口。</p>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
}
|
||||
export {
|
||||
e as BimEngine
|
||||
};
|
||||
//# sourceMappingURL=bim-engine-sdk.es.js.map
|
||||
1
dist/bim-engine-sdk.es.js.map
vendored
Normal file
1
dist/bim-engine-sdk.es.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"bim-engine-sdk.es.js","sources":["../src/BimEngine.ts"],"sourcesContent":["export class BimEngine {\n private container: HTMLElement;\n\n constructor(container: HTMLElement | string) {\n const el = typeof container === 'string' ? document.getElementById(container) : container;\n if (!el) throw new Error('Container not found');\n this.container = el;\n this.init();\n }\n\n private init() {\n this.container.innerHTML = `\n <div style=\"font-family: sans-serif; color: #333;\">\n <h1>BimEngine</h1>\n <p>这是一个纯 TypeScript 组件入口。</p>\n </div>\n `;\n }\n}"],"names":["BimEngine","container","el"],"mappings":"AAAO,MAAMA,EAAU;AAAA,EACX;AAAA,EAER,YAAYC,GAAiC;AACzC,UAAMC,IAAK,OAAOD,KAAc,WAAW,SAAS,eAAeA,CAAS,IAAIA;AAChF,QAAI,CAACC,EAAI,OAAM,IAAI,MAAM,qBAAqB;AAC9C,SAAK,YAAYA,GACjB,KAAK,KAAA;AAAA,EACT;AAAA,EAEQ,OAAO;AACX,SAAK,UAAU,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM/B;AACJ;"}
|
||||
7
dist/bim-engine-sdk.umd.js
vendored
Normal file
7
dist/bim-engine-sdk.umd.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
(function(e,n){typeof exports=="object"&&typeof module<"u"?n(exports):typeof define=="function"&&define.amd?define(["exports"],n):(e=typeof globalThis<"u"?globalThis:e||self,n(e.BimEngineSDK={}))})(this,(function(e){"use strict";class n{container;constructor(i){const t=typeof i=="string"?document.getElementById(i):i;if(!t)throw new Error("Container not found");this.container=t,this.init()}init(){this.container.innerHTML=`
|
||||
<div style="font-family: sans-serif; color: #333;">
|
||||
<h1>BimEngine</h1>
|
||||
<p>这是一个纯 TypeScript 组件入口。</p>
|
||||
</div>
|
||||
`}}e.BimEngine=n,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
||||
//# sourceMappingURL=bim-engine-sdk.umd.js.map
|
||||
1
dist/bim-engine-sdk.umd.js.map
vendored
Normal file
1
dist/bim-engine-sdk.umd.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"bim-engine-sdk.umd.js","sources":["../src/BimEngine.ts"],"sourcesContent":["export class BimEngine {\n private container: HTMLElement;\n\n constructor(container: HTMLElement | string) {\n const el = typeof container === 'string' ? document.getElementById(container) : container;\n if (!el) throw new Error('Container not found');\n this.container = el;\n this.init();\n }\n\n private init() {\n this.container.innerHTML = `\n <div style=\"font-family: sans-serif; color: #333;\">\n <h1>BimEngine</h1>\n <p>这是一个纯 TypeScript 组件入口。</p>\n </div>\n `;\n }\n}"],"names":["BimEngine","container","el"],"mappings":"qOAAO,MAAMA,CAAU,CACX,UAER,YAAYC,EAAiC,CACzC,MAAMC,EAAK,OAAOD,GAAc,SAAW,SAAS,eAAeA,CAAS,EAAIA,EAChF,GAAI,CAACC,EAAI,MAAM,IAAI,MAAM,qBAAqB,EAC9C,KAAK,UAAYA,EACjB,KAAK,KAAA,CACT,CAEQ,MAAO,CACX,KAAK,UAAU,UAAY;AAAA;AAAA;AAAA;AAAA;AAAA,SAM/B,CACJ"}
|
||||
7
dist/index.d.ts
vendored
Normal file
7
dist/index.d.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
export declare class BimEngine {
|
||||
private container;
|
||||
constructor(container: HTMLElement | string);
|
||||
private init;
|
||||
}
|
||||
|
||||
export { }
|
||||
Reference in New Issue
Block a user