Yaya-Cout
3b293c822a
[apps/graph] Added a color menu in graph and list ( #189 )
...
* Revert "[github/workflows] Update Metrics to remove NumWorksBot"
This reverts commit 110f333122 .
* Added a color menu in graph and list
* Fixed color select display issue and build issue
* Changed color_cell to a circle
* Revert "Changed color_cell to a circle"
This reverts commit 28dddb42af .
* Color_cell with mask
* Fixed build issue
* Color selection : Added right handle and color name display in menu
* Fixed constexpr static colorMask
* Changed font in color_parameter_controller
* Fix building without debug
* Re-Fix building without debug
* Update colors
Co-authored-by: Hugo Saint-Vignes <hugo.saint-vignes@numworks.com >
Co-authored-by: Joachim LF <joachimlf@pm.me >
2022-03-23 08:36:23 +01:00
Gabriel Ozouf
c89a7bc496
[graph] Take margins into account for normalization
...
When building an orthonormal range for the automatic zoom, we provide a
ratio for the screen without the margins. This way, adding the margins
will make the graph orthonormal, and the banner cannot cover the
function.
Change-Id: If3a3f799d4e7e3e81ab77c6b418d70b734a6fbca
2020-12-07 15:58:56 +01:00
Gabriel Ozouf
591f47d6a9
[continuous_function_cache] Coding style
2020-12-02 16:50:17 +01:00
Gabriel Ozouf
937979503a
[shared/continous_function] Detach cache of inactive function
...
When a function that had previously been cached is deactivated, its
cache can be used by another function. When the function is reactivated,
if it tries to reuse its previous cache, it will be filled with values
from another function, and will not be cleared. By detaching the cache
of a function that becomes inactive, we ensure that the next time this
function is cached, the chache will be cleared.
e.g. Define to functions f(x)=x, g(x)=-x, draw them both.
Deactivate f, the redraw the graph
Reactivate f, the draw again
2020-12-02 16:50:17 +01:00
Gabriel Ozouf
6be5e7d62c
[apps/shared] Change Zoom API
...
Moved some code around to decrease redundancy and put more of the logic
into Poincare::Zoom
Change-Id: I4804cf39493ac7f2f0b3c4eb554e5c15c3cef1c9
2020-11-04 15:58:18 +01:00
Gabriel Ozouf
ad6edffc07
[poincare/zoom] Remove tuneXRange argument
...
The ability to perform a range search without changing the X range was
only there to accomodate the Yauto feature.
Change-Id: I8c2b61b447fbd3dc1f4e303dff06d1a8d6e7a4f2
2020-11-04 15:58:14 +01:00
Gabriel Ozouf
d2b36be846
[poincare/zoom] Move automatic zoom to Poincare
...
Change-Id: I7a70ab54b33b9150682cc4f999ff4999a8288b7f
2020-11-04 15:58:07 +01:00
Arthur Camouseigt
3dca515441
[VariableBox] Added sequences to the variable box
...
It is now possible to call the value of a defined sequence anywhere.
Change-Id: I1990e93c50f9add175b7ea274e07004ba63289e5
2020-11-04 15:32:58 +01:00
Gabriel Ozouf
a6db9688cd
[apps/function] Factorize zoom in Function class
...
The new zoom implemented for ContinuousFunction is now factorized inside
Function to benefit the Sequence class. The same things is done to code
added to Graph::GraphController, which is moved into
FunctionGraphController.
This removes the reimplementation of several methods, most notably
computeYRange, as the implementation for function is general enough to
work on sequences.
Change-Id: I9b8211354064f46c3fa3dde3191dcb39d627a1d2
2020-11-04 15:30:53 +01:00
Hugo Saint-Vignes
5bc19af196
[apps/shared] Revert to pack record
...
It appeared that without the packed keyword, the compiler did not handle
access to unaligned record data members, which leads to crashes on the
device.
Change-Id: I401f075e7f62458a4733baa8d81983d4be34b730
2020-11-04 14:45:35 +01:00
Hugo Saint-Vignes
0a2ededfcf
[apps/shared] Remove packed data members for RecordDataBuffer
...
Change-Id: I04ea5ccb4c15bda975bf5af178f07092c0387312
2020-11-04 14:45:34 +01:00
Ruben Dashyan
b54d5a31ba
[apps/shared/function] BaseNameCompliant returns a NameNotCompliantError
...
instead of a boolean
2020-02-12 15:13:26 +01:00
Ruben Dashyan
d476e7944d
[apps] Move assert to where it matters
2019-09-20 17:11:42 +02:00
Ruben Dashyan
fd2961018c
[apps] In Shared::Function, rename FunctionRecordDataBuffer to RecordDataBuffer
2019-09-20 17:11:42 +02:00
Ruben Dashyan
f73c80daa3
[apps] Gather asserts about the size of function name with argument
2019-09-20 17:11:42 +02:00
Léa Saviot
0d2c20bceb
[apps/graph] Fix function renaming
...
Scenario: Funciton renamed f123456 would be saved as f12345 due to
buffer size problem
2019-09-09 13:30:09 +02:00
Émilie Feral
f38c6ed3d1
[apps/shared] Move sumBetweenBounds from controller (SumGraphController)
...
to the models (Sequence or CartesianFunction) and
CartesianFunction::sumBetweenBounds takes into account the function
domain
2019-09-09 11:42:16 +02:00
Léa Saviot
8726f1d621
[apps/graph] Display parametric name in the middle of values cell
2019-09-05 15:43:55 +02:00
Ruben Dashyan
9417a52167
[apps/*/function] Sequence implements parameterMessageName
2019-09-05 11:58:51 +02:00
Émilie Feral
aa1d1165e8
[apps/graph] Fix function name edition: the cursor is positioned right
...
after the '(' (bug due to the fact that θ takes 2 bytes)
2019-09-05 09:37:23 +02:00
Émilie Feral
f388fe7252
[apps] Use attribute "packed" on member variable directly instead of
...
using "pragma pack" to allow compiler optimization on one-byte object
accesses
2019-09-04 15:20:52 +02:00
Émilie Feral
a6ed400991
[apps/shared] Resolve conflict: function tmin and tmax are float instead
...
of double
2019-09-03 15:36:46 +02:00
Léa Saviot
4436967c57
[apps/go_to_param_cntrlr] Change parameter name according to func
2019-09-03 15:04:01 +02:00
Léa Saviot
c3ee6a71e7
[apps/graph] Fix computeYRange for polar/cartesian functions
...
Was very slow, compute only 1000 values to evaluate the yRange
2019-09-03 14:21:14 +02:00
Léa Saviot
fa413edc61
[apps/graph] fix banner view for polar and parametric
2019-08-30 15:04:27 +02:00
Léa Saviot
850170e33b
[apps/shared] computeYRange clips tMin..tMax to xMin..xMax if possible
2019-08-30 10:18:39 +02:00
Léa Saviot
a945c02edf
[poincare/Coordinate2D] Rename members x1 and x2
2019-08-29 11:07:22 +02:00
Léa Saviot
c71ef7ff79
[apps/graph] Evaluation methods renaming
2019-08-29 11:07:22 +02:00
Léa Saviot
28a721e96e
[apps] Start fixing apps as cursor has new member variable
2019-08-29 11:07:22 +02:00
Ruben Dashyan
27b9ede90b
[apps/shared/function] nameWithArgument handles 2-char-long argument CodePoints
2019-08-29 11:07:22 +02:00
Ruben Dashyan
43d72e082f
[apps] Move sumBetweenBounds from Shared::Function to Shared::SumGraphController
2019-08-29 11:07:22 +02:00
Ruben Dashyan
c2b8781983
[apps/*/function] Move implementation of evaluateAtAbscissa to CartesianFunction
2019-08-29 11:07:21 +02:00
Ruben Dashyan
5e365104ae
[apps/shared/function] Factor templatedApproximateAtAbscissa
2019-08-29 11:07:21 +02:00
Ruben Dashyan
b665e841ad
[apps] Remove arg parameter in Shared::Function::nameWithArgument and Shared::CartesianFunction::derivativeNameWithArgument
2019-08-29 11:07:21 +02:00
Émilie Feral
fb80cd3271
[apps] Object contained in the Storage might be unaligned. Make sure to
...
use emscripten unaligned type to avoid producing an alignment error on
emscripten platform.
2019-06-19 09:54:57 +02:00
Émilie Feral
cd688ab9cf
[apps] Force packing classes of objects contained in the Storage
...
If these classes are padded, we lose space in the Storage and the
Storage::checksum is computed on uninitialized values (corresponding to
the padding memory spaces)
2019-06-19 09:54:57 +02:00
Léa Saviot
1d26e6da73
[ion/unicode] Clean special code points
2019-05-03 15:53:21 +02:00
Émilie Feral
a891fff930
[shared] Change name of classes:
...
FunctionRecordData --> FunctionRecordDataBuffer
CartesianFunctionRecordData --> CartesianFunctionRecordDataBuffer
SequenceRecordData --> SequenceRecordDataBuffer
2019-05-03 15:53:20 +02:00
Émilie Feral
57da4ea618
[shared] Rename classes:
...
ExpressionModelHandle --> ExpressionModel
SingleExpressionModelHandle --> ExpressionModelHandle
StorageFunction --> Function
StorageCartesianFunction --> CartesianFunction
StorageFunctionApp --> FunctionApp
2019-05-03 15:53:20 +02:00
Émilie Feral
ad8fea46c3
[shared] Clean unused classes
2019-05-03 15:53:20 +02:00
Émilie Feral
1fff98f1c4
[poincare] Change Expression methods' signature to work with const char
...
* symbol instead of char symbol
2018-11-23 12:03:58 +01:00
Émilie Feral
b266c4cbd1
[shared] Make a parent class to Function: ExpressionModel (factorize
...
code for furtur model Equation)
2018-06-07 13:46:17 +02:00
Émilie Feral
cdfbc02499
[apps] Add a function "sumBetweenBounds()" on Function (sum of terms on
...
Sequence, Integral on CartesianFunction)
2018-01-30 18:19:27 +01:00
Émilie Feral
2c06727f36
[apps] Simplify expressions in sequence and function applications
...
Change-Id: I2708934d3b5c90e8692e50d939b3a13028b8615e
2017-11-24 14:39:06 +01:00
Émilie Feral
fda382cc0d
[poincare] Change name: evaluate->approximate
...
Change-Id: I649a7c640190713dcf063a4148decd6038e62796
2017-11-24 13:31:44 +01:00
Émilie Feral
82e212e771
[poincare] Template for double
...
Change-Id: I7404bd5cefc9ef78a5dbd572c3874a557cded28e
2017-08-16 09:55:29 +02:00
Émilie Feral
5c47f00ab3
[apps/shared] In Function, make m_expression private
...
Change-Id: I500f8e9ce53a1798fdf92bbc66ecdc867294a0a0
2017-05-31 11:54:54 +02:00
Émilie Feral
832af9f9f4
[apps/sequence][apps/graph] Checksum takes into account whether the
...
function is active and its name
Change-Id: I790d9a793c512a686f21f1db4fc0848a16baea5c
2017-05-29 11:41:39 +02:00
Émilie Feral
1966b4648c
[escher] Increase textfield size to 100
...
Change-Id: I93400001a829e2ce313658e08bd5e97965b715fe
2017-05-29 10:49:56 +02:00
Émilie Feral
ba7d740a10
[apps/sequence][apps/graph] CRC should be called on sizes multiple of 4
...
Change-Id: I4a55c14e1418f730051252cabef324833279747f
2017-05-24 14:38:32 +02:00