Commit graph

2531 commits

Author SHA1 Message Date
jberg
2dc08be1e1 Trigger hookables (#917) 2019-11-30 13:42:53 -08:00
Jordan Eldredge
4a49bcfd03 Fix snapshots to work with new version of rc-slider 2019-11-30 13:42:53 -08:00
jberg
d574b92f68 Add more modern skins (#918) 2019-11-30 13:42:53 -08:00
jberg
27f93e7770 Add getVUMeter functions (#912) 2019-11-30 13:42:53 -08:00
jberg
2201108438 Add more system time and number functions (#913)
* Add more system time and number functions

* rename 2->Two
2019-11-30 13:42:53 -08:00
jberg
230f639e41 Fix layout overflow (#914)
* Fix layout overflow

* overflow if width or height are present
2019-11-30 13:42:53 -08:00
jberg
390b10abd9 Implement mouse position (#908)
* Implement mouse position

* move getMousePosition to utils
2019-11-30 13:42:53 -08:00
Jordan Eldredge
de164c0846 Overflow hidden for layout 2019-11-30 13:42:53 -08:00
Jordan Eldredge
10c6dfed85 Upgrade rc-slider and lift React.StrictMode
rc-slider was preventing us from enabling this more broadly. With https://github.com/react-component/slider/pull/591 merged and released, we can make more of the app strict
2019-11-30 13:42:53 -08:00
Jordan Eldredge
ffc2423629 Refactor portals to use hooks rather than deprecated lifecycle methods 2019-11-30 13:42:53 -08:00
jberg
753bce2d93 Trigger update on resize (#906) 2019-11-30 13:42:53 -08:00
jberg
72d9e07d68 Implement float <-> string conversion (#907) 2019-11-30 13:42:53 -08:00
jberg
c4adc4f2b7 Render animated layers, still needs image loading changes (#900)
* Render animated layers, still needs image loading changes

* convert params from strings once initially, add return types

* rename params->style

* fix gotoframe

* split out defaults/type conversion into own functions, review tweaks

* fix more null checks

* abstract out backgroundPosition and width/height calculation

* use raf for animation loop, split out into functions

* fix lint errors, specify window as global
2019-11-30 13:42:53 -08:00
jberg
803b89d9e0 fix ghost logic, add defaults and type conversion (#904) 2019-11-30 13:42:53 -08:00
dependabot[bot]
7c26257381 Bump mixin-deep from 1.3.1 to 1.3.2 in /experiments/skin-database (#895)
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-11-30 13:42:53 -08:00
dependabot[bot]
c0b546847b Bump mixin-deep from 1.3.1 to 1.3.2 in /experiments/skinArchiveTools (#896)
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-11-30 13:42:53 -08:00
Jordan Eldredge
aa74d6b42d alpha 2019-11-30 13:42:53 -08:00
Jordan Eldredge
65e9f27303 Type action 2019-11-30 13:42:53 -08:00
Jordan Eldredge
628570025a Add/enforce return types for implemented Maki methods 2019-11-30 13:42:53 -08:00
Jordan Eldredge
6e5e701f6d Add some missing method return types 2019-11-30 13:42:53 -08:00
Jordan Eldredge
f356af6d6a Implement some simple System methods 2019-11-30 13:42:53 -08:00
Jordan Eldredge
c5c519eb0b Add a <title> 2019-11-30 13:42:53 -08:00
Jordan Eldredge
700b10c898 Don't return undefined in asyncTreeFlatMap
Subsequent calls will try to access `node.children`, so we have to return some kind of object.

Prevents a failure in http://localhost:8080/modern?skinUrl=https%3A%2F%2Farchive.org%2Fcors%2Fwinampskin_EMP%2FEMP.wal

Now it fails due to opcode 255
2019-11-30 13:42:53 -08:00
jberg
9f430b7d34 Opacity tweak (#899) 2019-11-30 13:42:53 -08:00
Jordan Eldredge
5c7e87e997 Fix opacity 2019-11-30 13:42:53 -08:00
Jordan Eldredge
a4ec43c670 Mark GuiObject.isvisible as implemented 2019-11-30 13:42:53 -08:00
Jordan Eldredge
3d026a03b8 Remove unreachable code 2019-11-30 13:42:53 -08:00
Jordan Eldredge
4f3178936f Only render the current layer for each container 2019-11-30 13:42:53 -08:00
Jordan Eldredge
458fb426c9 Small cleanup refactor 2019-11-30 13:42:53 -08:00
Jordan Eldredge
25cc7fc959 Move visibility check to GuiObjectEvents
Eventually I think we will have a compositional heirarchy that mirrors the inheritance hierarchy so GuiObjectEvents will become GuiObjectsComponent or similar.
2019-11-30 13:42:53 -08:00
Jordan Eldredge
7908c900cd Allow components to render their own children 2019-11-30 13:42:53 -08:00
Jordan Eldredge
85b423cca8 Extract rendering children 2019-11-30 13:42:53 -08:00
Jordan Eldredge
a19fec2a42 Split out unknown component into DummyComponent 2019-11-30 13:42:53 -08:00
Jordan Eldredge
8f1b48d186 Don't generalize wrapping with <GuiObjectEvents>
I think it's better to just make this an implementation detail of the individual components

In the future, I think the components will take on more and more. They should be the single source of truth for how a Maki object renders itself.
2019-11-30 13:42:53 -08:00
Jordan Eldredge
acbfb6660a Remove unused pos and use shorthand 2019-11-30 13:42:53 -08:00
Jordan Eldredge
850d816736 Use the first layout when rendering the child of a container 2019-11-30 13:42:53 -08:00
Jordan Eldredge
98ad08c196 Add type for Container.visible 2019-11-30 13:42:53 -08:00
Jordan Eldredge
7315366d58 Fix a few type errors 2019-11-30 13:42:53 -08:00
Jordan Eldredge
9e72e6a15a Add more tree search utilities 2019-11-30 13:42:53 -08:00
Jordan Eldredge
e3fb7312ec Remove unused code 2019-11-30 13:42:53 -08:00
Jordan Eldredge
6adc604a50 Remove old comment 2019-11-30 13:42:53 -08:00
Jordan Eldredge
e29223bb8c Automatically add some types to Maki method arguments
These were added using `yarn lint --fix`.
2019-11-30 13:42:53 -08:00
Jordan Eldredge
8a03e87849 Start adding rule to add types to maki method argument 2019-11-30 13:42:53 -08:00
Jordan Eldredge
272e2ab37e Make all Maki objects TypeScript 2019-11-30 13:42:53 -08:00
Jordan Eldredge
ef78b93ef3 XmlNodes don't have parent references 2019-11-30 13:42:53 -08:00
dependabot[bot]
e89efc25ca Bump mixin-deep from 1.3.1 to 1.3.2 (#894)
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-11-30 13:42:53 -08:00
Jordan Eldredge
0b299ec843 Try out Actions (#892)
* Update nodejs.yml

* Try using Yarn

* push is more generic than pull_request

We don't need both
2019-11-30 13:42:53 -08:00
dependabot[bot]
9566c4b6a8 Bump eslint-utils from 1.4.0 to 1.4.2 (#891)
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.4.0 to 1.4.2.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases)
- [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.4.0...v1.4.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-11-30 13:42:53 -08:00
jberg
090971a552 Fix emitter export (#890) 2019-11-30 13:42:53 -08:00
jberg
eb2b318af8 Remove script loading from initialize (#889) 2019-11-30 13:42:53 -08:00