vislite 0.8.2-alpha.0 → 0.8.2-alpha.2
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/CHANGELOG +6 -1
- package/lib/Buffer/index.umd.js +2 -2
- package/lib/Buffer/index.umd.min.js +2 -2
- package/lib/Canvas/index.umd.js +4 -4
- package/lib/Canvas/index.umd.min.js +3 -3
- package/lib/Cardinal/index.umd.js +2 -2
- package/lib/Cardinal/index.umd.min.js +2 -2
- package/lib/Eoap/index.umd.js +2 -2
- package/lib/Eoap/index.umd.min.js +2 -2
- package/lib/Geometry/index.umd.js +2 -2
- package/lib/Geometry/index.umd.min.js +2 -2
- package/lib/Hermite/index.umd.js +2 -2
- package/lib/Hermite/index.umd.min.js +2 -2
- package/lib/Matrix4/index.umd.js +2 -2
- package/lib/Matrix4/index.umd.min.js +2 -2
- package/lib/Mercator/index.umd.js +2 -2
- package/lib/Mercator/index.umd.min.js +2 -2
- package/lib/OralCanvas/index.es.js +4 -4
- package/lib/OralCanvas/index.es.min.js +3 -3
- package/lib/OralWebGL/index.es.js +2 -2
- package/lib/OralWebGL/index.es.min.js +2 -2
- package/lib/SVG/index.umd.js +8 -8
- package/lib/SVG/index.umd.min.js +3 -3
- package/lib/Shader/index.umd.js +2 -2
- package/lib/Shader/index.umd.min.js +2 -2
- package/lib/Texture/index.umd.js +2 -2
- package/lib/Texture/index.umd.min.js +2 -2
- package/lib/TreeLayout/index.umd.js +2 -2
- package/lib/TreeLayout/index.umd.min.js +2 -2
- package/lib/WebGL/index.umd.js +2 -2
- package/lib/WebGL/index.umd.min.js +2 -2
- package/lib/animation/index.umd.js +2 -2
- package/lib/animation/index.umd.min.js +2 -2
- package/lib/formatColor/index.umd.js +2 -2
- package/lib/formatColor/index.umd.min.js +2 -2
- package/lib/getLoopColors/index.umd.js +2 -2
- package/lib/getLoopColors/index.umd.min.js +2 -2
- package/lib/getWebGLContext/index.umd.js +2 -2
- package/lib/getWebGLContext/index.umd.min.js +2 -2
- package/lib/index.umd.js +10 -10
- package/lib/index.umd.min.js +3 -3
- package/lib/move/index.umd.js +2 -2
- package/lib/move/index.umd.min.js +2 -2
- package/lib/resizeObserver/index.umd.js +2 -2
- package/lib/resizeObserver/index.umd.min.js +2 -2
- package/lib/rotate/index.umd.js +2 -2
- package/lib/rotate/index.umd.min.js +2 -2
- package/lib/ruler/index.umd.js +2 -2
- package/lib/ruler/index.umd.min.js +2 -2
- package/lib/scale/index.umd.js +2 -2
- package/lib/scale/index.umd.min.js +2 -2
- package/lib/throttle/index.umd.js +2 -2
- package/lib/throttle/index.umd.min.js +2 -2
- package/lib/viewHandler/index.umd.js +2 -2
- package/lib/viewHandler/index.umd.min.js +2 -2
- package/miniprogram/ui-canvas/index.js +6 -4
- package/package.json +1 -1
- package/src/common/canvas/painter.ts +3 -3
- package/src/common/svg/config.ts +3 -1
- package/src/common/svg/index.ts +3 -3
- package/src/common/svg/tool.ts +0 -2
package/src/common/svg/index.ts
CHANGED
|
@@ -264,17 +264,17 @@ class SVG {
|
|
|
264
264
|
return this
|
|
265
265
|
}
|
|
266
266
|
fill() {
|
|
267
|
-
initPath(this.__useEl, this.__path)
|
|
267
|
+
initPath(this.__useEl, this.__path, this.__config)
|
|
268
268
|
fill(this.__useEl, this.__config)
|
|
269
269
|
return this
|
|
270
270
|
}
|
|
271
271
|
stroke() {
|
|
272
|
-
initPath(this.__useEl, this.__path)
|
|
272
|
+
initPath(this.__useEl, this.__path, this.__config)
|
|
273
273
|
stroke(this.__useEl, this.__config)
|
|
274
274
|
return this
|
|
275
275
|
}
|
|
276
276
|
full() {
|
|
277
|
-
initPath(this.__useEl, this.__path)
|
|
277
|
+
initPath(this.__useEl, this.__path, this.__config)
|
|
278
278
|
full(this.__useEl, this.__config)
|
|
279
279
|
return this
|
|
280
280
|
}
|
package/src/common/svg/tool.ts
CHANGED
|
@@ -31,7 +31,6 @@ export function getAttribute(el: SVGElement, key: string) {
|
|
|
31
31
|
export function full(el: SVGElement, config: SVGConfigType) {
|
|
32
32
|
_setAttribute(el, "stroke", config.strokeStyle as string)
|
|
33
33
|
_setAttribute(el, "fill", config.fillStyle as string)
|
|
34
|
-
_setAttribute(el, "stroke-dasharray", (config.lineDash as Array<number>).join(','))
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
export function fill(el: SVGElement, config: SVGConfigType) {
|
|
@@ -41,5 +40,4 @@ export function fill(el: SVGElement, config: SVGConfigType) {
|
|
|
41
40
|
export function stroke(el: SVGElement, config: SVGConfigType) {
|
|
42
41
|
_setAttribute(el, "stroke", config.strokeStyle as string)
|
|
43
42
|
_setAttribute(el, "fill", "none")
|
|
44
|
-
_setAttribute(el, "stroke-dasharray", (config.lineDash as Array<number>).join(','))
|
|
45
43
|
}
|