完成 wire和pin和AltiumRectangle

main
zcy 2024-03-02 09:40:02 +08:00
parent 19bfec247c
commit 9e95cd3e62
3 changed files with 951 additions and 738 deletions

View File

@ -25,7 +25,7 @@ style="overflow:auto;position:relative;width:1500px;height:600px;border:1px soli
// renderSchematic(getTestFile());
function readSchematicFile(e) {
console.log(e)
// console.log(e)
let file = e.target.files[0];
if (!file)
{
@ -36,7 +36,7 @@ function readSchematicFile(e) {
{
let contents = e.target.result;
let cfbs = window.cfb
console.log(contents)
// console.log(contents)
var dec = new TextDecoder("utf-8");
let arr = Array.prototype.slice.call(new Uint8Array(contents ));

View File

@ -697,7 +697,7 @@ class AltiumDocument
this.stream = new U8Stream(streams);
this.records = [];
let index = -1; // header comes first, so give it an index of -1
console.log(this.stream.length)
// console.log(this.stream.length)
while (this.stream.u8stream_position < this.stream.length)
{
this.records.push(new AltiumRecord(this.stream, index));

File diff suppressed because it is too large Load Diff