Giter VIP home page Giter VIP logo

graphics's People

Contributors

jnjackins avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

graphics's Issues

Attempting to run on modern ubuntu I get the following error:

A lot of good work went into this, thank you Jeremy.

Trying to compile the editor or just run one of the examples I get the same error:

go install github.com/graphics/cmd/edit

github.com/graphics/vendor/golang.org/x/exp/shiny/driver/x11driver

github.com/graphics/vendor/golang.org/x/exp/shiny/driver/x11driver/window.go:187: unknown field 'X' in struct literal of type mouse.Event
github.com/graphics/vendor/golang.org/x/exp/shiny/driver/x11driver/window.go:188: unknown field 'Y' in struct literal of type mouse.Event

Any pointers?

Cheers

mobile

Have you tried running this on mobile (android, ios) yet ?

I am keen to try a few things out with a database behind it that does sync.
This db:
https://goshawkdb.io/index.html
Its a new take on databases that can do sync for offline first with full transactional integrity.

Here is a nice video on it.
https://www.youtube.com/watch?v=PPZhksQdNBc
Jump to 20 minutes to get to the good stuff...

main.go fails with commands line args not provided

I want to try this out as i am very interested in shiny.

the main.go in the cmd folder fails.

the main.go in examples also fails.

both require certain command line args.

any chance you could update the readme to explain how to run this ?

i just want to play around with this as it looks very nice.

shiny drivers are very old

trying out your editor

i cant get a build because of the vendored shiny drivers being too old.
https://github.com/golang/exp/blob/master/shiny/driver/gldriver/gldriver.go

go version
go version go1.7.4 darwin/amd64
x-MacBook-Pro:edit apple$ go env
GOARCH="amd64"
GOBIN="/Users/apple/workspace/go/bin"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/apple/workspace/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/wp/ff6sz9qs6g71jnm12nj2kbyw0000gp/T/go-build909137846=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
x-MacBook-Pro:edit apple$ go run main.go
# github.com/jnjackins/graphics/vendor/golang.org/x/exp/shiny/driver/gldriver
../../vendor/golang.org/x/exp/shiny/driver/gldriver/cocoa.m:109:23: warning: 'NSScrollWheel' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:82:26: note: 'NSScrollWheel' has been explicitly marked deprecated here
../../vendor/golang.org/x/exp/shiny/driver/gldriver/cocoa.m:165:30: warning: 'NSKeyDown' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:74:26: note: 'NSKeyDown' has been explicitly marked deprecated here
../../vendor/golang.org/x/exp/shiny/driver/gldriver/cocoa.m:243:15: warning: 'NSTitledWindowMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:953:32: note: 'NSTitledWindowMask' has been explicitly marked deprecated here
../../vendor/golang.org/x/exp/shiny/driver/gldriver/cocoa.m:246:23: warning: 'NSResizableWindowMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:956:32: note: 'NSResizableWindowMask' has been explicitly marked deprecated here
../../vendor/golang.org/x/exp/shiny/driver/gldriver/cocoa.m:247:23: warning: 'NSMiniaturizableWindowMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:955:32: note: 'NSMiniaturizableWindowMask' has been explicitly marked deprecated here
../../vendor/golang.org/x/exp/shiny/driver/gldriver/cocoa.m:248:23: warning: 'NSClosableWindowMask' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations]
/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:954:32: note: 'NSClosableWindowMask' has been explicitly marked deprecated here
# command-line-arguments
./main.go:27: undefined: widget
./main.go:29: undefined: widget
./main.go:63: undefined: loadFont
./main.go:75: undefined: updateFont
./main.go:76: undefined: fontFace in fontFace.Metrics
./main.go:81: undefined: newWidget
./main.go:81: undefined: fontFace
./main.go:85: undefined: loadMain
./main.go:89: undefined: newWidget
./main.go:89: undefined: fontFace
./main.go:89: too many errors


text: scrolling by sweeping leaves artifacts

Using cmd/buf, if one sweeps down past the edge of the window and then quickly back up, some of the text the bottom of the window which was deselected on the upsweep will not be redrawn, leaving an undesired selection rectangle at the bottom edge of the window.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.