geomui 0.5.52 → 0.5.55
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/dist/Drawing.svelte +283 -221
- package/dist/Drawing.svelte.d.ts +23 -21
- package/dist/DrawingList.svelte +43 -30
- package/dist/DrawingList.svelte.d.ts +18 -16
- package/dist/InputParams.svelte +321 -258
- package/dist/InputParams.svelte.d.ts +24 -22
- package/dist/LabelCheckbox.svelte +2 -1
- package/dist/LabelCheckbox.svelte.d.ts +16 -14
- package/dist/LocStorRead.svelte +23 -17
- package/dist/LocStorRead.svelte.d.ts +19 -17
- package/dist/LocStorTable.svelte +79 -65
- package/dist/LocStorTable.svelte.d.ts +20 -18
- package/dist/LocStorWrite.svelte +36 -21
- package/dist/LocStorWrite.svelte.d.ts +19 -17
- package/dist/ModalDiag.svelte +17 -12
- package/dist/ModalDiag.svelte.d.ts +30 -20
- package/dist/ModalImg.svelte +7 -5
- package/dist/ModalImg.svelte.d.ts +19 -17
- package/dist/OneDesign.svelte +11 -6
- package/dist/OneDesign.svelte.d.ts +19 -17
- package/dist/ParamDrawExport.svelte +151 -131
- package/dist/ParamDrawExport.svelte.d.ts +20 -18
- package/dist/SimpleDrawing.svelte +65 -49
- package/dist/SimpleDrawing.svelte.d.ts +22 -20
- package/dist/SubDesign.svelte +57 -41
- package/dist/SubDesign.svelte.d.ts +20 -18
- package/dist/TimeControl.svelte +71 -63
- package/dist/TimeControl.svelte.d.ts +21 -19
- package/dist/ZoomControl.svelte +31 -14
- package/dist/ZoomControl.svelte.d.ts +18 -16
- package/package.json +11 -11
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import type { tPageDef, tAllLink } from 'geometrix';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
3
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
+
$$bindings?: Bindings;
|
|
5
|
+
} & Exports;
|
|
6
|
+
(internal: unknown, props: Props & {
|
|
7
|
+
$$events?: Events;
|
|
8
|
+
$$slots?: Slots;
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
7
12
|
};
|
|
8
|
-
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
exports?: {} | undefined;
|
|
13
|
-
bindings?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
export type OneDesignProps = typeof __propDef.props;
|
|
16
|
-
export type OneDesignEvents = typeof __propDef.events;
|
|
17
|
-
export type OneDesignSlots = typeof __propDef.slots;
|
|
18
|
-
export default class OneDesign extends SvelteComponent<OneDesignProps, OneDesignEvents, OneDesignSlots> {
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
19
14
|
}
|
|
20
|
-
|
|
15
|
+
declare const OneDesign: $$__sveltets_2_IsomorphicComponent<{
|
|
16
|
+
pageDef: tPageDef;
|
|
17
|
+
pLink: tAllLink;
|
|
18
|
+
}, {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
}, {}, {}, string>;
|
|
21
|
+
type OneDesign = InstanceType<typeof OneDesign>;
|
|
22
|
+
export default OneDesign;
|
|
@@ -1,132 +1,152 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
let
|
|
31
|
-
let
|
|
32
|
-
let
|
|
33
|
-
let
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
//import type { tParamDef, tGeomFunc, tSubDesign, tAllLink, tCanvasAdjust } from 'geometrix';
|
|
3
|
+
import type { tParamDef, tGeomFunc, tSubDesign, tAllLink } from 'geometrix';
|
|
4
|
+
import {
|
|
5
|
+
EFormat,
|
|
6
|
+
fileBinContent,
|
|
7
|
+
fileTextContent,
|
|
8
|
+
fileSuffix,
|
|
9
|
+
fileMime,
|
|
10
|
+
fileBin,
|
|
11
|
+
adjustZero
|
|
12
|
+
} from 'geometrix';
|
|
13
|
+
import InputParams from './InputParams.svelte';
|
|
14
|
+
import Drawing from './Drawing.svelte';
|
|
15
|
+
import SubDesign from './SubDesign.svelte';
|
|
16
|
+
import { storePV } from './storePVal';
|
|
17
|
+
|
|
18
|
+
export let pDef: tParamDef;
|
|
19
|
+
export let fgeom: tGeomFunc;
|
|
20
|
+
export let pLink: tAllLink;
|
|
21
|
+
|
|
22
|
+
function checkWarn(txt: string) {
|
|
23
|
+
let rWarn = true;
|
|
24
|
+
const re = /warn/i;
|
|
25
|
+
if (txt.search(re) < 0) {
|
|
26
|
+
rWarn = false;
|
|
27
|
+
}
|
|
28
|
+
return rWarn;
|
|
29
|
+
}
|
|
30
|
+
let optFaces: string[] = [];
|
|
31
|
+
let exportFace: string;
|
|
32
|
+
let selFace: string;
|
|
33
|
+
let simTime = 0;
|
|
34
|
+
let zAdjust = adjustZero();
|
|
35
|
+
// log and paramChange
|
|
36
|
+
let logValue = 'Dummy initial\nWill be replaced during onMount\n';
|
|
37
|
+
let calcErr = false;
|
|
38
|
+
let calcWarn = false;
|
|
39
|
+
let subD: tSubDesign = {};
|
|
40
|
+
function paramChange2(iPageName: string, iSimTime: number) {
|
|
41
|
+
const mydate = new Date().toLocaleTimeString();
|
|
42
|
+
logValue = `Geometry ${iPageName} computed at ${mydate}\n`;
|
|
43
|
+
const geome = fgeom(iSimTime, $storePV[pDef.partName]);
|
|
44
|
+
logValue += geome.logstr;
|
|
45
|
+
calcErr = geome.calcErr;
|
|
46
|
+
calcWarn = checkWarn(geome.logstr);
|
|
47
|
+
optFaces = Object.keys(geome.fig);
|
|
48
|
+
exportFace = 'zip';
|
|
49
|
+
//geomRedraw(iSimTime);
|
|
50
|
+
subD = geome.sub;
|
|
51
|
+
}
|
|
52
|
+
function paramChange() {
|
|
53
|
+
paramChange2(pDef.partName, simTime);
|
|
54
|
+
}
|
|
55
|
+
$: paramChange2(pDef.partName, simTime); // for reactivity on page change and simTime
|
|
56
|
+
// export drawings
|
|
57
|
+
function download_binFile(fName: string, fContent: Blob) {
|
|
58
|
+
//create temporary an invisible element
|
|
59
|
+
const elem_a_download = document.createElement('a');
|
|
60
|
+
//const payload = 'data:' + fMime + ';base64,' + fContent;
|
|
61
|
+
const payload = URL.createObjectURL(fContent);
|
|
62
|
+
elem_a_download.setAttribute('href', payload);
|
|
63
|
+
elem_a_download.setAttribute('download', fName);
|
|
64
|
+
//document.body.appendChild(elem_a_download); // it does not seem required to append the element to the DOM to use it
|
|
65
|
+
elem_a_download.click();
|
|
66
|
+
//document.body.removeChild(elem_a_download);
|
|
67
|
+
elem_a_download.remove(); // Is this really required?
|
|
68
|
+
URL.revokeObjectURL(payload);
|
|
69
|
+
}
|
|
70
|
+
function download_textFile(fName: string, fContent: string, fMime: string) {
|
|
71
|
+
//create temporary an invisible element
|
|
72
|
+
const elem_a_download = document.createElement('a');
|
|
73
|
+
const payload = 'data:' + fMime + ';utf-8,' + encodeURIComponent(fContent);
|
|
74
|
+
elem_a_download.setAttribute('href', payload);
|
|
75
|
+
elem_a_download.setAttribute('download', fName);
|
|
76
|
+
//document.body.appendChild(elem_a_download); // it does not seem required to append the element to the DOM to use it
|
|
77
|
+
elem_a_download.click();
|
|
78
|
+
//document.body.removeChild(elem_a_download);
|
|
79
|
+
elem_a_download.remove(); // Is this really required?
|
|
80
|
+
}
|
|
81
|
+
function dateString(): string {
|
|
82
|
+
const re1 = /[-:]/g;
|
|
83
|
+
const re2 = /\..*$/;
|
|
84
|
+
const rDateStr = new Date()
|
|
85
|
+
.toISOString()
|
|
86
|
+
.replace(re1, '')
|
|
87
|
+
.replace(re2, '')
|
|
88
|
+
.replace('T', '_');
|
|
89
|
+
return rDateStr;
|
|
90
|
+
}
|
|
91
|
+
async function downloadExport(iExportFace: string) {
|
|
92
|
+
//console.log(`dbg883: iExportFace ${iExportFace}`);
|
|
93
|
+
const reSvg = /^svg_/;
|
|
94
|
+
const reDxf = /^dxf_/;
|
|
95
|
+
let exportFormat = EFormat.eSVG;
|
|
96
|
+
let nFace = 'all';
|
|
97
|
+
if (iExportFace.match(reSvg)) {
|
|
98
|
+
exportFormat = EFormat.eSVG;
|
|
99
|
+
nFace = iExportFace.replace(reSvg, '');
|
|
100
|
+
} else if (iExportFace.match(reDxf)) {
|
|
101
|
+
exportFormat = EFormat.eDXF;
|
|
102
|
+
nFace = iExportFace.replace(reDxf, '');
|
|
103
|
+
} else if (iExportFace === 'allsvg') {
|
|
104
|
+
exportFormat = EFormat.eSVGALL;
|
|
105
|
+
} else if (iExportFace === 'alldxf') {
|
|
106
|
+
exportFormat = EFormat.eDXFALL;
|
|
107
|
+
} else if (iExportFace === 'compute_log') {
|
|
108
|
+
exportFormat = EFormat.eTXTLOG;
|
|
109
|
+
} else if (iExportFace === 'pax') {
|
|
110
|
+
exportFormat = EFormat.ePAX;
|
|
111
|
+
} else if (iExportFace === 'oscad') {
|
|
112
|
+
exportFormat = EFormat.eOPENSCAD;
|
|
113
|
+
} else if (iExportFace === 'ojscad') {
|
|
114
|
+
exportFormat = EFormat.eJSCAD;
|
|
115
|
+
} else if (iExportFace === 'freecad') {
|
|
116
|
+
exportFormat = EFormat.eFREECAD;
|
|
117
|
+
} else if (iExportFace === 'zip') {
|
|
118
|
+
exportFormat = EFormat.eZIP;
|
|
119
|
+
} else {
|
|
120
|
+
console.log(`err883: downloadExport iExportFace ${iExportFace} invalid`);
|
|
121
|
+
}
|
|
122
|
+
//console.log(`exportFormat ${exportFormat}`);
|
|
123
|
+
const fSuffix = fileSuffix(exportFormat);
|
|
124
|
+
const fMime = fileMime(exportFormat);
|
|
125
|
+
const fBin = fileBin(exportFormat);
|
|
126
|
+
const fName = pDef.partName + '_' + nFace + '_' + dateString() + fSuffix;
|
|
127
|
+
if (fBin) {
|
|
128
|
+
const fContent = await fileBinContent(
|
|
129
|
+
fgeom,
|
|
130
|
+
simTime,
|
|
131
|
+
$storePV[pDef.partName],
|
|
132
|
+
pDef,
|
|
133
|
+
exportFormat
|
|
134
|
+
);
|
|
135
|
+
download_binFile(fName, fContent);
|
|
136
|
+
} else {
|
|
137
|
+
const fContent = fileTextContent(
|
|
138
|
+
fgeom,
|
|
139
|
+
$storePV[pDef.partName],
|
|
140
|
+
pDef,
|
|
141
|
+
nFace,
|
|
142
|
+
exportFormat
|
|
143
|
+
);
|
|
144
|
+
download_textFile(fName, fContent, fMime);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
async function downloadExport2() {
|
|
148
|
+
await downloadExport(exportFace);
|
|
149
|
+
}
|
|
130
150
|
</script>
|
|
131
151
|
|
|
132
152
|
<InputParams {pDef} on:paramChg={paramChange} {fgeom} {selFace} {zAdjust} {simTime} />
|
|
@@ -136,11 +156,11 @@ async function downloadExport2() {
|
|
|
136
156
|
rows="5"
|
|
137
157
|
cols="94"
|
|
138
158
|
readonly
|
|
139
|
-
wrap="
|
|
159
|
+
wrap="soft"
|
|
140
160
|
value={logValue}
|
|
141
161
|
class:colorErr={calcErr}
|
|
142
162
|
class:colorWarn={calcWarn}
|
|
143
|
-
|
|
163
|
+
></textarea>
|
|
144
164
|
</section>
|
|
145
165
|
<Drawing {pDef} {fgeom} {optFaces} bind:selFace bind:zAdjust bind:simTime />
|
|
146
166
|
<section>
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import type { tParamDef, tGeomFunc, tAllLink } from 'geometrix';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
3
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
+
$$bindings?: Bindings;
|
|
5
|
+
} & Exports;
|
|
6
|
+
(internal: unknown, props: Props & {
|
|
7
|
+
$$events?: Events;
|
|
8
|
+
$$slots?: Slots;
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
8
12
|
};
|
|
9
|
-
|
|
10
|
-
[evt: string]: CustomEvent<any>;
|
|
11
|
-
};
|
|
12
|
-
slots: {};
|
|
13
|
-
exports?: {} | undefined;
|
|
14
|
-
bindings?: string | undefined;
|
|
15
|
-
};
|
|
16
|
-
export type ParamDrawExportProps = typeof __propDef.props;
|
|
17
|
-
export type ParamDrawExportEvents = typeof __propDef.events;
|
|
18
|
-
export type ParamDrawExportSlots = typeof __propDef.slots;
|
|
19
|
-
export default class ParamDrawExport extends SvelteComponent<ParamDrawExportProps, ParamDrawExportEvents, ParamDrawExportSlots> {
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
20
14
|
}
|
|
21
|
-
|
|
15
|
+
declare const ParamDrawExport: $$__sveltets_2_IsomorphicComponent<{
|
|
16
|
+
pDef: tParamDef;
|
|
17
|
+
fgeom: tGeomFunc;
|
|
18
|
+
pLink: tAllLink;
|
|
19
|
+
}, {
|
|
20
|
+
[evt: string]: CustomEvent<any>;
|
|
21
|
+
}, {}, {}, string>;
|
|
22
|
+
type ParamDrawExport = InstanceType<typeof ParamDrawExport>;
|
|
23
|
+
export default ParamDrawExport;
|
|
@@ -1,54 +1,70 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export let
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
//import { colors } from 'geometrix';
|
|
3
|
+
import type { tCanvasAdjust, tLayers, Figure, tParamVal, tGeomFunc } from 'geometrix';
|
|
4
|
+
import { copyLayers, mergeFaces } from 'geometrix';
|
|
5
|
+
import { storePV } from './storePVal';
|
|
6
|
+
import { dLayers } from './drawingLayers';
|
|
7
|
+
import { onMount } from 'svelte';
|
|
8
|
+
|
|
9
|
+
export let pageName: string;
|
|
10
|
+
export let fgeom: tGeomFunc;
|
|
11
|
+
export let selFace: string;
|
|
12
|
+
export let zAdjust: tCanvasAdjust;
|
|
13
|
+
export let simTime = 0;
|
|
14
|
+
|
|
15
|
+
let canvasMini: HTMLCanvasElement;
|
|
16
|
+
const canvas_size_mini = 200;
|
|
17
|
+
|
|
18
|
+
// Canavas Figures
|
|
19
|
+
let mAdjust: tCanvasAdjust;
|
|
20
|
+
function canvasRedrawMini(aFigure: Figure, iLayers: tLayers) {
|
|
21
|
+
const sLayers = copyLayers(iLayers);
|
|
22
|
+
sLayers.ruler = false;
|
|
23
|
+
const ctx1 = canvasMini.getContext('2d')!;
|
|
24
|
+
ctx1.clearRect(0, 0, ctx1.canvas.width, ctx1.canvas.height);
|
|
25
|
+
try {
|
|
26
|
+
if (zAdjust.init === 0) {
|
|
27
|
+
// mini-full with zAdjust set to adjustZero()
|
|
28
|
+
mAdjust = aFigure.getAdjustFull(ctx1.canvas.width, ctx1.canvas.height);
|
|
29
|
+
} else {
|
|
30
|
+
mAdjust = zAdjust;
|
|
31
|
+
}
|
|
32
|
+
aFigure.draw(ctx1, mAdjust, sLayers);
|
|
33
|
+
} catch (emsg) {
|
|
34
|
+
//rGeome.logstr += emsg;
|
|
35
|
+
console.log(emsg);
|
|
36
|
+
}
|
|
37
|
+
// extra drawing
|
|
38
|
+
//point(5, 5).draw(ctx1, mAdjust, 'green');
|
|
39
|
+
//point(5, 15).draw(ctx1, mAdjust, 'blue', 'rectangle');
|
|
40
|
+
}
|
|
41
|
+
let domInit = 0;
|
|
42
|
+
function geomRedraw(iSimTime: number, ipVal: tParamVal, iFace: string, iLayers: tLayers) {
|
|
43
|
+
const FigList = fgeom(iSimTime, ipVal).fig;
|
|
44
|
+
if (Object.keys(FigList).includes(iFace)) {
|
|
45
|
+
const aFigure = FigList[iFace];
|
|
46
|
+
canvasRedrawMini(aFigure, iLayers);
|
|
47
|
+
} else {
|
|
48
|
+
const aFigure = mergeFaces(FigList);
|
|
49
|
+
canvasRedrawMini(aFigure, iLayers);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
onMount(() => {
|
|
53
|
+
// initial drawing
|
|
54
|
+
geomRedraw(simTime, $storePV[pageName], selFace, $dLayers);
|
|
55
|
+
domInit = 1;
|
|
56
|
+
//paramChange();
|
|
57
|
+
});
|
|
58
|
+
// reactivity on simTime and $storePV
|
|
59
|
+
$: {
|
|
60
|
+
if (domInit === 1) {
|
|
61
|
+
geomRedraw(simTime, $storePV[pageName], selFace, $dLayers);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
49
64
|
</script>
|
|
50
65
|
|
|
51
|
-
<canvas class="mini" width={canvas_size_mini} height={canvas_size_mini} bind:this={canvasMini}
|
|
66
|
+
<canvas class="mini" width={canvas_size_mini} height={canvas_size_mini} bind:this={canvasMini}
|
|
67
|
+
></canvas>
|
|
52
68
|
|
|
53
69
|
<style>/*
|
|
54
70
|
$canvas-point: grey;
|
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import type { tCanvasAdjust, tGeomFunc } from 'geometrix';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
3
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
+
$$bindings?: Bindings;
|
|
5
|
+
} & Exports;
|
|
6
|
+
(internal: unknown, props: Props & {
|
|
7
|
+
$$events?: Events;
|
|
8
|
+
$$slots?: Slots;
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
10
12
|
};
|
|
11
|
-
|
|
12
|
-
[evt: string]: CustomEvent<any>;
|
|
13
|
-
};
|
|
14
|
-
slots: {};
|
|
15
|
-
exports?: {} | undefined;
|
|
16
|
-
bindings?: string | undefined;
|
|
17
|
-
};
|
|
18
|
-
export type SimpleDrawingProps = typeof __propDef.props;
|
|
19
|
-
export type SimpleDrawingEvents = typeof __propDef.events;
|
|
20
|
-
export type SimpleDrawingSlots = typeof __propDef.slots;
|
|
21
|
-
export default class SimpleDrawing extends SvelteComponent<SimpleDrawingProps, SimpleDrawingEvents, SimpleDrawingSlots> {
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
22
14
|
}
|
|
23
|
-
|
|
15
|
+
declare const SimpleDrawing: $$__sveltets_2_IsomorphicComponent<{
|
|
16
|
+
pageName: string;
|
|
17
|
+
fgeom: tGeomFunc;
|
|
18
|
+
selFace: string;
|
|
19
|
+
zAdjust: tCanvasAdjust;
|
|
20
|
+
simTime?: number;
|
|
21
|
+
}, {
|
|
22
|
+
[evt: string]: CustomEvent<any>;
|
|
23
|
+
}, {}, {}, string>;
|
|
24
|
+
type SimpleDrawing = InstanceType<typeof SimpleDrawing>;
|
|
25
|
+
export default SimpleDrawing;
|