nativescript-community / ui-chart

A powerful chart / graph plugin, supporting line, bar, pie, radar, bubble, and candlestick charts as well as scaling, panning and animations.
https://nativescript-community.github.io/ui-chart/
Apache License 2.0
33 stars 12 forks source link

Missing export of MPPointF #56

Open vthil3049 opened 11 months ago

vthil3049 commented 11 months ago

Summary I'm trying to implement a custom class which implements the IMarker interface. You have the following definition of the interface in IMarker.d.ts

import { Highlight } from '../highlight/Highlight';

import { Entry } from '../data/Entry';

import { MPPointF } from '../utils/MPPointF';
import { Canvas } from '@nativescript-community/ui-canvas';
export interface IMarker {
    getOffset(): MPPointF;
    getOffsetForDrawingAtPoint(posX: any, posY: any): MPPointF;
    refreshContent(e: Entry, highlight: Highlight): any;
    draw(canvas: Canvas, posX: any, posY: any): any;
}

But it seems like you forgot to export MPPointF for us developers to use. So, I'm unable to import it and implement the 2 methods that are supposed to return the offsets.

Expected Behavior I expected it to be able to somehow import this in my application. I started with this import statement import { MPPointF } from '@nativescript-community/ui-chart/utils; and I've searched in all the folders in your package and I don't see an export for it anywhere

Possible Solution Please export this and let us know where.

Device (please complete the following information):

ADD A REWARD using Speed to SOLVE this issue QUICKLY and SUPPORT this project.

farfromrefug commented 11 months ago

@vthil3049 you can simply import it like this import { MPPointF } from '@nativescript-community/ui-chart/utils/MPPointF; everything is accessible in the plugin. No class is hidden

vthil3049 commented 11 months ago

Sorry its not working. We've also searched recursively inside your installation under node_modules/@nativescript-community/ui-chart/ and couldn't find it.

image

vthil3049 commented 11 months ago

Also, it would be really, really helpful to us if you can provide an example of creating and using a marker in angular in your demo site. Let me know if I have to open a separate issue for this request. Thanks

farfromrefug commented 11 months ago

@vthil3049 I see why. I'll fix it tomorrow. Sorry

farfromrefug commented 11 months ago

@vthil3049 should be fixed in latest version