deepscan fixes and viewbox sizing on negative position fix
This commit is contained in:
parent
404718c776
commit
a7931792ea
2 changed files with 5 additions and 9 deletions
|
@ -1,7 +1,6 @@
|
|||
import { useEffect, useRef, useState } from 'react'
|
||||
import { useEffect, useRef} from 'react'
|
||||
import Svg from '../../draft/svg'
|
||||
import Defs from '../../draft/defs'
|
||||
import { angle } from '../../draft/utils'
|
||||
import Part from './part'
|
||||
|
||||
const Draft = props => {
|
||||
|
@ -61,7 +60,7 @@ const Draft = props => {
|
|||
|
||||
return (
|
||||
<div className="my-8 w-11/12 m-auto border-2 border-dotted border-base-content shadow">
|
||||
<Svg {...patternProps} embed={gist.embed} ref={svgRef} viewBox={layout.topLeft ? `${layout.topLeft.x} ${layout.topLeft.y} ${layout.bottomRight.x} ${layout.bottomRight.y}` : false}>
|
||||
<Svg {...patternProps} embed={gist.embed} ref={svgRef} viewBox={layout.topLeft ? `${layout.topLeft.x} ${layout.topLeft.y} ${layout.width} ${layout.height}` : false}>
|
||||
<Defs {...patternProps} />
|
||||
<style>{`:root { --pattern-scale: ${gist.scale || 1}}`}</style>
|
||||
<g>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue