Commit Graph

167 Commits

Author SHA1 Message Date
Sam Nolan
69aa8a8cc1 Add controlled and uncontrolled versions of components 2022-06-27 07:07:09 +00:00
Sam Nolan
fc68a8d069 Remove observable boilerplate + refactors 2022-06-24 03:43:30 +00:00
Ozzie Gooen
06d78048db
Merge pull request #753 from quantified-uncertainty/graph-settings
Add logX and expY props
2022-06-22 20:53:24 -07:00
Sam Nolan
3983fa8f0f Add errors when log on graphs with negative domain 2022-06-23 03:21:24 +00:00
Sam Nolan
c42c646838 Add logX and expY as playground settings 2022-06-23 03:16:35 +00:00
Sam Nolan
f5db5afe09 Add logX and expY props 2022-06-23 03:08:44 +00:00
Recursing
126033b029 Prefix hash for potential future changes and transparency 2022-06-22 21:36:19 +02:00
Recursing
35a6a0c4e5 Save playground state in URL, for easy sharing
fix ssr
2022-06-22 01:48:27 +02:00
Quinn Dougherty
ddb373de8a ran prettier from toplevel 2022-06-20 11:53:19 -04:00
Vyacheslav Matyukhin
0cd5a9547f
don't set playground height (fixes #660) 2022-06-18 22:49:52 +03:00
Vyacheslav Matyukhin
cf96d1b2d9
fix playground focus issue 2022-06-18 19:47:05 +03:00
Ozzie Gooen
60213d8321 Merged with develop 2022-06-17 16:01:30 -07:00
Ozzie Gooen
0bd407d3f4 Merge branch 'develop' into vscode
* develop:
  fix SquigglePlayground in storybook
  Ran formatter
  Added scaleMultiply to docs
  Added scaleMultiply
  useSquiggle and useSquigglePartial hooks
  v0.2.11
  fix: Make lodash a dependency, rather than a dev dependency
  Ran formatting
  Normalize after trunctae
  Ran formatter
  Added descriptions to last API types
  Fixed link that was breaking build
  Small edits to guides section
  More progress on DistGeneric
  Ran format
  Added key math variables, all lowercase
  Removed the definitions tags in documentation
  Minor cleanup on distributions
  Lots of documentation tweaks
2022-06-17 15:57:36 -07:00
Ozzie Gooen
38a0e78873 Refactors to address CR 2022-06-17 15:47:37 -07:00
Ozzie Gooen
a563898a5f Merge with develop 2022-06-17 12:45:42 -07:00
Vyacheslav Matyukhin
588cf0cb27
fix SquigglePlayground in storybook 2022-06-17 22:25:36 +03:00
Ozzie Gooen
342b5ba17b Tiny css cleanup 2022-06-17 07:45:58 -07:00
Ozzie Gooen
8e7756fe35 Added Module type display and better error message if no type is found 2022-06-17 07:42:44 -07:00
Ozzie Gooen
f156840d65 Added toggle to optionally display code editor 2022-06-17 07:31:59 -07:00
Vyacheslav Matyukhin
618028d772
vscode extension
also:
- don't bundle react and react-dom with webpack
- controlled mode for SquigglePlayground
2022-06-17 00:37:20 +03:00
Vyacheslav Matyukhin
e8e8a06f7a
useSquiggle and useSquigglePartial hooks 2022-06-16 13:05:48 +03:00
Vyacheslav Matyukhin
2842965913
fix react-ace/tailwind css collision (fixes #672)
Also: fix preflight configuration
2022-06-14 11:57:28 +03:00
Vyacheslav Matyukhin
4d64f831b0
format main.css and prettierignore base.css 2022-06-10 00:46:38 +03:00
Vyacheslav Matyukhin
d812084614
scoped tailwind preflight, top-level .squiggle wrapper 2022-06-09 23:57:45 +03:00
Ozzie Gooen
d125664e57 Added stdev to table of stats, when needed 2022-06-06 12:25:09 -07:00
Vyacheslav Matyukhin
958c187e82
Various components cleanups
- coding style (let -> const, etc.)
- avoid double typing of component props, it's not necessary
- consistent non-default exports everywhere (except for
  SquigglePlayground since I'm not 100% sure it's not used somewhere
  else)
- extract common components in SquigglePlayground to avoid copy-paste
- other minor improvements
2022-06-04 23:38:16 +03:00
Ozzie Gooen
7f3cacae59
Merge pull request #622 from quantified-uncertainty/May-tailwind-refactor 2022-06-02 05:17:04 -07:00
Ozzie Gooen
793c42ce20
Merge pull request #599 from quantified-uncertainty/toPointSet-fn 2022-06-02 05:16:32 -07:00
Ozzie Gooen
4bad537a5d Format 2022-06-01 21:44:46 -07:00
Ozzie Gooen
6aef52ef79 Added resultType for error message 2022-06-01 21:41:24 -07:00
Ozzie Gooen
800a832a06 Formatted, converted tab to component 2022-06-01 20:13:19 -07:00
Ozzie Gooen
88adccf2e7 Added max widths to settings pages 2022-06-01 20:04:50 -07:00
Ozzie Gooen
70eecde587 Refactored SquigglePlayground a bit 2022-06-01 19:42:03 -07:00
Ozzie Gooen
43643124e0 Refactored Alert, added more to Playground forms 2022-06-01 13:13:16 -07:00
Ozzie Gooen
6b7b3b049a Minor tweaks 2022-05-31 16:01:13 -07:00
Ozzie Gooen
c453794e96 Simple styling for arrays 2022-05-31 14:14:55 -07:00
Ozzie Gooen
ddc8763f77 Minor styling to functions, strings, numbers 2022-05-30 20:33:47 -07:00
Ozzie Gooen
5e0dc6e4ed Minor adjustments to code tabs 2022-05-30 16:40:32 -07:00
Ozzie Gooen
1213ca2bf0 Cleaning up Playground toolbar 2022-05-30 16:29:46 -07:00
Ozzie Gooen
d6bc942265 Added simple pill for code-settings toggle 2022-05-30 14:09:59 -07:00
Ozzie Gooen
6b80118e7e Added lots of tailwind styling 2022-05-30 13:10:25 -07:00
Ozzie Gooen
afbc0199aa Added tailwind/form 2022-05-30 06:40:03 -07:00
Sam Nolan
7f54bdce30 Fix typescript errors about children 2022-05-30 13:23:12 +10:00
Sam Nolan
ed6eb54165 Move from styled-components to tailwind 2022-05-30 11:30:10 +10:00
Ozzie Gooen
c2b90b7023 ToDiscretePointSet 2022-05-27 14:03:41 -04:00
Ozzie Gooen
d0102ae4f2 Changed graph axis to use .9-s format 2022-05-27 08:26:10 -04:00
Ozzie Gooen
b2c4f4f959 Merged with develop 2022-05-27 07:37:55 -04:00
Ozzie Gooen
4eac2f59be Ran formatter 2022-05-27 07:32:03 -04:00
Ozzie Gooen
8482a51332 Minor fixes to get build to pass 2022-05-27 07:23:17 -04:00
Ozzie Gooen
afb7613bcc Added simple input component for SquigglePlayground 2022-05-26 18:39:06 -04:00