Skip to content

Commit

Permalink
migrating to Pillar 10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ducasse committed Aug 23, 2024
1 parent 3dc9793 commit e4d5d74
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 75 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Book generation
name: Book with Pillar

on:
push:
Expand All @@ -13,6 +13,6 @@ on:

jobs:
build:
uses: SquareBracketAssociates/BookBuilderDashboard/.github/workflows/main.yml@sbabook-upgrade
uses: SquareBracketAssociates/BookBuilderDashboard/.github/workflows/main.yml@newVersionOfPillar
with:
bookname: Pharo-Graphics
bookname: bkTemplate
56 changes: 50 additions & 6 deletions Chapters/bloc/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,14 +276,58 @@ If you drop `elt1` on `elt2`, `elt2` opens an inspector on `elt1`.
```
| elt1 elt2 space |
elt1 := BlElement new
background: Color lightBlue; position: 100 asPoint; addEventHandler: BlPullHandler new disallowOutOfBounds; id: #elt1; yourself.
elt2 := BlElement new
background: Color red; size: 100 asPoint; position: 200 asPoint; id: #elt2; yourself.
space := BlSpace new.space root addChildren: { elt1 . elt2 }. elt2
background: Color lightBlue;
position: 100 asPoint;
addEventHandler: BlPullHandler new disallowOutOfBounds;
id: #elt1;
yourself.
elt2 := BlElement new
background: Color red;
size: 100 asPoint;
position: 200 asPoint;
id: #elt2;
yourself.
space := BlSpace new.
space root addChildren: { elt1 . elt2 }.
elt2
addEventHandlerOn: BlDropEvent
do: [ :evt | evt gestureSource inspect ].elt1
do: [ :evt | evt gestureSource inspect ].
elt1
addEventHandlerOn: BlDragEndEvent
do: [ :evt | ]. space show.
do: [ :evt | ].
space show.
```


### Manually drag and drop

```
elt := BlElement new background: Color red; size: 200 asPoint.
offset := 0.
elt addEventHandlerOn: BlDragStartEvent do: [ :e | e consume.
offset := e position - elt position].
elt addEventHandlerOn: BlDragEvent do: [ :e | elt position: e position - offset ].
elt openInSpace.
```



### BlPullHandler


```
parent := BlElement new background: Color lightGreen; size: 600 asPoint.
elt := BlElement new background: Color red; size: 100 asPoint.
parent addChild: elt.
elt addEventHandler: BlPullHandler new disallowOutOfBounds.
parent openInSpace.
```

68 changes: 2 additions & 66 deletions _support/latex/texlive.deps
Original file line number Diff line number Diff line change
@@ -1,67 +1,3 @@
auxhook
bigintcalc
bitset
booktabs
cm
ctablestack
environ
epstopdf-pkg
etoolbox
fira
fontaxes
fontspec
footmisc
gentium-tug
gettitlestring
graphics
graphics-cfg
graphics-def
hycolor
hyperref
iftex
amsmath
import
infwarerr
intcalc
kvdefinekeys
kvoptions
kvsetkeys
l3backend
l3kernel
l3packages
latex
latex-fonts
latexconfig
listings
ltxcmds
lua-uni-algos
lualibs
luaotfload
luatexbase
memoir
mptopdf
multirow
opensans
pdfcol
pdfescape
pdftexcmds
pgf
polyglossia
ragged2e
refcount
rerunfilecheck
stringenc
tcolorbox
tex-ini-files
textcase
tikzfill
tools
trimspaces
ulem
unicode-data
uniquecounter
url
varwidth
xcolor
xkeyval
xpatch
xtab
ulem

0 comments on commit e4d5d74

Please sign in to comment.