Skip to content

[Bug fixes] circle anchors detached from the circle elements. #1051

@hexiongwu1995

Description

@hexiongwu1995

Circle anchors detached from the circle elements. Can anyone provide an explanation and a solution to this problem? This problem keeps cropping up, it really bothers me.

#set page(paper:"a4", flipped:true, margin:1cm)
#set align(center + horizon)
#set text(size:1em)

#import "@preview/cetz:0.4.2"
#cetz.canvas({
import cetz.draw:*
import calc:*
set-style( mark:(end:(symbol:"stealth", fill:black, scale:0.5)) )
set-style(stroke:orange)
ortho(x:300deg, y:0deg, z:240deg, {

line((0,0,0), (4,0,0), name:"x")
line((0,0,0), (0,4,0), name:"y")
line((0,0,0), (0,0,4), name:"z")
content((rel:(0.3,0,0), to:"x.end"), $x$)
content((rel:(0,0.3,0), to:"y.end"), $y$)
content((rel:(0,0,0.3), to:"z.end"), $z$)

let cir-num=1
for i in range(cir-num) {
let interval= 2* pi/cir-num
rotate(z:interval* 1rad)
on-yz(x:0, {
circle((0,4), radius:2, name:"cir") ;
line("cir.center", "cir.20%")

}) } 

})

})
Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions