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,25 +1,27 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
import type { tParamDef, tGeomFunc, tCanvasAdjust } 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
|
-
paramChg: CustomEvent<any>;
|
|
13
|
-
} & {
|
|
14
|
-
[evt: string]: CustomEvent<any>;
|
|
15
|
-
};
|
|
16
|
-
slots: {};
|
|
17
|
-
exports?: {} | undefined;
|
|
18
|
-
bindings?: string | undefined;
|
|
19
|
-
};
|
|
20
|
-
export type InputParamsProps = typeof __propDef.props;
|
|
21
|
-
export type InputParamsEvents = typeof __propDef.events;
|
|
22
|
-
export type InputParamsSlots = typeof __propDef.slots;
|
|
23
|
-
export default class InputParams extends SvelteComponent<InputParamsProps, InputParamsEvents, InputParamsSlots> {
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
24
14
|
}
|
|
25
|
-
|
|
15
|
+
declare const InputParams: $$__sveltets_2_IsomorphicComponent<{
|
|
16
|
+
pDef: tParamDef;
|
|
17
|
+
fgeom: tGeomFunc;
|
|
18
|
+
selFace: string;
|
|
19
|
+
zAdjust: tCanvasAdjust;
|
|
20
|
+
simTime?: number;
|
|
21
|
+
}, {
|
|
22
|
+
paramChg: CustomEvent<any>;
|
|
23
|
+
} & {
|
|
24
|
+
[evt: string]: CustomEvent<any>;
|
|
25
|
+
}, {}, {}, string>;
|
|
26
|
+
type InputParams = InstanceType<typeof InputParams>;
|
|
27
|
+
export default InputParams;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
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> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
6
11
|
};
|
|
7
|
-
|
|
8
|
-
exports?: {} | undefined;
|
|
9
|
-
bindings?: string | undefined;
|
|
10
|
-
};
|
|
11
|
-
export type LabelCheckboxProps = typeof __propDef.props;
|
|
12
|
-
export type LabelCheckboxEvents = typeof __propDef.events;
|
|
13
|
-
export type LabelCheckboxSlots = typeof __propDef.slots;
|
|
14
|
-
export default class LabelCheckbox extends SvelteComponent<LabelCheckboxProps, LabelCheckboxEvents, LabelCheckboxSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
15
13
|
}
|
|
16
|
-
|
|
14
|
+
declare const LabelCheckbox: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, string>;
|
|
17
|
+
type LabelCheckbox = InstanceType<typeof LabelCheckbox>;
|
|
18
|
+
export default LabelCheckbox;
|
package/dist/LocStorRead.svelte
CHANGED
|
@@ -1,20 +1,26 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import LocStorTable from './LocStorTable.svelte';
|
|
3
|
+
//import { browser } from '$app/environment';
|
|
4
|
+
|
|
5
|
+
export let pageName: string;
|
|
6
|
+
export let storeName: string;
|
|
7
|
+
|
|
8
|
+
let localKeys: string[] = [];
|
|
9
|
+
// create a default key name
|
|
10
|
+
function defaultName(ilocalKeys: string[]) {
|
|
11
|
+
let rname = storeName;
|
|
12
|
+
const nameUpdate = !ilocalKeys.includes(rname);
|
|
13
|
+
if (nameUpdate) {
|
|
14
|
+
if (ilocalKeys.length > 0) {
|
|
15
|
+
rname = ilocalKeys[0];
|
|
16
|
+
} else {
|
|
17
|
+
rname = '';
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return rname;
|
|
21
|
+
}
|
|
22
|
+
$: storeName = defaultName(localKeys);
|
|
23
|
+
//$: console.log(`dbg994: ${storeName}`);
|
|
18
24
|
</script>
|
|
19
25
|
|
|
20
26
|
<LocStorTable {pageName} bind:storeName bind:localKeys />
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
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> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: Props & {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
6
11
|
};
|
|
7
|
-
|
|
8
|
-
[evt: string]: CustomEvent<any>;
|
|
9
|
-
};
|
|
10
|
-
slots: {};
|
|
11
|
-
exports?: {} | undefined;
|
|
12
|
-
bindings?: string | undefined;
|
|
13
|
-
};
|
|
14
|
-
export type LocStorReadProps = typeof __propDef.props;
|
|
15
|
-
export type LocStorReadEvents = typeof __propDef.events;
|
|
16
|
-
export type LocStorReadSlots = typeof __propDef.slots;
|
|
17
|
-
export default class LocStorRead extends SvelteComponent<LocStorReadProps, LocStorReadEvents, LocStorReadSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
18
13
|
}
|
|
19
|
-
|
|
14
|
+
declare const LocStorRead: $$__sveltets_2_IsomorphicComponent<{
|
|
15
|
+
pageName: string;
|
|
16
|
+
storeName: string;
|
|
17
|
+
}, {
|
|
18
|
+
[evt: string]: CustomEvent<any>;
|
|
19
|
+
}, {}, {}, string>;
|
|
20
|
+
type LocStorRead = InstanceType<typeof LocStorRead>;
|
|
21
|
+
export default LocStorRead;
|
package/dist/LocStorTable.svelte
CHANGED
|
@@ -1,67 +1,81 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export let
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import ModalDiag from './ModalDiag.svelte';
|
|
3
|
+
import { browser } from '$app/environment';
|
|
4
|
+
|
|
5
|
+
export let pageName: string;
|
|
6
|
+
export let storeName: string;
|
|
7
|
+
export let localKeys: string[];
|
|
8
|
+
|
|
9
|
+
// get the list of localStorage keys
|
|
10
|
+
function getLocalKey() {
|
|
11
|
+
let rKeyList: string[] = [];
|
|
12
|
+
const re = new RegExp(`^${pageName}_`);
|
|
13
|
+
if (browser) {
|
|
14
|
+
const keyList = Object.keys(window.localStorage).filter((k) => re.test(k));
|
|
15
|
+
//console.log(keyList);
|
|
16
|
+
rKeyList = keyList.map((k) => k.replace(re, ''));
|
|
17
|
+
}
|
|
18
|
+
//console.log(rKeyList);
|
|
19
|
+
return rKeyList;
|
|
20
|
+
}
|
|
21
|
+
localKeys = getLocalKey();
|
|
22
|
+
function modifInput(iname: string) {
|
|
23
|
+
storeName = iname;
|
|
24
|
+
}
|
|
25
|
+
// last modification date
|
|
26
|
+
type tLocalDate = Record<string, string>;
|
|
27
|
+
let localDate: tLocalDate = {};
|
|
28
|
+
function getLocalDate(iKeys: string[]): tLocalDate {
|
|
29
|
+
let rLocalDate: tLocalDate = {};
|
|
30
|
+
if (browser) {
|
|
31
|
+
for (const k of iKeys) {
|
|
32
|
+
let lastModif = '';
|
|
33
|
+
const k2 = `${pageName}_${k}`;
|
|
34
|
+
const storeStr = window.localStorage.getItem(k2);
|
|
35
|
+
if (storeStr !== null) {
|
|
36
|
+
const val2 = JSON.parse(storeStr);
|
|
37
|
+
lastModif = val2.lastModif;
|
|
38
|
+
}
|
|
39
|
+
//console.log(`dbg194: ${lastModif}`);
|
|
40
|
+
rLocalDate[k] = lastModif;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return rLocalDate;
|
|
44
|
+
}
|
|
45
|
+
localDate = getLocalDate(localKeys);
|
|
46
|
+
// delete checkbox
|
|
47
|
+
type tLocalDel = Record<string, boolean>;
|
|
48
|
+
let localDel: tLocalDel = {};
|
|
49
|
+
function getInitDel(iKeys: string[]): tLocalDel {
|
|
50
|
+
let rLocalDel: tLocalDel = {};
|
|
51
|
+
for (const k of iKeys) {
|
|
52
|
+
rLocalDel[k] = false;
|
|
53
|
+
}
|
|
54
|
+
return rLocalDel;
|
|
55
|
+
}
|
|
56
|
+
localDel = getInitDel(localKeys);
|
|
57
|
+
// global delete
|
|
58
|
+
let globalDel = false;
|
|
59
|
+
function setGlobalDel(iGlobalDel: boolean) {
|
|
60
|
+
for (const k of localKeys) {
|
|
61
|
+
localDel[k] = iGlobalDel;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
$: setGlobalDel(globalDel);
|
|
65
|
+
// delete action
|
|
66
|
+
function actionDel() {
|
|
67
|
+
if (browser) {
|
|
68
|
+
for (const k of localKeys) {
|
|
69
|
+
if (localDel[k]) {
|
|
70
|
+
//console.log(`delete ${k}`);
|
|
71
|
+
const k2 = `${pageName}_${k}`;
|
|
72
|
+
window.localStorage.removeItem(k2);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
localKeys = getLocalKey();
|
|
77
|
+
}
|
|
78
|
+
let modalDelConfirm = false;
|
|
65
79
|
</script>
|
|
66
80
|
|
|
67
81
|
<div class="deleteKeys">
|
|
@@ -88,7 +102,7 @@ let modalDelConfirm = false;
|
|
|
88
102
|
<tr>
|
|
89
103
|
<td><input type="checkbox" bind:checked={globalDel} /></td>
|
|
90
104
|
<td class="instruction">delete all</td>
|
|
91
|
-
<td
|
|
105
|
+
<td></td>
|
|
92
106
|
</tr>
|
|
93
107
|
</thead>
|
|
94
108
|
<tbody>
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
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> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: Props & {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
7
11
|
};
|
|
8
|
-
|
|
9
|
-
[evt: string]: CustomEvent<any>;
|
|
10
|
-
};
|
|
11
|
-
slots: {};
|
|
12
|
-
exports?: {} | undefined;
|
|
13
|
-
bindings?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
export type LocStorTableProps = typeof __propDef.props;
|
|
16
|
-
export type LocStorTableEvents = typeof __propDef.events;
|
|
17
|
-
export type LocStorTableSlots = typeof __propDef.slots;
|
|
18
|
-
export default class LocStorTable extends SvelteComponent<LocStorTableProps, LocStorTableEvents, LocStorTableSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
19
13
|
}
|
|
20
|
-
|
|
14
|
+
declare const LocStorTable: $$__sveltets_2_IsomorphicComponent<{
|
|
15
|
+
pageName: string;
|
|
16
|
+
storeName: string;
|
|
17
|
+
localKeys: string[];
|
|
18
|
+
}, {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
}, {}, {}, string>;
|
|
21
|
+
type LocStorTable = InstanceType<typeof LocStorTable>;
|
|
22
|
+
export default LocStorTable;
|
package/dist/LocStorWrite.svelte
CHANGED
|
@@ -1,24 +1,39 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import LocStorTable from './LocStorTable.svelte';
|
|
3
|
+
//import { browser } from '$app/environment';
|
|
4
|
+
|
|
5
|
+
export let pageName: string;
|
|
6
|
+
export let storeName: string;
|
|
7
|
+
|
|
8
|
+
let localKeys: string[] = [];
|
|
9
|
+
// create a default key name
|
|
10
|
+
function defaultName(prefix: string) {
|
|
11
|
+
const re1 = /[-:]/g;
|
|
12
|
+
const re2 = /\..*$/;
|
|
13
|
+
const datestr = new Date()
|
|
14
|
+
.toISOString()
|
|
15
|
+
.replace(re1, '')
|
|
16
|
+
.replace(re2, '')
|
|
17
|
+
.replace('T', '_');
|
|
18
|
+
const rname = `${prefix}_${datestr}`;
|
|
19
|
+
return rname;
|
|
20
|
+
}
|
|
21
|
+
storeName = defaultName(pageName);
|
|
22
|
+
// check if the key already exist
|
|
23
|
+
let warn = false;
|
|
24
|
+
function checkWarning(iname: string) {
|
|
25
|
+
warn = localKeys.includes(iname);
|
|
26
|
+
//console.log(`dbg040: ${warn}`);
|
|
27
|
+
}
|
|
28
|
+
function validInput(eve: Event) {
|
|
29
|
+
const storeName2 = (eve.target as HTMLInputElement).value;
|
|
30
|
+
//const storeName2 = storeName;
|
|
31
|
+
//console.log(`dbg162: ${storeName2}`);
|
|
32
|
+
//warn = localKeys.includes(storeName2);
|
|
33
|
+
checkWarning(storeName2);
|
|
34
|
+
}
|
|
35
|
+
// modify input
|
|
36
|
+
$: checkWarning(storeName);
|
|
22
37
|
</script>
|
|
23
38
|
|
|
24
39
|
<LocStorTable {pageName} bind:storeName bind:localKeys />
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
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> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: Props & {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
6
11
|
};
|
|
7
|
-
|
|
8
|
-
[evt: string]: CustomEvent<any>;
|
|
9
|
-
};
|
|
10
|
-
slots: {};
|
|
11
|
-
exports?: {} | undefined;
|
|
12
|
-
bindings?: string | undefined;
|
|
13
|
-
};
|
|
14
|
-
export type LocStorWriteProps = typeof __propDef.props;
|
|
15
|
-
export type LocStorWriteEvents = typeof __propDef.events;
|
|
16
|
-
export type LocStorWriteSlots = typeof __propDef.slots;
|
|
17
|
-
export default class LocStorWrite extends SvelteComponent<LocStorWriteProps, LocStorWriteEvents, LocStorWriteSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
18
13
|
}
|
|
19
|
-
|
|
14
|
+
declare const LocStorWrite: $$__sveltets_2_IsomorphicComponent<{
|
|
15
|
+
pageName: string;
|
|
16
|
+
storeName: string;
|
|
17
|
+
}, {
|
|
18
|
+
[evt: string]: CustomEvent<any>;
|
|
19
|
+
}, {}, {}, string>;
|
|
20
|
+
type LocStorWrite = InstanceType<typeof LocStorWrite>;
|
|
21
|
+
export default LocStorWrite;
|
package/dist/ModalDiag.svelte
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
<script context="module"
|
|
1
|
+
<script lang="ts" context="module">
|
|
2
|
+
type tOkFunc = () => void;
|
|
3
|
+
export type { tOkFunc };
|
|
4
|
+
</script>
|
|
2
5
|
|
|
3
|
-
<script
|
|
4
|
-
export let
|
|
5
|
-
export let
|
|
6
|
-
export let
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
<script lang="ts">
|
|
7
|
+
export let okName = 'Ok';
|
|
8
|
+
export let okFunc: tOkFunc;
|
|
9
|
+
export let modalOpen: boolean;
|
|
10
|
+
export let sizeLarge = false;
|
|
11
|
+
|
|
12
|
+
function mCancel() {
|
|
13
|
+
modalOpen = false;
|
|
14
|
+
}
|
|
15
|
+
function mOk() {
|
|
16
|
+
okFunc();
|
|
17
|
+
modalOpen = false;
|
|
18
|
+
}
|
|
14
19
|
</script>
|
|
15
20
|
|
|
16
21
|
{#if modalOpen}
|
|
@@ -1,24 +1,34 @@
|
|
|
1
|
-
import { SvelteComponent } from "svelte";
|
|
2
1
|
type tOkFunc = () => void;
|
|
3
2
|
export type { tOkFunc };
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
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> {
|
|
4
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
5
|
+
$$bindings?: Bindings;
|
|
6
|
+
} & Exports;
|
|
7
|
+
(internal: unknown, props: Props & {
|
|
8
|
+
$$events?: Events;
|
|
9
|
+
$$slots?: Slots;
|
|
10
|
+
}): Exports & {
|
|
11
|
+
$set?: any;
|
|
12
|
+
$on?: any;
|
|
10
13
|
};
|
|
11
|
-
|
|
12
|
-
[evt: string]: CustomEvent<any>;
|
|
13
|
-
};
|
|
14
|
-
slots: {
|
|
15
|
-
default: {};
|
|
16
|
-
};
|
|
17
|
-
exports?: {} | undefined;
|
|
18
|
-
bindings?: string | undefined;
|
|
19
|
-
};
|
|
20
|
-
export type ModalDiagProps = typeof __propDef.props;
|
|
21
|
-
export type ModalDiagEvents = typeof __propDef.events;
|
|
22
|
-
export type ModalDiagSlots = typeof __propDef.slots;
|
|
23
|
-
export default class ModalDiag extends SvelteComponent<ModalDiagProps, ModalDiagEvents, ModalDiagSlots> {
|
|
14
|
+
z_$$bindings?: Bindings;
|
|
24
15
|
}
|
|
16
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
17
|
+
default: any;
|
|
18
|
+
} ? Props extends Record<string, never> ? any : {
|
|
19
|
+
children?: any;
|
|
20
|
+
} : {});
|
|
21
|
+
declare const ModalDiag: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
22
|
+
okName?: string;
|
|
23
|
+
okFunc: tOkFunc;
|
|
24
|
+
modalOpen: boolean;
|
|
25
|
+
sizeLarge?: boolean;
|
|
26
|
+
}, {
|
|
27
|
+
default: {};
|
|
28
|
+
}>, {
|
|
29
|
+
[evt: string]: CustomEvent<any>;
|
|
30
|
+
}, {
|
|
31
|
+
default: {};
|
|
32
|
+
}, {}, string>;
|
|
33
|
+
type ModalDiag = InstanceType<typeof ModalDiag>;
|
|
34
|
+
export default ModalDiag;
|
package/dist/ModalImg.svelte
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export let
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
export let svgPath: string;
|
|
3
|
+
export let modalOpen: boolean;
|
|
4
|
+
|
|
5
|
+
function mCancel() {
|
|
6
|
+
modalOpen = false;
|
|
7
|
+
}
|
|
6
8
|
</script>
|
|
7
9
|
|
|
8
10
|
{#if modalOpen}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
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> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: Props & {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
6
11
|
};
|
|
7
|
-
|
|
8
|
-
[evt: string]: CustomEvent<any>;
|
|
9
|
-
};
|
|
10
|
-
slots: {};
|
|
11
|
-
exports?: {} | undefined;
|
|
12
|
-
bindings?: string | undefined;
|
|
13
|
-
};
|
|
14
|
-
export type ModalImgProps = typeof __propDef.props;
|
|
15
|
-
export type ModalImgEvents = typeof __propDef.events;
|
|
16
|
-
export type ModalImgSlots = typeof __propDef.slots;
|
|
17
|
-
export default class ModalImg extends SvelteComponent<ModalImgProps, ModalImgEvents, ModalImgSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
18
13
|
}
|
|
19
|
-
|
|
14
|
+
declare const ModalImg: $$__sveltets_2_IsomorphicComponent<{
|
|
15
|
+
svgPath: string;
|
|
16
|
+
modalOpen: boolean;
|
|
17
|
+
}, {
|
|
18
|
+
[evt: string]: CustomEvent<any>;
|
|
19
|
+
}, {}, {}, string>;
|
|
20
|
+
type ModalImg = InstanceType<typeof ModalImg>;
|
|
21
|
+
export default ModalImg;
|
package/dist/OneDesign.svelte
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { tPageDef, tAllLink } from 'geometrix';
|
|
3
|
+
|
|
4
|
+
import { incrStore } from './initStore';
|
|
5
|
+
import DrawingList from './DrawingList.svelte';
|
|
6
|
+
import ParamDrawExport from './ParamDrawExport.svelte';
|
|
7
|
+
|
|
8
|
+
export let pageDef: tPageDef;
|
|
9
|
+
export let pLink: tAllLink;
|
|
10
|
+
|
|
11
|
+
$: incrStore(pageDef);
|
|
7
12
|
</script>
|
|
8
13
|
|
|
9
14
|
<h1>{pageDef.pTitle}</h1>
|