Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Insufficient facts always invite danger. -- Spock, "Space Seed", stardate 3141.9


devel / alt.html / Re: Placing compound SVG items around coordinate (0,0)

SubjectAuthor
* Placing compound SVG items around coordinate (0,0)Janis Papanagnou
`- Re: Placing compound SVG items around coordinate (0,0)Janis Papanagnou

1
Placing compound SVG items around coordinate (0,0)

<uj9qgt$3841s$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=762&group=alt.html#762

  copy link   Newsgroups: alt.html
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: alt.html
Subject: Placing compound SVG items around coordinate (0,0)
Date: Sat, 18 Nov 2023 08:53:00 +0100
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <uj9qgt$3841s$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 18 Nov 2023 07:53:01 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3606bc7160ebd8390f52ec365126fe88";
logging-data="3412028"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX188IQSZXq40wf8whLfteVdf"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:/X5JcmTsgjQUbI9fvN/aEzRiLE0=
X-Enigmail-Draft-Status: N1110
X-Mozilla-News-Host: news://news.eternal-september.org:119
 by: Janis Papanagnou - Sat, 18 Nov 2023 07:53 UTC

I'm trying to construct a graphical symmetrically composed element -
say, a compass rose - with <svg> tags in a HTML source context.
My intention was - to simplify the transformations - to center the
element around coordinate (0,0). But I have problems even with a
simple composed graphical element. I had composed a simple element
placed in one quadrant of the coordinate system with some center
point (x,y) (where x, y unequal 0) like this:

+------
| / \
| \ /

but if (for example) I scale that then the _center_ of the composed
item gets relocated, but I want it persist. (SVG code below.[*])

So I tried to compose the element around (0,0) as illustrated here:

/|\
---+---
\|/

so that scaling and other point-symmetric derivations can be defined
easily without disturbing that symmetry.

I've looked for tutorials on the Web but the spare information I
found was more confusing than helpful to me. - Is there maybe any
good source you can recommend? Or maybe some small HTML/SVG code
sample how to center compound graphical items around (0,0)?

Janis

[*] Myself I was stuck with using fixed (not (0,0)-centered)
coordinates like

<svg id="def" xmlns="http://www.w3.org/2000/svg" version="1.1"
width="600" height="400" viewBox="-200 -100 600 400"
xlink="http://www.w3.org/1999/xlink"
style="position: relative; overflow: hidden;
left: 0px; top: 0px; display: block;">
<svg>
<g id="str" transform="scale(0.2)">
<circle cx="100" cy="100" r="100"/>
<polygon points=" ... "/>
</g>
...

Re: Placing compound SVG items around coordinate (0,0)

<ujbq3d$3hk9v$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=763&group=alt.html#763

  copy link   Newsgroups: alt.html
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: alt.html
Subject: Re: Placing compound SVG items around coordinate (0,0)
Date: Sun, 19 Nov 2023 02:58:04 +0100
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <ujbq3d$3hk9v$1@dont-email.me>
References: <uj9qgt$3841s$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 19 Nov 2023 01:58:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f981c8032cb98508bc561dd1665d028d";
logging-data="3723583"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6zlkOIucufZjnssEDYnpS"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:a1Hx6WEpWsvkzGunsY4sxJYlwgM=
In-Reply-To: <uj9qgt$3841s$1@dont-email.me>
 by: Janis Papanagnou - Sun, 19 Nov 2023 01:58 UTC

On 18.11.2023 08:53, Janis Papanagnou wrote:
> [...]

Solved it. - The problem, e.g. that parts of the SVG had got cropped,
vanished after relocating the viewBox definition from the outer <svg>
to the inner. (Then the change of cx/cy to 0/0 was effective without
any visible cropping.)

Janis

>
> [*] Myself I was stuck with using fixed (not (0,0)-centered)
> coordinates like
>
> <svg id="def" xmlns="http://www.w3.org/2000/svg" version="1.1"
> width="600" height="400" viewBox="-200 -100 600 400"
> xlink="http://www.w3.org/1999/xlink"
> style="position: relative; overflow: hidden;
> left: 0px; top: 0px; display: block;">
> <svg>
> <g id="str" transform="scale(0.2)">
> <circle cx="100" cy="100" r="100"/>
> <polygon points=" ... "/>
> </g>
> ...
>

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor