geomui 0.5.4
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/README.md +58 -0
- package/dist/Drawing.svelte +303 -0
- package/dist/Drawing.svelte.d.ts +21 -0
- package/dist/DrawingList.svelte +66 -0
- package/dist/DrawingList.svelte.d.ts +17 -0
- package/dist/InputParams.svelte +453 -0
- package/dist/InputParams.svelte.d.ts +22 -0
- package/dist/LabelCheckbox.svelte +27 -0
- package/dist/LabelCheckbox.svelte.d.ts +14 -0
- package/dist/LocStorRead.svelte +56 -0
- package/dist/LocStorRead.svelte.d.ts +17 -0
- package/dist/LocStorTable.svelte +167 -0
- package/dist/LocStorTable.svelte.d.ts +18 -0
- package/dist/LocStorWrite.svelte +66 -0
- package/dist/LocStorWrite.svelte.d.ts +17 -0
- package/dist/ModalDiag.svelte +100 -0
- package/dist/ModalDiag.svelte.d.ts +22 -0
- package/dist/ModalImg.svelte +59 -0
- package/dist/ModalImg.svelte.d.ts +17 -0
- package/dist/OneDesign.svelte +32 -0
- package/dist/OneDesign.svelte.d.ts +18 -0
- package/dist/ParamDrawExport.svelte +195 -0
- package/dist/ParamDrawExport.svelte.d.ts +19 -0
- package/dist/SimpleDrawing.svelte +58 -0
- package/dist/SimpleDrawing.svelte.d.ts +20 -0
- package/dist/SubDesign.svelte +202 -0
- package/dist/SubDesign.svelte.d.ts +19 -0
- package/dist/TimeControl.svelte +107 -0
- package/dist/TimeControl.svelte.d.ts +19 -0
- package/dist/ZoomControl.svelte +106 -0
- package/dist/ZoomControl.svelte.d.ts +16 -0
- package/dist/downloadParams.d.ts +4 -0
- package/dist/downloadParams.js +42 -0
- package/dist/drawingLayers.d.ts +3 -0
- package/dist/drawingLayers.js +6 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -0
- package/dist/initStore.d.ts +5 -0
- package/dist/initStore.js +46 -0
- package/dist/storePVal.d.ts +6 -0
- package/dist/storePVal.js +4 -0
- package/dist/style/colors.scss +51 -0
- package/dist/style/styling.scss +23 -0
- package/package.json +66 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
<script>import ModalDiag from "./ModalDiag.svelte";
|
|
2
|
+
import { browser } from "$app/environment";
|
|
3
|
+
export let pageName;
|
|
4
|
+
export let storeName;
|
|
5
|
+
export let localKeys;
|
|
6
|
+
function getLocalKey() {
|
|
7
|
+
let rKeyList = [];
|
|
8
|
+
const re = new RegExp(`^${pageName}_`);
|
|
9
|
+
if (browser) {
|
|
10
|
+
const keyList = Object.keys(window.localStorage).filter((k) => re.test(k));
|
|
11
|
+
rKeyList = keyList.map((k) => k.replace(re, ""));
|
|
12
|
+
}
|
|
13
|
+
return rKeyList;
|
|
14
|
+
}
|
|
15
|
+
localKeys = getLocalKey();
|
|
16
|
+
function modifInput(iname) {
|
|
17
|
+
storeName = iname;
|
|
18
|
+
}
|
|
19
|
+
let localDate = {};
|
|
20
|
+
function getLocalDate(iKeys) {
|
|
21
|
+
let rLocalDate = {};
|
|
22
|
+
if (browser) {
|
|
23
|
+
for (const k of iKeys) {
|
|
24
|
+
let lastModif = "";
|
|
25
|
+
const k2 = `${pageName}_${k}`;
|
|
26
|
+
const storeStr = window.localStorage.getItem(k2);
|
|
27
|
+
if (storeStr !== null) {
|
|
28
|
+
const val2 = JSON.parse(storeStr);
|
|
29
|
+
lastModif = val2.lastModif;
|
|
30
|
+
}
|
|
31
|
+
rLocalDate[k] = lastModif;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return rLocalDate;
|
|
35
|
+
}
|
|
36
|
+
localDate = getLocalDate(localKeys);
|
|
37
|
+
let localDel = {};
|
|
38
|
+
function getInitDel(iKeys) {
|
|
39
|
+
let rLocalDel = {};
|
|
40
|
+
for (const k of iKeys) {
|
|
41
|
+
rLocalDel[k] = false;
|
|
42
|
+
}
|
|
43
|
+
return rLocalDel;
|
|
44
|
+
}
|
|
45
|
+
localDel = getInitDel(localKeys);
|
|
46
|
+
let globalDel = false;
|
|
47
|
+
function setGlobalDel(iGlobalDel) {
|
|
48
|
+
for (const k of localKeys) {
|
|
49
|
+
localDel[k] = iGlobalDel;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
$:
|
|
53
|
+
setGlobalDel(globalDel);
|
|
54
|
+
function actionDel() {
|
|
55
|
+
if (browser) {
|
|
56
|
+
for (const k of localKeys) {
|
|
57
|
+
if (localDel[k]) {
|
|
58
|
+
const k2 = `${pageName}_${k}`;
|
|
59
|
+
window.localStorage.removeItem(k2);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
localKeys = getLocalKey();
|
|
64
|
+
}
|
|
65
|
+
let modalDelConfirm = false;
|
|
66
|
+
</script>
|
|
67
|
+
|
|
68
|
+
<div class="deleteKeys">
|
|
69
|
+
<button
|
|
70
|
+
on:click={() => {
|
|
71
|
+
modalDelConfirm = true;
|
|
72
|
+
}}>Delete</button
|
|
73
|
+
>
|
|
74
|
+
<ModalDiag bind:modalOpen={modalDelConfirm} okName="Confirm" okFunc={actionDel}>
|
|
75
|
+
<p class="diagTitle">Do you really want to delete the following localStorage keys?</p>
|
|
76
|
+
{#each localKeys as kname}
|
|
77
|
+
{#if localDel[kname]}
|
|
78
|
+
<p class="diagItem">{kname}</p>
|
|
79
|
+
{/if}
|
|
80
|
+
{/each}
|
|
81
|
+
</ModalDiag>
|
|
82
|
+
<table>
|
|
83
|
+
<thead>
|
|
84
|
+
<tr>
|
|
85
|
+
<td>Delete</td>
|
|
86
|
+
<td>Key name</td>
|
|
87
|
+
<td>Last modification</td>
|
|
88
|
+
</tr>
|
|
89
|
+
<tr>
|
|
90
|
+
<td><input type="checkbox" bind:checked={globalDel} /></td>
|
|
91
|
+
<td class="instruction">delete all</td>
|
|
92
|
+
<td />
|
|
93
|
+
</tr>
|
|
94
|
+
</thead>
|
|
95
|
+
<tbody>
|
|
96
|
+
{#each localKeys as kname}
|
|
97
|
+
<tr>
|
|
98
|
+
<td><input type="checkbox" bind:checked={localDel[kname]} /></td>
|
|
99
|
+
<td><button on:click={() => modifInput(kname)}>{kname}</button></td>
|
|
100
|
+
<td>{localDate[kname]}</td>
|
|
101
|
+
</tr>
|
|
102
|
+
{/each}
|
|
103
|
+
</tbody>
|
|
104
|
+
</table>
|
|
105
|
+
</div>
|
|
106
|
+
|
|
107
|
+
<style>/*
|
|
108
|
+
$canvas-point: grey;
|
|
109
|
+
|
|
110
|
+
// export to js
|
|
111
|
+
:export {
|
|
112
|
+
colorCanvasPoint: $canvas-point;
|
|
113
|
+
}
|
|
114
|
+
*/
|
|
115
|
+
div.deleteKeys {
|
|
116
|
+
display: flex;
|
|
117
|
+
justify-content: space-between;
|
|
118
|
+
align-items: center;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
div > button {
|
|
122
|
+
/*display: inline-block;*/
|
|
123
|
+
height: 1.6rem;
|
|
124
|
+
/*width: 1.6rem;*/
|
|
125
|
+
color: darkBlue;
|
|
126
|
+
font-size: 0.8rem;
|
|
127
|
+
font-weight: 400;
|
|
128
|
+
padding: 0.2rem 0.4rem 0.2rem;
|
|
129
|
+
border-style: solid;
|
|
130
|
+
border-width: 0.1rem;
|
|
131
|
+
border-radius: 0.2rem;
|
|
132
|
+
border-color: darkBlue;
|
|
133
|
+
margin: 0.5rem;
|
|
134
|
+
background-color: lightBlue;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
div > table {
|
|
138
|
+
font-size: 0.8rem;
|
|
139
|
+
font-weight: 400;
|
|
140
|
+
margin: 0.5rem 2rem 0.5rem;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
div > table > thead {
|
|
144
|
+
background-color: #ddd;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
div > table > tbody {
|
|
148
|
+
background-color: #eee;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
div > table > tbody > tr > td > button {
|
|
152
|
+
color: darkBlue;
|
|
153
|
+
background-color: transparent;
|
|
154
|
+
border: 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
p.diagTitle {
|
|
158
|
+
font-size: 1rem;
|
|
159
|
+
font-weight: 400;
|
|
160
|
+
margin: 0.2rem;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
p.diagItem {
|
|
164
|
+
font-size: 0.8rem;
|
|
165
|
+
font-weight: 400;
|
|
166
|
+
margin: 0;
|
|
167
|
+
}</style>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
pageName: string;
|
|
5
|
+
storeName: string;
|
|
6
|
+
localKeys: string[];
|
|
7
|
+
};
|
|
8
|
+
events: {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
};
|
|
11
|
+
slots: {};
|
|
12
|
+
};
|
|
13
|
+
export type LocStorTableProps = typeof __propDef.props;
|
|
14
|
+
export type LocStorTableEvents = typeof __propDef.events;
|
|
15
|
+
export type LocStorTableSlots = typeof __propDef.slots;
|
|
16
|
+
export default class LocStorTable extends SvelteComponent<LocStorTableProps, LocStorTableEvents, LocStorTableSlots> {
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<script>import LocStorTable from "./LocStorTable.svelte";
|
|
2
|
+
export let pageName;
|
|
3
|
+
export let storeName;
|
|
4
|
+
let localKeys = [];
|
|
5
|
+
function defaultName(prefix) {
|
|
6
|
+
const re1 = /[-:]/g;
|
|
7
|
+
const re2 = /\..*$/;
|
|
8
|
+
const datestr = (/* @__PURE__ */ new Date()).toISOString().replace(re1, "").replace(re2, "").replace("T", "_");
|
|
9
|
+
const rname = `${prefix}_${datestr}`;
|
|
10
|
+
return rname;
|
|
11
|
+
}
|
|
12
|
+
storeName = defaultName(pageName);
|
|
13
|
+
let warn = false;
|
|
14
|
+
function checkWarning(iname) {
|
|
15
|
+
warn = localKeys.includes(iname);
|
|
16
|
+
}
|
|
17
|
+
function validInput(eve) {
|
|
18
|
+
const storeName2 = eve.target.value;
|
|
19
|
+
checkWarning(storeName2);
|
|
20
|
+
}
|
|
21
|
+
$:
|
|
22
|
+
checkWarning(storeName);
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<LocStorTable {pageName} bind:storeName bind:localKeys />
|
|
26
|
+
<div>
|
|
27
|
+
<label for="storName">Give a name to your parameter-set:</label>
|
|
28
|
+
<input
|
|
29
|
+
type="text"
|
|
30
|
+
id="storName"
|
|
31
|
+
bind:value={storeName}
|
|
32
|
+
required
|
|
33
|
+
minlength="4"
|
|
34
|
+
maxlength="30"
|
|
35
|
+
size="32"
|
|
36
|
+
on:input={validInput}
|
|
37
|
+
/>
|
|
38
|
+
{#if warn}
|
|
39
|
+
<p class="warnMsg">Warning: name {storeName} already used</p>
|
|
40
|
+
{/if}
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<style>/*
|
|
44
|
+
$canvas-point: grey;
|
|
45
|
+
|
|
46
|
+
// export to js
|
|
47
|
+
:export {
|
|
48
|
+
colorCanvasPoint: $canvas-point;
|
|
49
|
+
}
|
|
50
|
+
*/
|
|
51
|
+
div {
|
|
52
|
+
min-height: 6rem;
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
justify-content: flex-start;
|
|
56
|
+
align-items: center;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
div > label,
|
|
60
|
+
div > input,
|
|
61
|
+
div > p.warnMsg {
|
|
62
|
+
font-size: 1rem;
|
|
63
|
+
font-weight: 400;
|
|
64
|
+
margin: 0.2rem;
|
|
65
|
+
color: orange;
|
|
66
|
+
}</style>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
pageName: string;
|
|
5
|
+
storeName: string;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
};
|
|
12
|
+
export type LocStorWriteProps = typeof __propDef.props;
|
|
13
|
+
export type LocStorWriteEvents = typeof __propDef.events;
|
|
14
|
+
export type LocStorWriteSlots = typeof __propDef.slots;
|
|
15
|
+
export default class LocStorWrite extends SvelteComponent<LocStorWriteProps, LocStorWriteEvents, LocStorWriteSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
<script context="module"></script>
|
|
2
|
+
|
|
3
|
+
<script>export let okName = "Ok";
|
|
4
|
+
export let okFunc;
|
|
5
|
+
export let modalOpen;
|
|
6
|
+
export let sizeLarge = false;
|
|
7
|
+
function mCancel() {
|
|
8
|
+
modalOpen = false;
|
|
9
|
+
}
|
|
10
|
+
function mOk() {
|
|
11
|
+
okFunc();
|
|
12
|
+
modalOpen = false;
|
|
13
|
+
}
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
{#if modalOpen}
|
|
17
|
+
<aside class="backdrop">
|
|
18
|
+
<div class="dialog" class:sizeLarge>
|
|
19
|
+
<article class="question">
|
|
20
|
+
<slot />
|
|
21
|
+
</article>
|
|
22
|
+
<footer>
|
|
23
|
+
<button class="cancel" on:click={mCancel}>Cancel</button>
|
|
24
|
+
<button class="ok" on:click={mOk}>{okName}</button>
|
|
25
|
+
</footer>
|
|
26
|
+
</div>
|
|
27
|
+
</aside>
|
|
28
|
+
{/if}
|
|
29
|
+
|
|
30
|
+
<style>/*
|
|
31
|
+
$canvas-point: grey;
|
|
32
|
+
|
|
33
|
+
// export to js
|
|
34
|
+
:export {
|
|
35
|
+
colorCanvasPoint: $canvas-point;
|
|
36
|
+
}
|
|
37
|
+
*/
|
|
38
|
+
aside.backdrop {
|
|
39
|
+
position: fixed;
|
|
40
|
+
z-index: 10;
|
|
41
|
+
top: 0;
|
|
42
|
+
left: 0;
|
|
43
|
+
width: 100%;
|
|
44
|
+
height: 100%;
|
|
45
|
+
display: flex;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
align-items: center;
|
|
48
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
aside > div.dialog {
|
|
52
|
+
width: 40rem;
|
|
53
|
+
height: 20rem;
|
|
54
|
+
max-width: 80vw;
|
|
55
|
+
max-height: 80vh;
|
|
56
|
+
background-color: lightCyan;
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
justify-content: space-between;
|
|
60
|
+
align-items: stretch;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
aside > div.dialog.sizeLarge {
|
|
64
|
+
width: 60rem;
|
|
65
|
+
height: 30rem;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
aside > div > article.question {
|
|
69
|
+
font-size: 1.2rem;
|
|
70
|
+
height: 80%;
|
|
71
|
+
overflow: auto;
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
align-items: center;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
aside > div > footer {
|
|
79
|
+
display: flex;
|
|
80
|
+
justify-content: space-between;
|
|
81
|
+
align-items: flex-end;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
aside > div > footer > button {
|
|
85
|
+
/*display: inline-block;*/
|
|
86
|
+
/*height: 1.6rem;*/
|
|
87
|
+
/*width: 1.6rem;*/
|
|
88
|
+
color: darkBlue;
|
|
89
|
+
font-size: 1.2rem;
|
|
90
|
+
font-weight: 400;
|
|
91
|
+
padding: 0.6rem 2.2rem 0.6rem;
|
|
92
|
+
border-style: solid;
|
|
93
|
+
border-width: 0.1rem;
|
|
94
|
+
border-radius: 0.2rem;
|
|
95
|
+
border-color: darkBlue;
|
|
96
|
+
margin: 0.5rem;
|
|
97
|
+
margin-left: 3rem;
|
|
98
|
+
margin-right: 3rem;
|
|
99
|
+
background-color: lightBlue;
|
|
100
|
+
}</style>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
type tOkFunc = () => void;
|
|
3
|
+
export type { tOkFunc };
|
|
4
|
+
declare const __propDef: {
|
|
5
|
+
props: {
|
|
6
|
+
okName?: string | undefined;
|
|
7
|
+
okFunc: tOkFunc;
|
|
8
|
+
modalOpen: boolean;
|
|
9
|
+
sizeLarge?: boolean | undefined;
|
|
10
|
+
};
|
|
11
|
+
events: {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
};
|
|
14
|
+
slots: {
|
|
15
|
+
default: {};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export type ModalDiagProps = typeof __propDef.props;
|
|
19
|
+
export type ModalDiagEvents = typeof __propDef.events;
|
|
20
|
+
export type ModalDiagSlots = typeof __propDef.slots;
|
|
21
|
+
export default class ModalDiag extends SvelteComponent<ModalDiagProps, ModalDiagEvents, ModalDiagSlots> {
|
|
22
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<script>export let svgPath;
|
|
2
|
+
export let modalOpen;
|
|
3
|
+
function mCancel() {
|
|
4
|
+
modalOpen = false;
|
|
5
|
+
}
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
{#if modalOpen}
|
|
9
|
+
<aside class="backdrop">
|
|
10
|
+
<div class="dialog">
|
|
11
|
+
<button on:click={mCancel}>
|
|
12
|
+
<img src={svgPath} alt={svgPath} />
|
|
13
|
+
</button>
|
|
14
|
+
</div>
|
|
15
|
+
</aside>
|
|
16
|
+
{/if}
|
|
17
|
+
|
|
18
|
+
<style>/*
|
|
19
|
+
$canvas-point: grey;
|
|
20
|
+
|
|
21
|
+
// export to js
|
|
22
|
+
:export {
|
|
23
|
+
colorCanvasPoint: $canvas-point;
|
|
24
|
+
}
|
|
25
|
+
*/
|
|
26
|
+
aside.backdrop {
|
|
27
|
+
position: fixed;
|
|
28
|
+
z-index: 10;
|
|
29
|
+
top: 0;
|
|
30
|
+
left: 0;
|
|
31
|
+
width: 100%;
|
|
32
|
+
height: 100%;
|
|
33
|
+
display: flex;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
align-items: center;
|
|
36
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
aside > div.dialog {
|
|
40
|
+
max-width: 80vw;
|
|
41
|
+
max-height: 80vh;
|
|
42
|
+
background-color: lightCyan;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
aside > div > button {
|
|
46
|
+
width: 100%;
|
|
47
|
+
height: 100%;
|
|
48
|
+
margin: 0;
|
|
49
|
+
border: none;
|
|
50
|
+
padding: 0;
|
|
51
|
+
background-color: white;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/*
|
|
55
|
+
aside > div > button > img {
|
|
56
|
+
max-width: 200px;
|
|
57
|
+
max-height: 200px;
|
|
58
|
+
}
|
|
59
|
+
*/</style>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
svgPath: string;
|
|
5
|
+
modalOpen: boolean;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
};
|
|
12
|
+
export type ModalImgProps = typeof __propDef.props;
|
|
13
|
+
export type ModalImgEvents = typeof __propDef.events;
|
|
14
|
+
export type ModalImgSlots = typeof __propDef.slots;
|
|
15
|
+
export default class ModalImg extends SvelteComponent<ModalImgProps, ModalImgEvents, ModalImgSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<script>import { incrStore } from "./initStore";
|
|
2
|
+
import DrawingList from "./DrawingList.svelte";
|
|
3
|
+
import ParamDrawExport from "./ParamDrawExport.svelte";
|
|
4
|
+
export let pageDef;
|
|
5
|
+
export let pLink;
|
|
6
|
+
$:
|
|
7
|
+
incrStore(pageDef);
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<h1>{pageDef.pTitle}</h1>
|
|
11
|
+
<article>{pageDef.pDescription}</article>
|
|
12
|
+
<DrawingList pDef={pageDef.pDef} />
|
|
13
|
+
<ParamDrawExport pDef={pageDef.pDef} fgeom={pageDef.pGeom} {pLink} />
|
|
14
|
+
|
|
15
|
+
<style>/*
|
|
16
|
+
$canvas-point: grey;
|
|
17
|
+
|
|
18
|
+
// export to js
|
|
19
|
+
:export {
|
|
20
|
+
colorCanvasPoint: $canvas-point;
|
|
21
|
+
}
|
|
22
|
+
*/
|
|
23
|
+
h1 {
|
|
24
|
+
margin: 1rem 1rem 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
article {
|
|
28
|
+
font-size: 1rem;
|
|
29
|
+
font-weight: 400;
|
|
30
|
+
font-style: italic;
|
|
31
|
+
margin: 0 1rem 2rem;
|
|
32
|
+
}</style>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
import type { tPageDef, tAllLink } from 'geometrix';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
pageDef: tPageDef;
|
|
6
|
+
pLink: tAllLink;
|
|
7
|
+
};
|
|
8
|
+
events: {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
};
|
|
11
|
+
slots: {};
|
|
12
|
+
};
|
|
13
|
+
export type OneDesignProps = typeof __propDef.props;
|
|
14
|
+
export type OneDesignEvents = typeof __propDef.events;
|
|
15
|
+
export type OneDesignSlots = typeof __propDef.slots;
|
|
16
|
+
export default class OneDesign extends SvelteComponent<OneDesignProps, OneDesignEvents, OneDesignSlots> {
|
|
17
|
+
}
|
|
18
|
+
export {};
|