@oicl/openbridge-webcomponents 0.0.15-dev-20241203183951 → 0.0.15-dev-20241203184948
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/__snapshots__/building-blocks-poi-line--primary.png +0 -0
- package/__snapshots__/button-poi-target-button--primary.png +0 -0
- package/__snapshots__/navigation-instruments-poi-target--primary.png +0 -0
- package/custom-elements.json +76 -43
- package/dist/components/poi-target-button/poi-target-button.css.js +65 -77
- package/dist/components/poi-target-button/poi-target-button.css.js.map +1 -1
- package/dist/components/poi-target-button/poi-target-button.d.ts +2 -1
- package/dist/components/poi-target-button/poi-target-button.d.ts.map +1 -1
- package/dist/components/poi-target-button/poi-target-button.js +7 -4
- package/dist/components/poi-target-button/poi-target-button.js.map +1 -1
- package/dist/navigation-instruments/poi-graphic-line/poi-config.d.ts +14 -11
- package/dist/navigation-instruments/poi-graphic-line/poi-config.d.ts.map +1 -1
- package/dist/navigation-instruments/poi-graphic-line/poi-config.js +18 -42
- package/dist/navigation-instruments/poi-graphic-line/poi-config.js.map +1 -1
- package/dist/navigation-instruments/poi-graphic-line/poi-graphic-line.d.ts +9 -3
- package/dist/navigation-instruments/poi-graphic-line/poi-graphic-line.d.ts.map +1 -1
- package/dist/navigation-instruments/poi-graphic-line/poi-graphic-line.js +147 -42
- package/dist/navigation-instruments/poi-graphic-line/poi-graphic-line.js.map +1 -1
- package/dist/navigation-instruments/poi-line/poi-line.css.js +8 -7
- package/dist/navigation-instruments/poi-line/poi-line.css.js.map +1 -1
- package/dist/navigation-instruments/poi-line/poi-line.d.ts +1 -1
- package/dist/navigation-instruments/poi-line/poi-line.d.ts.map +1 -1
- package/dist/navigation-instruments/poi-line/poi-line.js +28 -10
- package/dist/navigation-instruments/poi-line/poi-line.js.map +1 -1
- package/dist/navigation-instruments/poi-line/pointerDot.d.ts +7 -1
- package/dist/navigation-instruments/poi-line/pointerDot.d.ts.map +1 -1
- package/dist/navigation-instruments/poi-line/pointerDot.js +96 -99
- package/dist/navigation-instruments/poi-line/pointerDot.js.map +1 -1
- package/dist/navigation-instruments/poi-target/arrow.d.ts.map +1 -1
- package/dist/navigation-instruments/poi-target/arrow.js +1 -0
- package/dist/navigation-instruments/poi-target/arrow.js.map +1 -1
- package/dist/navigation-instruments/poi-target/poi-target.css.js +9 -11
- package/dist/navigation-instruments/poi-target/poi-target.css.js.map +1 -1
- package/dist/navigation-instruments/poi-target/poi-target.d.ts +4 -0
- package/dist/navigation-instruments/poi-target/poi-target.d.ts.map +1 -1
- package/dist/navigation-instruments/poi-target/poi-target.js +21 -20
- package/dist/navigation-instruments/poi-target/poi-target.js.map +1 -1
- package/package.json +1 -1
- package/src/components/poi-target-button/poi-target-button.css +20 -10
- package/src/components/poi-target-button/poi-target-button.stories.ts +6 -0
- package/src/components/poi-target-button/poi-target-button.ts +7 -2
- package/src/navigation-instruments/poi-graphic-line/poi-config.ts +24 -27
- package/src/navigation-instruments/poi-graphic-line/poi-graphic-line.stories.ts +3 -4
- package/src/navigation-instruments/poi-graphic-line/poi-graphic-line.ts +145 -38
- package/src/navigation-instruments/poi-line/poi-line.css +8 -7
- package/src/navigation-instruments/poi-line/poi-line.stories.ts +5 -5
- package/src/navigation-instruments/poi-line/poi-line.ts +29 -8
- package/src/navigation-instruments/poi-line/pointerDot.ts +115 -99
- package/src/navigation-instruments/poi-target/arrow.ts +1 -0
- package/src/navigation-instruments/poi-target/poi-target.css +9 -13
- package/src/navigation-instruments/poi-target/poi-target.stories.ts +5 -5
- package/src/navigation-instruments/poi-target/poi-target.ts +31 -23
@@ -1,12 +1,18 @@
|
|
1
1
|
import { LitElement } from 'lit';
|
2
|
-
import {
|
2
|
+
import { POILineParams, POIStyle } from './poi-config';
|
3
3
|
export declare class ObcPoiGraphicLine extends LitElement {
|
4
|
-
|
4
|
+
lineHeight: number;
|
5
|
+
width: number;
|
6
|
+
lineStart: number;
|
5
7
|
lineStyle: POIStyle;
|
6
|
-
lineState: POIState;
|
7
8
|
render(): import('lit-html').TemplateResult<1>;
|
8
9
|
static styles: import('lit').CSSResult;
|
9
10
|
}
|
11
|
+
export declare function graphicLine({ style, lineHeight, totalHeight, }: {
|
12
|
+
style: POILineParams;
|
13
|
+
lineHeight: number;
|
14
|
+
totalHeight: number;
|
15
|
+
}): import('lit-html').TemplateResult<1>;
|
10
16
|
declare global {
|
11
17
|
interface HTMLElementTagNameMap {
|
12
18
|
'obc-poi-graphic-line': ObcPoiGraphicLine;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"poi-graphic-line.d.ts","sourceRoot":"","sources":["../../../src/navigation-instruments/poi-graphic-line/poi-graphic-line.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAkB,MAAM,KAAK,CAAC;AAEhD,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"poi-graphic-line.d.ts","sourceRoot":"","sources":["../../../src/navigation-instruments/poi-graphic-line/poi-graphic-line.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAkB,MAAM,KAAK,CAAC;AAEhD,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAkB,MAAM,cAAc,CAAC;AAGtE,qBACa,iBAAkB,SAAQ,UAAU;IACrB,UAAU,EAAE,MAAM,CAAM;IACxB,KAAK,EAAE,MAAM,CAAK;IAClB,SAAS,EAAE,MAAM,CAAK;IACtB,SAAS,EAAE,QAAQ,CAAqB;IAEzD,MAAM;IAgGf,OAAgB,MAAM,0BAA6B;CACpD;AAED,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,UAAU,EACV,WAAW,GACZ,EAAE;IACD,KAAK,EAAE,aAAa,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB,wCAiGA;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,sBAAsB,EAAE,iBAAiB,CAAC;KAC3C;CACF"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { unsafeCSS, LitElement, html } from "lit";
|
2
2
|
import { property, customElement } from "lit/decorators.js";
|
3
|
-
import { POIStyle,
|
3
|
+
import { POIStyle, POI_LINE_CONFIG } from "./poi-config.js";
|
4
4
|
import componentStyle from "./poi-graphic-line.css.js";
|
5
5
|
var __defProp = Object.defineProperty;
|
6
6
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
@@ -12,64 +12,65 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
12
12
|
if (kind && result) __defProp(target, key, result);
|
13
13
|
return result;
|
14
14
|
};
|
15
|
-
function getLineColors(style) {
|
16
|
-
const colors = POI_STYLES[style];
|
17
|
-
if (!colors) {
|
18
|
-
throw new Error(`Style: ${style} not supported`);
|
19
|
-
}
|
20
|
-
return colors;
|
21
|
-
}
|
22
15
|
let ObcPoiGraphicLine = class extends LitElement {
|
23
16
|
constructor() {
|
24
17
|
super(...arguments);
|
25
|
-
this.
|
18
|
+
this.lineHeight = 96;
|
19
|
+
this.width = 4;
|
20
|
+
this.lineStart = 1;
|
26
21
|
this.lineStyle = POIStyle.Enhanced;
|
27
|
-
this.lineState = POIState.solid;
|
28
22
|
}
|
29
23
|
render() {
|
30
|
-
const
|
31
|
-
const
|
32
|
-
|
33
|
-
|
24
|
+
const style = POI_LINE_CONFIG[this.lineStyle];
|
25
|
+
const filterDimensions = style.filterDimensions;
|
26
|
+
const path = `M${this.width / 2} ${this.lineStart}L${this.width / 2} ${this.lineHeight + this.lineStart}`;
|
27
|
+
return html`
|
28
|
+
<svg
|
29
|
+
width="${this.width}"
|
30
|
+
height="${this.lineHeight + style.lineEnd}"
|
31
|
+
viewBox="0 0 ${this.width} ${this.lineHeight + style.lineEnd}"
|
32
|
+
fill="none"
|
33
|
+
vector-effect="non-scaling-stroke"
|
34
|
+
>
|
34
35
|
<mask
|
35
|
-
id="
|
36
|
+
id="poi_graphic_line_mask"
|
36
37
|
style="mask-type:alpha"
|
37
38
|
maskUnits="userSpaceOnUse"
|
38
|
-
x="
|
39
|
-
y="
|
39
|
+
x="${this.width / 2 - 2}"
|
40
|
+
y="-1"
|
40
41
|
width="4"
|
41
|
-
height="${this.
|
42
|
+
height="${this.lineHeight + 4}"
|
42
43
|
>
|
43
44
|
<path
|
44
45
|
d="${path}"
|
45
|
-
stroke="url(#
|
46
|
+
stroke="url(#poi_graphic_line_linear_gradient)"
|
46
47
|
stroke-width="4"
|
47
48
|
stroke-linecap="round"
|
48
49
|
/>
|
49
50
|
</mask>
|
50
|
-
<g mask="url(#
|
51
|
-
<g filter="url(#
|
51
|
+
<g mask="url(#poi_graphic_line_mask)">
|
52
|
+
<g filter="url(#poi_graphic_line_filter)">
|
52
53
|
<path
|
53
54
|
d=${path}
|
54
|
-
stroke="${
|
55
|
-
stroke-width="
|
55
|
+
stroke="${style.outlineColor}"
|
56
|
+
stroke-width="${style.outlineWidth}"
|
56
57
|
stroke-linecap="round"
|
57
58
|
/>
|
58
59
|
</g>
|
59
60
|
<path
|
60
61
|
d=${path}
|
61
|
-
stroke="${
|
62
|
-
stroke-width="
|
62
|
+
stroke="${style.lineColor}"
|
63
|
+
stroke-width="${style.lineWidth}"
|
63
64
|
stroke-linecap="round"
|
64
65
|
/>
|
65
66
|
</g>
|
66
67
|
<defs>
|
67
68
|
<filter
|
68
|
-
id="
|
69
|
-
x="
|
70
|
-
y="
|
71
|
-
width="
|
72
|
-
height="${this.
|
69
|
+
id="poi_graphic_line_filter"
|
70
|
+
x="${filterDimensions.x}"
|
71
|
+
y="${filterDimensions.y}"
|
72
|
+
width="${filterDimensions.width}"
|
73
|
+
height="${this.lineHeight + filterDimensions.width}"
|
73
74
|
filterUnits="userSpaceOnUse"
|
74
75
|
color-interpolation-filters="sRGB"
|
75
76
|
>
|
@@ -84,7 +85,7 @@ let ObcPoiGraphicLine = class extends LitElement {
|
|
84
85
|
<feGaussianBlur stdDeviation="0.5" />
|
85
86
|
<feColorMatrix
|
86
87
|
type="matrix"
|
87
|
-
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
|
88
|
+
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ${style.shadowAlpha} 0"
|
88
89
|
/>
|
89
90
|
<feBlend
|
90
91
|
mode="normal"
|
@@ -99,11 +100,11 @@ let ObcPoiGraphicLine = class extends LitElement {
|
|
99
100
|
/>
|
100
101
|
</filter>
|
101
102
|
<linearGradient
|
102
|
-
id="
|
103
|
-
x1="2.5"
|
104
|
-
y1="
|
105
|
-
x2="2.5"
|
106
|
-
y2="${this.
|
103
|
+
id="poi_graphic_line_linear_gradient"
|
104
|
+
x1="${this.width / 2 + 0.5}"
|
105
|
+
y1="${this.lineStart}"
|
106
|
+
x2="${this.width / 2 + 0.5}"
|
107
|
+
y2="${this.lineHeight + this.lineStart}"
|
107
108
|
gradientUnits="userSpaceOnUse"
|
108
109
|
>
|
109
110
|
<stop stop-color="#C2C2C2" />
|
@@ -111,23 +112,127 @@ let ObcPoiGraphicLine = class extends LitElement {
|
|
111
112
|
</linearGradient>
|
112
113
|
</defs>
|
113
114
|
</svg>
|
114
|
-
|
115
|
+
`;
|
115
116
|
}
|
116
117
|
};
|
117
118
|
ObcPoiGraphicLine.styles = unsafeCSS(componentStyle);
|
118
119
|
__decorateClass([
|
119
120
|
property({ type: Number })
|
120
|
-
], ObcPoiGraphicLine.prototype, "
|
121
|
+
], ObcPoiGraphicLine.prototype, "lineHeight", 2);
|
121
122
|
__decorateClass([
|
122
|
-
property({ type:
|
123
|
-
], ObcPoiGraphicLine.prototype, "
|
123
|
+
property({ type: Number })
|
124
|
+
], ObcPoiGraphicLine.prototype, "width", 2);
|
125
|
+
__decorateClass([
|
126
|
+
property({ type: Number })
|
127
|
+
], ObcPoiGraphicLine.prototype, "lineStart", 2);
|
124
128
|
__decorateClass([
|
125
129
|
property({ type: String })
|
126
|
-
], ObcPoiGraphicLine.prototype, "
|
130
|
+
], ObcPoiGraphicLine.prototype, "lineStyle", 2);
|
127
131
|
ObcPoiGraphicLine = __decorateClass([
|
128
132
|
customElement("obc-poi-graphic-line")
|
129
133
|
], ObcPoiGraphicLine);
|
134
|
+
function graphicLine({
|
135
|
+
style,
|
136
|
+
lineHeight,
|
137
|
+
totalHeight
|
138
|
+
}) {
|
139
|
+
const lineStart = 1;
|
140
|
+
const lineEnd = lineStart + lineHeight;
|
141
|
+
const width = style.width;
|
142
|
+
const filterDimensions = style.filterDimensions;
|
143
|
+
const path = `M${width / 2} ${lineStart}L${width / 2} ${lineEnd}`;
|
144
|
+
return html`
|
145
|
+
<svg
|
146
|
+
width="${width}"
|
147
|
+
height="${totalHeight}"
|
148
|
+
viewBox="0 0 ${width} ${totalHeight}"
|
149
|
+
fill="none"
|
150
|
+
vector-effect="non-scaling-stroke"
|
151
|
+
>
|
152
|
+
<mask
|
153
|
+
id="poi_graphic_line_mask"
|
154
|
+
style="mask-type:alpha"
|
155
|
+
maskUnits="userSpaceOnUse"
|
156
|
+
x="${width / 2 - 2}"
|
157
|
+
y="-1"
|
158
|
+
width="4"
|
159
|
+
height="${lineHeight + 4}"
|
160
|
+
>
|
161
|
+
<path
|
162
|
+
d="${path}"
|
163
|
+
stroke="url(#poi_graphic_line_linear_gradient)"
|
164
|
+
stroke-width="4"
|
165
|
+
stroke-linecap="round"
|
166
|
+
/>
|
167
|
+
</mask>
|
168
|
+
<g mask="url(#poi_graphic_line_mask)">
|
169
|
+
<g filter="url(#poi_graphic_line_filter)">
|
170
|
+
<path
|
171
|
+
d=${path}
|
172
|
+
stroke="${style.outlineColor}"
|
173
|
+
stroke-width="${style.outlineWidth}"
|
174
|
+
stroke-linecap="round"
|
175
|
+
/>
|
176
|
+
</g>
|
177
|
+
<path
|
178
|
+
d=${path}
|
179
|
+
stroke="${style.lineColor}"
|
180
|
+
stroke-width="${style.lineWidth}"
|
181
|
+
stroke-linecap="round"
|
182
|
+
/>
|
183
|
+
</g>
|
184
|
+
<defs>
|
185
|
+
<filter
|
186
|
+
id="poi_graphic_line_filter"
|
187
|
+
x="${filterDimensions.x + width / 2 - 2}"
|
188
|
+
y="${filterDimensions.y}"
|
189
|
+
width="${filterDimensions.width}"
|
190
|
+
height="${lineHeight + filterDimensions.width}"
|
191
|
+
filterUnits="userSpaceOnUse"
|
192
|
+
color-interpolation-filters="sRGB"
|
193
|
+
>
|
194
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix" />
|
195
|
+
<feColorMatrix
|
196
|
+
in="SourceAlpha"
|
197
|
+
type="matrix"
|
198
|
+
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
199
|
+
result="hardAlpha"
|
200
|
+
/>
|
201
|
+
<feOffset dy="1" />
|
202
|
+
<feGaussianBlur stdDeviation="0.5" />
|
203
|
+
<feColorMatrix
|
204
|
+
type="matrix"
|
205
|
+
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ${style.shadowAlpha} 0"
|
206
|
+
/>
|
207
|
+
<feBlend
|
208
|
+
mode="normal"
|
209
|
+
in2="BackgroundImageFix"
|
210
|
+
result="effect1_dropShadow_903_40238"
|
211
|
+
/>
|
212
|
+
<feBlend
|
213
|
+
mode="normal"
|
214
|
+
in="SourceGraphic"
|
215
|
+
in2="effect1_dropShadow_903_40238"
|
216
|
+
result="shape"
|
217
|
+
/>
|
218
|
+
</filter>
|
219
|
+
<linearGradient
|
220
|
+
id="poi_graphic_line_linear_gradient"
|
221
|
+
x1="${width / 2 + 0.5}"
|
222
|
+
y1="${lineStart}"
|
223
|
+
x2="${width / 2 + 0.5}"
|
224
|
+
y2="${lineEnd}"
|
225
|
+
gradientUnits="userSpaceOnUse"
|
226
|
+
>
|
227
|
+
<stop stop-color="#C2C2C2" />
|
228
|
+
<stop offset="0.989583" stop-color="#C2C2C2" stop-opacity="0" />
|
229
|
+
</linearGradient>
|
230
|
+
</defs>
|
231
|
+
</svg>
|
232
|
+
`;
|
233
|
+
}
|
130
234
|
export {
|
131
|
-
ObcPoiGraphicLine
|
235
|
+
ObcPoiGraphicLine,
|
236
|
+
graphicLine
|
132
237
|
};
|
133
238
|
//# sourceMappingURL=poi-graphic-line.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"poi-graphic-line.js","sources":["../../../src/navigation-instruments/poi-graphic-line/poi-graphic-line.ts"],"sourcesContent":["import {LitElement, html, unsafeCSS} from 'lit';\nimport {customElement, property} from 'lit/decorators.js';\nimport {POIStyle, POIState, POIStyleConfig, POI_STYLES} from './poi-config';\nimport componentStyle from './poi-graphic-line.css?inline';\n\nfunction getLineColors(style: POIStyle): POIStyleConfig {\n const colors = POI_STYLES[style];\n if (!colors) {\n throw new Error(`Style: ${style} not supported`);\n }\n return colors;\n}\n\n@customElement('obc-poi-graphic-line')\nexport class ObcPoiGraphicLine extends LitElement {\n @property({type: Number}) height: number = 100;\n @property({type: String}) lineStyle: POIStyle = POIStyle.Enhanced;\n @property({type: String}) lineState: POIState = POIState.solid;\n\n override render() {\n const colors = getLineColors(this.lineStyle);\n const path = `M2 1L2 ${this.height}`;\n\n return html`<div class=\"wrapper\">\n <svg width=\"4\" height=\"${this.height}\" viewBox=\"0 0 4 ${this.height}\">\n <mask\n id=\"mask0_903_40238\"\n style=\"mask-type:alpha\"\n maskUnits=\"userSpaceOnUse\"\n x=\"0\"\n y=\"0\"\n width=\"4\"\n height=\"${this.height}\"\n >\n <path\n d=\"${path}\"\n stroke=\"url(#paint0_linear_903_40238)\"\n stroke-width=\"4\"\n stroke-linecap=\"round\"\n />\n </mask>\n <g mask=\"url(#mask0_903_40238)\">\n <g filter=\"url(#filter0_d_903_40238)\">\n <path\n d=${path}\n stroke=\"${colors.outlineColor}\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </g>\n <path\n d=${path}\n stroke=\"${colors.lineColor}\"\n stroke-width=\"1\"\n stroke-linecap=\"round\"\n />\n </g>\n <defs>\n <filter\n id=\"filter0_d_903_40238\"\n x=\"0\"\n y=\"0\"\n width=\"4\"\n height=\"${this.height}\"\n filterUnits=\"userSpaceOnUse\"\n color-interpolation-filters=\"sRGB\"\n >\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\" />\n <feColorMatrix\n in=\"SourceAlpha\"\n type=\"matrix\"\n values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"\n result=\"hardAlpha\"\n />\n <feOffset dy=\"1\" />\n <feGaussianBlur stdDeviation=\"0.5\" />\n <feColorMatrix\n type=\"matrix\"\n values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0\"\n />\n <feBlend\n mode=\"normal\"\n in2=\"BackgroundImageFix\"\n result=\"effect1_dropShadow_903_40238\"\n />\n <feBlend\n mode=\"normal\"\n in=\"SourceGraphic\"\n in2=\"effect1_dropShadow_903_40238\"\n result=\"shape\"\n />\n </filter>\n <linearGradient\n id=\"paint0_linear_903_40238\"\n x1=\"2.5\"\n y1=\"1\"\n x2=\"2.5\"\n y2=\"${this.height}\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop stop-color=\"#C2C2C2\" />\n <stop offset=\"0.989583\" stop-color=\"#C2C2C2\" stop-opacity=\"0\" />\n </linearGradient>\n </defs>\n </svg>\n </div> `;\n }\n\n static override styles = unsafeCSS(componentStyle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-poi-graphic-line': ObcPoiGraphicLine;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAKA,SAAS,cAAc,OAAiC;AAChD,QAAA,SAAS,WAAW,KAAK;AAC/B,MAAI,CAAC,QAAQ;AACX,UAAM,IAAI,MAAM,UAAU,KAAK,gBAAgB;AAAA,EAAA;AAE1C,SAAA;AACT;AAGa,IAAA,oBAAN,cAAgC,WAAW;AAAA,EAA3C,cAAA;AAAA,UAAA,GAAA,SAAA;AACsC,SAAA,SAAA;AACjB,SAAA,YAAsB,SAAS;AAC/B,SAAA,YAAsB,SAAS;AAAA,EAAA;AAAA,EAEhD,SAAS;AACV,UAAA,SAAS,cAAc,KAAK,SAAS;AACrC,UAAA,OAAO,UAAU,KAAK,MAAM;AAE3B,WAAA;AAAA,+BACoB,KAAK,MAAM,oBAAoB,KAAK,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAQrD,KAAK,MAAM;AAAA;AAAA;AAAA,iBAGd,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBASH,IAAI;AAAA,wBACE,OAAO,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAM3B,IAAI;AAAA,sBACE,OAAO,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAWhB,KAAK,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAkCf,KAAK,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA;AAY7B;AA/Fa,kBA8FK,SAAS,UAAU,cAAc;AA7FvB,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAO,CAAA;AAAA,GADb,kBACe,WAAA,UAAA,CAAA;AACA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAO,CAAA;AAAA,GAFb,kBAEe,WAAA,aAAA,CAAA;AACA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAO,CAAA;AAAA,GAHb,kBAGe,WAAA,aAAA,CAAA;AAHf,oBAAN,gBAAA;AAAA,EADN,cAAc,sBAAsB;AAAA,GACxB,iBAAA;"}
|
1
|
+
{"version":3,"file":"poi-graphic-line.js","sources":["../../../src/navigation-instruments/poi-graphic-line/poi-graphic-line.ts"],"sourcesContent":["import {LitElement, html, unsafeCSS} from 'lit';\nimport {customElement, property} from 'lit/decorators.js';\nimport {POILineParams, POIStyle, POI_LINE_CONFIG} from './poi-config';\nimport componentStyle from './poi-graphic-line.css?inline';\n\n@customElement('obc-poi-graphic-line')\nexport class ObcPoiGraphicLine extends LitElement {\n @property({type: Number}) lineHeight: number = 96;\n @property({type: Number}) width: number = 4;\n @property({type: Number}) lineStart: number = 1;\n @property({type: String}) lineStyle: POIStyle = POIStyle.Enhanced;\n\n override render() {\n const style = POI_LINE_CONFIG[this.lineStyle];\n const filterDimensions = style.filterDimensions;\n const path = `M${this.width / 2} ${this.lineStart}L${this.width / 2} ${this.lineHeight + this.lineStart}`;\n\n return html`\n <svg\n width=\"${this.width}\"\n height=\"${this.lineHeight + style.lineEnd}\"\n viewBox=\"0 0 ${this.width} ${this.lineHeight + style.lineEnd}\"\n fill=\"none\"\n vector-effect=\"non-scaling-stroke\"\n >\n <mask\n id=\"poi_graphic_line_mask\"\n style=\"mask-type:alpha\"\n maskUnits=\"userSpaceOnUse\"\n x=\"${this.width / 2 - 2}\"\n y=\"-1\"\n width=\"4\"\n height=\"${this.lineHeight + 4}\"\n >\n <path\n d=\"${path}\"\n stroke=\"url(#poi_graphic_line_linear_gradient)\"\n stroke-width=\"4\"\n stroke-linecap=\"round\"\n />\n </mask>\n <g mask=\"url(#poi_graphic_line_mask)\">\n <g filter=\"url(#poi_graphic_line_filter)\">\n <path\n d=${path}\n stroke=\"${style.outlineColor}\"\n stroke-width=\"${style.outlineWidth}\"\n stroke-linecap=\"round\"\n />\n </g>\n <path\n d=${path}\n stroke=\"${style.lineColor}\"\n stroke-width=\"${style.lineWidth}\"\n stroke-linecap=\"round\"\n />\n </g>\n <defs>\n <filter\n id=\"poi_graphic_line_filter\"\n x=\"${filterDimensions.x}\"\n y=\"${filterDimensions.y}\"\n width=\"${filterDimensions.width}\"\n height=\"${this.lineHeight + filterDimensions.width}\"\n filterUnits=\"userSpaceOnUse\"\n color-interpolation-filters=\"sRGB\"\n >\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\" />\n <feColorMatrix\n in=\"SourceAlpha\"\n type=\"matrix\"\n values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"\n result=\"hardAlpha\"\n />\n <feOffset dy=\"1\" />\n <feGaussianBlur stdDeviation=\"0.5\" />\n <feColorMatrix\n type=\"matrix\"\n values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ${style.shadowAlpha} 0\"\n />\n <feBlend\n mode=\"normal\"\n in2=\"BackgroundImageFix\"\n result=\"effect1_dropShadow_903_40238\"\n />\n <feBlend\n mode=\"normal\"\n in=\"SourceGraphic\"\n in2=\"effect1_dropShadow_903_40238\"\n result=\"shape\"\n />\n </filter>\n <linearGradient\n id=\"poi_graphic_line_linear_gradient\"\n x1=\"${this.width / 2 + 0.5}\"\n y1=\"${this.lineStart}\"\n x2=\"${this.width / 2 + 0.5}\"\n y2=\"${this.lineHeight + this.lineStart}\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop stop-color=\"#C2C2C2\" />\n <stop offset=\"0.989583\" stop-color=\"#C2C2C2\" stop-opacity=\"0\" />\n </linearGradient>\n </defs>\n </svg>\n `;\n }\n\n static override styles = unsafeCSS(componentStyle);\n}\n\nexport function graphicLine({\n style,\n lineHeight,\n totalHeight,\n}: {\n style: POILineParams;\n lineHeight: number;\n totalHeight: number;\n}) {\n const lineStart = 1;\n const lineEnd = lineStart + lineHeight;\n\n const width = style.width;\n const filterDimensions = style.filterDimensions;\n const path = `M${width / 2} ${lineStart}L${width / 2} ${lineEnd}`;\n\n return html`\n <svg\n width=\"${width}\"\n height=\"${totalHeight}\"\n viewBox=\"0 0 ${width} ${totalHeight}\"\n fill=\"none\"\n vector-effect=\"non-scaling-stroke\"\n >\n <mask\n id=\"poi_graphic_line_mask\"\n style=\"mask-type:alpha\"\n maskUnits=\"userSpaceOnUse\"\n x=\"${width / 2 - 2}\"\n y=\"-1\"\n width=\"4\"\n height=\"${lineHeight + 4}\"\n >\n <path\n d=\"${path}\"\n stroke=\"url(#poi_graphic_line_linear_gradient)\"\n stroke-width=\"4\"\n stroke-linecap=\"round\"\n />\n </mask>\n <g mask=\"url(#poi_graphic_line_mask)\">\n <g filter=\"url(#poi_graphic_line_filter)\">\n <path\n d=${path}\n stroke=\"${style.outlineColor}\"\n stroke-width=\"${style.outlineWidth}\"\n stroke-linecap=\"round\"\n />\n </g>\n <path\n d=${path}\n stroke=\"${style.lineColor}\"\n stroke-width=\"${style.lineWidth}\"\n stroke-linecap=\"round\"\n />\n </g>\n <defs>\n <filter\n id=\"poi_graphic_line_filter\"\n x=\"${filterDimensions.x + width / 2 - 2}\"\n y=\"${filterDimensions.y}\"\n width=\"${filterDimensions.width}\"\n height=\"${lineHeight + filterDimensions.width}\"\n filterUnits=\"userSpaceOnUse\"\n color-interpolation-filters=\"sRGB\"\n >\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\" />\n <feColorMatrix\n in=\"SourceAlpha\"\n type=\"matrix\"\n values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"\n result=\"hardAlpha\"\n />\n <feOffset dy=\"1\" />\n <feGaussianBlur stdDeviation=\"0.5\" />\n <feColorMatrix\n type=\"matrix\"\n values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ${style.shadowAlpha} 0\"\n />\n <feBlend\n mode=\"normal\"\n in2=\"BackgroundImageFix\"\n result=\"effect1_dropShadow_903_40238\"\n />\n <feBlend\n mode=\"normal\"\n in=\"SourceGraphic\"\n in2=\"effect1_dropShadow_903_40238\"\n result=\"shape\"\n />\n </filter>\n <linearGradient\n id=\"poi_graphic_line_linear_gradient\"\n x1=\"${width / 2 + 0.5}\"\n y1=\"${lineStart}\"\n x2=\"${width / 2 + 0.5}\"\n y2=\"${lineEnd}\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop stop-color=\"#C2C2C2\" />\n <stop offset=\"0.989583\" stop-color=\"#C2C2C2\" stop-opacity=\"0\" />\n </linearGradient>\n </defs>\n </svg>\n `;\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-poi-graphic-line': ObcPoiGraphicLine;\n }\n}\n"],"names":[],"mappings":"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"}
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import { css } from "lit";
|
2
|
-
const compentStyle = css`.
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
2
|
+
const compentStyle = css`.container {
|
3
|
+
position: relative;
|
4
|
+
}
|
5
|
+
|
6
|
+
.container > * {
|
7
|
+
position: absolute;
|
8
|
+
top: -1px;
|
9
|
+
left: 0;
|
9
10
|
}
|
10
11
|
`;
|
11
12
|
export {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"poi-line.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"poi-line.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
@@ -3,7 +3,7 @@ import { POIStyle } from '../poi-graphic-line/poi-config';
|
|
3
3
|
import '../poi-graphic-line/poi-graphic-line';
|
4
4
|
export declare class ObcPoiLine extends LitElement {
|
5
5
|
height: number;
|
6
|
-
|
6
|
+
poiStyle: POIStyle;
|
7
7
|
render(): import('lit-html').TemplateResult<1>;
|
8
8
|
static styles: import('lit').CSSResult;
|
9
9
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"poi-line.d.ts","sourceRoot":"","sources":["../../../src/navigation-instruments/poi-line/poi-line.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAkB,MAAM,KAAK,CAAC;AAGhD,OAAO,sCAAsC,CAAC;AAE9C,OAAO,
|
1
|
+
{"version":3,"file":"poi-line.d.ts","sourceRoot":"","sources":["../../../src/navigation-instruments/poi-line/poi-line.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAkB,MAAM,KAAK,CAAC;AAGhD,OAAO,sCAAsC,CAAC;AAE9C,OAAO,EAAkB,QAAQ,EAAC,MAAM,gCAAgC,CAAC;AAGzE,qBACa,UAAW,SAAQ,UAAU;IACd,MAAM,EAAE,MAAM,CAAM;IACpB,QAAQ,EAAE,QAAQ,CAAmB;IAEtD,MAAM;IAgCf,OAAgB,MAAM,0BAA2B;CAClD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,UAAU,CAAC;KAC5B;CACF"}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { unsafeCSS, LitElement, html } from "lit";
|
2
2
|
import { property, customElement } from "lit/decorators.js";
|
3
3
|
import compentStyle from "./poi-line.css.js";
|
4
|
-
import "../poi-graphic-line/poi-graphic-line.js";
|
4
|
+
import { graphicLine } from "../poi-graphic-line/poi-graphic-line.js";
|
5
5
|
import { renderPointerDot } from "./pointerDot.js";
|
6
|
-
import { POIStyle } from "../poi-graphic-line/poi-config.js";
|
6
|
+
import { POIStyle, POI_LINE_CONFIG } from "../poi-graphic-line/poi-config.js";
|
7
7
|
var __defProp = Object.defineProperty;
|
8
8
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
9
9
|
var __decorateClass = (decorators, target, key, kind) => {
|
@@ -18,16 +18,34 @@ let ObcPoiLine = class extends LitElement {
|
|
18
18
|
constructor() {
|
19
19
|
super(...arguments);
|
20
20
|
this.height = 96;
|
21
|
-
this.
|
21
|
+
this.poiStyle = POIStyle.Normal;
|
22
22
|
}
|
23
23
|
render() {
|
24
|
+
const style = POI_LINE_CONFIG[this.poiStyle];
|
25
|
+
let lineHeight = this.height - 4;
|
26
|
+
let centerX = 2;
|
27
|
+
let centerYOffset = 1;
|
28
|
+
if (this.poiStyle === POIStyle.Normal) {
|
29
|
+
lineHeight = this.height - 3;
|
30
|
+
centerYOffset = 2;
|
31
|
+
centerX = 1;
|
32
|
+
}
|
33
|
+
const totalHeight = lineHeight + style.width + style.dotStart;
|
24
34
|
return html`
|
25
|
-
<div
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
${renderPointerDot({
|
35
|
+
<div
|
36
|
+
class="container"
|
37
|
+
style="height: ${totalHeight}px; width: ${style.width}px;"
|
38
|
+
>
|
39
|
+
${graphicLine({ style, lineHeight, totalHeight })}
|
40
|
+
${renderPointerDot({
|
41
|
+
lineStyle: this.poiStyle,
|
42
|
+
centerX,
|
43
|
+
centerY: lineHeight + centerYOffset,
|
44
|
+
width: style.width,
|
45
|
+
vbHeight: totalHeight,
|
46
|
+
lineColor: style.lineColor,
|
47
|
+
outlineColor: style.outlineColor
|
48
|
+
})}
|
31
49
|
</div>
|
32
50
|
`;
|
33
51
|
}
|
@@ -38,7 +56,7 @@ __decorateClass([
|
|
38
56
|
], ObcPoiLine.prototype, "height", 2);
|
39
57
|
__decorateClass([
|
40
58
|
property({ type: String })
|
41
|
-
], ObcPoiLine.prototype, "
|
59
|
+
], ObcPoiLine.prototype, "poiStyle", 2);
|
42
60
|
ObcPoiLine = __decorateClass([
|
43
61
|
customElement("obc-poi-line")
|
44
62
|
], ObcPoiLine);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"poi-line.js","sources":["../../../src/navigation-instruments/poi-line/poi-line.ts"],"sourcesContent":["import {LitElement, html, unsafeCSS} from 'lit';\nimport {customElement, property} from 'lit/decorators.js';\nimport compentStyle from './poi-line.css?inline';\nimport '../poi-graphic-line/poi-graphic-line';\nimport {renderPointerDot} from './pointerDot';\nimport {POIStyle} from '../poi-graphic-line/poi-config';\n\n@customElement('obc-poi-line')\nexport class ObcPoiLine extends LitElement {\n @property({type: Number}) height: number = 96;\n @property({type: String})
|
1
|
+
{"version":3,"file":"poi-line.js","sources":["../../../src/navigation-instruments/poi-line/poi-line.ts"],"sourcesContent":["import {LitElement, html, unsafeCSS} from 'lit';\nimport {customElement, property} from 'lit/decorators.js';\nimport compentStyle from './poi-line.css?inline';\nimport '../poi-graphic-line/poi-graphic-line';\nimport {renderPointerDot} from './pointerDot';\nimport {POI_LINE_CONFIG, POIStyle} from '../poi-graphic-line/poi-config';\nimport {graphicLine} from '../poi-graphic-line/poi-graphic-line';\n\n@customElement('obc-poi-line')\nexport class ObcPoiLine extends LitElement {\n @property({type: Number}) height: number = 96;\n @property({type: String}) poiStyle: POIStyle = POIStyle.Normal;\n\n override render() {\n const style = POI_LINE_CONFIG[this.poiStyle];\n let lineHeight = this.height - 4;\n let centerX = 2;\n let centerYOffset = 1;\n if (this.poiStyle === POIStyle.Normal) {\n lineHeight = this.height - 3;\n centerYOffset = 2;\n centerX = 1;\n }\n\n const totalHeight = lineHeight + style.width + style.dotStart;\n\n return html`\n <div\n class=\"container\"\n style=\"height: ${totalHeight}px; width: ${style.width}px;\"\n >\n ${graphicLine({style, lineHeight, totalHeight})}\n ${renderPointerDot({\n lineStyle: this.poiStyle,\n centerX: centerX,\n centerY: lineHeight + centerYOffset,\n width: style.width,\n vbHeight: totalHeight,\n lineColor: style.lineColor,\n outlineColor: style.outlineColor,\n })}\n </div>\n `;\n }\n\n static override styles = unsafeCSS(compentStyle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-poi-line': ObcPoiLine;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AASa,IAAA,aAAN,cAAyB,WAAW;AAAA,EAApC,cAAA;AAAA,UAAA,GAAA,SAAA;AACsC,SAAA,SAAA;AACjB,SAAA,WAAqB,SAAS;AAAA,EAAA;AAAA,EAE/C,SAAS;AACV,UAAA,QAAQ,gBAAgB,KAAK,QAAQ;AACvC,QAAA,aAAa,KAAK,SAAS;AAC/B,QAAI,UAAU;AACd,QAAI,gBAAgB;AAChB,QAAA,KAAK,aAAa,SAAS,QAAQ;AACrC,mBAAa,KAAK,SAAS;AACX,sBAAA;AACN,gBAAA;AAAA,IAAA;AAGZ,UAAM,cAAc,aAAa,MAAM,QAAQ,MAAM;AAE9C,WAAA;AAAA;AAAA;AAAA,yBAGc,WAAW,cAAc,MAAM,KAAK;AAAA;AAAA,UAEnD,YAAY,EAAC,OAAO,YAAY,YAAA,CAAY,CAAC;AAAA,UAC7C,iBAAiB;AAAA,MACjB,WAAW,KAAK;AAAA,MAChB;AAAA,MACA,SAAS,aAAa;AAAA,MACtB,OAAO,MAAM;AAAA,MACb,UAAU;AAAA,MACV,WAAW,MAAM;AAAA,MACjB,cAAc,MAAM;AAAA,IAAA,CACrB,CAAC;AAAA;AAAA;AAAA,EAAA;AAMV;AArCa,WAoCK,SAAS,UAAU,YAAY;AAnCrB,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAO,CAAA;AAAA,GADb,WACe,WAAA,UAAA,CAAA;AACA,gBAAA;AAAA,EAAzB,SAAS,EAAC,MAAM,OAAO,CAAA;AAAA,GAFb,WAEe,WAAA,YAAA,CAAA;AAFf,aAAN,gBAAA;AAAA,EADN,cAAc,cAAc;AAAA,GAChB,UAAA;"}
|
@@ -1,5 +1,11 @@
|
|
1
1
|
import { POIStyle } from '../poi-graphic-line/poi-config';
|
2
|
-
export declare function renderPointerDot({ lineStyle }: {
|
2
|
+
export declare function renderPointerDot({ lineStyle, centerX, centerY, width, vbHeight, lineColor, outlineColor, }: {
|
3
3
|
lineStyle: POIStyle;
|
4
|
+
centerX: number;
|
5
|
+
centerY: number;
|
6
|
+
width: number;
|
7
|
+
vbHeight: number;
|
8
|
+
lineColor: string;
|
9
|
+
outlineColor: string;
|
4
10
|
}): import('lit-html').TemplateResult<1>;
|
5
11
|
//# sourceMappingURL=pointerDot.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pointerDot.d.ts","sourceRoot":"","sources":["../../../src/navigation-instruments/poi-line/pointerDot.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,gCAAgC,CAAC;
|
1
|
+
{"version":3,"file":"pointerDot.d.ts","sourceRoot":"","sources":["../../../src/navigation-instruments/poi-line/pointerDot.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAC,MAAM,gCAAgC,CAAC;AAoBxD,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,OAAO,EACP,OAAO,EACP,KAAK,EACL,QAAQ,EACR,SAAS,EACT,YAAY,GACb,EAAE;IACD,SAAS,EAAE,QAAQ,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB,wCAgFA"}
|